solved Page break not breaking

Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
There is a pagebreak in the text of my About ... on the home page, but it's not breaking. It's right after the word Christmas.

http://www.thechocolatelife.info/thechocolatelife/
updated by @claygordon: 02/08/15 06:06:42AM
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I have never been able to get the pagebreak work in TinyMCE, on Jamroom, WordPress or other systems.
brian
@brian
10 years ago
10,148 posts
The TinyMCE editor just adds a pagebreak comment in where the pagebreak should be at. Is your goal to actually have pagination on the page?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Brian -

Yes. I saw the comment but I know that most content gets parsed as it gets rendered [e.g., shortcodes that get evaluated] so I figured that there could be a process that looks for pagebreaks

Down in the Blog area there is a "Read More" button. I have to assume that that gets done programmatically. I'd be happy to do it manually if that's the only way.

:: Clay
brian
@brian
10 years ago
10,148 posts
thechocolatelife:
Brian -

Yes. I saw the comment but I know that most content gets parsed as it gets rendered [e.g., shortcodes that get evaluated] so I figured that there could be a process that looks for pagebreaks

Down in the Blog area there is a "Read More" button. I have to assume that that gets done programmatically. I'd be happy to do it manually if that's the only way.

:: Clay

Yeah actually I think the way it is supposed to work (and should be working) is that if you enter a pagebreak, everything ABOVE that will be shown kind of as the "preview" - everything below it will not show until you click on the "Read More".

I know we have code in there for that, so let me know if that is the behavior you're expecting and I can check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
@Brian:

There are three ways that I can think of right now to handle this functionality.

One - Click on 'Read More' and push down the DOM. That's okay as long as there is a 'Read Less' button at the bottom.

Two - Duplicate the behavior of clicking on 'Read More' in the blog section - which is to go to that blog post.

Three - Lightbox the text of the entire blog post.

For the sake of UI consistency I would say approach #2 is best. However, because the 'About' is a "special" blog post, approaches #2 or #3 are fine - as long as there is a way to collapse the DOM in #2 and the lightbox window in #3 has a close button and can be dismissed by pressing ESC.

To make things a lot simpler, assume that there will be only a single in the text.
brian
@brian
10 years ago
10,148 posts
#2 is how it actually should work (and I think should be working) - I will check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Let me reinsert the page break -- I took it out when it wasn't working.

And, obviously, you don't want to parse the pagebreak when displaying the actual blog post.

Parse on the home page, not here > > >

http://www.thechocolatelife.info/thechocolatelife/chocliferoot/blog/5/welcome-to-the-new-thechocolatelifecom
updated by @claygordon: 01/04/15 08:31:46AM
brian
@brian
10 years ago
10,148 posts
I just tested here and it is working for me. I created a new blog, inserted a page break half way through, and now on my profile blog index I see the first part, and the entire thing when viewing the blog.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Brian -

Did you try it as an admin in category About? This is a special case.
updated by @claygordon: 01/04/15 08:49:06AM
brian
@brian
10 years ago
10,148 posts
thechocolatelife:
Brian -

Did you try it as an admin in category About? This is a special case.

No I didn't - is this for the site blog list you're seeing this in? I just checked the profile.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
@Brian

visit http://www.thechocolatelife.info/thechocolatelife/

The behavior is in the About ... entry at the top of the page.
brian
@brian
10 years ago
10,148 posts
Got it - yeah that is a special case entry since it's the "welcome to the site" blog entry, so the blog module is not actually handling the output for that. Shouldn't be hard to get that working I'll check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Just FYI Everyone -

Even with the other small issues that need to be resolved, if I can get this home page issue taken are of I am ready to take the site live 24-36 hours after.

:: Clay
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Ah so my understanding is wrong, I would like to see multi page posts, pages etc.
brian
@brian
10 years ago
10,148 posts
gary.moncrieff:
Ah so my understanding is wrong, I would like to see multi page posts, pages etc.

I don't think this would be hard - basically on the blog item detail page, anywhere there is a "pagebreak" inserted, it will divide the post up into pages. Is that what you're looking for?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 01/05/15 10:56:40AM
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Yeah, would also make sense with pages and maybe even in documentation module, if that doesn't already support it.
brian
@brian
10 years ago
10,148 posts
gary.moncrieff:
Yeah, would also make sense with pages and maybe even in documentation module, if that doesn't already support it.

Pages for sure - it would be much harder for documentation (due to how a document is arranged out of multiple parts), but pages for sure.

I'll get a ticket open on it as I don't think it would be hard.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
I just update the Profile Blog module to version 1.1.0 that now will paginate based on pagebreaks manually inserted into the blog post.

Update and let me know if you spot any issues.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Just seeing %%jrBlog_pager%% in the blog post. Not split across pages.
brian
@brian
10 years ago
10,148 posts
gary.moncrieff:
Just seeing %%jrBlog_pager%% in the blog post. Not split across pages.

Hmm.. I'm not seeing any issues here. That would indicate the view_results listener is failing on your site for some reason. Let me test our demo sites and see if I can replicate.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Yep - I see it on the demo site as well. I'm testing on jrCore 5.2.20b1, so there's something that is different - checking it out now.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
I know what's happening here and will get it fixed up. It works if you disable caching. I've rolled back to version 1.0.12 in the meantime, but am working on the fix.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
OK this should be working now - reload the Profile Blog 1.1.0 module, reset caches, and it should be working.

Let me know if that fixes it for you. You can see it in action on the demo here:

http://demo.jamroom.net/jrElastic/demoadmin/blog/20/testing-pagebreaks

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
@Brian -

Did not work for me after updating.

Do I also have to do the beta jrCore 5.2.20b1 upgrade?

I am running in developer mode so I should not need to reset the caches.
brian
@brian
10 years ago
10,148 posts
thechocolatelife:
@Brian -

Did not work for me after updating.

Do I also have to do the beta jrCore 5.2.20b1 upgrade?

I am running in developer mode so I should not need to reset the caches.

Make sure and reload the Blog module - it was not working at first, but should be working now.

Note that if you're talking about the "about" blog section on the NingJa index, then that is going to be fixed in NingJa 1.0.12 which is almost ready (should be for tomorrow).

Let me know if that helps.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
@Brian -

I can see the page break working when I look at the About blog on my profile page. It's still not working on the Home Page.

NingJa 1.0.12 is a skin update ... is there a utility that can scan to see which template files I have updated and am using? They are scattered all over the place.
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
The page break is now working within a blog entry:

http://www.thechocolatelife.info/thechocolatelife/vera-hofman/blog/602/every-year-its-getting-better-and-better

However, if you look at the blog entry on this page:

http://www.thechocolatelife.info/thechocolatelife/blog

you'll see that the break is being processed but "read more" link is not there.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I can see read more on the relevant blog entries on that page, see here http://tinypic.com/r/23magle/8

PS Brian, yes it is working now, many thanks.
updated by @garymoncrieff: 01/05/15 11:50:41PM
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Gary -

You are right, it's there. However, we now have THREE different ways the pagebreak is presented to the user, a cognitive burden that should probably be simplified two at most two at some point.

On the home page in the Blog section, there is a lovely aqua-ish button with "read more" in the body of blog post.
On the Blog listing page there is a read more, but it's not centered, it's to the right and - perhaps easily missed as I missed it.
^ These could probably be simplified into a single format.

On the the actual blog post, there is a page counter with forward and back arrows centered under the bottom of the blog text.
^ This one should probably stay as it is - it's used in a lot of other meaningful contexts.
brian
@brian
10 years ago
10,148 posts
The FIRST way you are talking about is exclusive to the NingJa skin - that's where that would have to be changed. It's important to know that the Blog module does not control the "look" of the "about" blog that gets placed on the NingJa index. It only controls the look on the profile (listing, detail, etc.).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Brian -

I am still learning these details - what controls the look of what and where it's located. The modularity is good - I've applied many updates to individual modules in the past week. Learning where to make changes is what's taking me time.

Tags