Foros de discusión

Multi-Page Articles

Peter Gray, modificado hace 16 años.

Multi-Page Articles

New Member Mensajes: 12 Fecha de incorporación: 31/01/08 Mensajes recientes
Greetings,

I am a newbee so please excuse this question.

Is there a way to post multi-page articles that have pagination?

Thanks!

Peter
thumbnail
Ray Auge, modificado hace 16 años.

Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

Liferay Legend Mensajes: 1197 Fecha de incorporación: 8/02/05 Mensajes recientes
> Is there a way to post multi-page articles that have pagination?

Yes! As of version 4.4.0+ you can insert a @page_break@ token into your
contents (or emitted by your templates).
Peter Gray, modificado hace 16 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

New Member Mensajes: 12 Fecha de incorporación: 31/01/08 Mensajes recientes
Thanks, Ray!
thumbnail
Jorge Ferrer, modificado hace 16 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 Mensajes recientes
tamer a da silva, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

New Member Mensaje: 1 Fecha de incorporación: 26/05/08 Mensajes recientes
I see the faq, but im still in troubles.
"you can insert a @page_break@ token into your contents (or emitted by your templates)."
I do by this way:

1 - create a new journal article

2 - I copy some text under the wyswyg editor:
ex:
blblblalblbalbalblbba
iibibibibibibibibibibib
lalalalalalalalalalallala
toototototototototot

3 - in the middle of this text, i put de token @page_break@
ex:
blblblalblbalbalblbba
iibibibibibibibibibibib
@page_break@
lalalalalalalalalalallala
toototototototototot

4 - a save and approve

5 - on the list of articles , I see the new article and then click over it.

6 - the article opens , but a just can see the text until the token. but there is no way to follow to rest of the content.

ex:
blblblalblbalbalblbba
iibibibibibibibibibibib


How do I make a function that implemntes de navigation? Or this token provides this function?

thanks!
thumbnail
delang j, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

Expert Mensajes: 252 Fecha de incorporación: 14/07/08 Mensajes recientes
thanks guys, what a great feature from liferay. i already test with journal content and its works.
im using liferay 5.1.1
thumbnail
Jorge Ferrer, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 Mensajes recientes
Hi Tamer,

Yes, the navigation across pages will appear automatically.
Peter Gray, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

New Member Mensajes: 12 Fecha de incorporación: 31/01/08 Mensajes recientes
Hi Jorge,

The problem is that after putting the token in the content all text after the token disappears when viewing the article using the Journal Article Portlet (clicking on the article to open/view it) or displaying it on an article page. And the pagination does not appear! (Using 5.1.1 and 5.1.2 and both have this same problem)

However, the same article when viewed inside Journal Content Portlet appears with pagination!

Not sure what I am going wrong with the setup of the Journal Article Portlet and the Article page.
thumbnail
Jorge Ferrer, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 Mensajes recientes
Hi Peter,

You are right, I've taken a quick look at the code and it seems that functionality is missing from the Journal articles portlet. It should be quite easy to copy it from journal_content/view.jsp to journal_articles/view.jsp since it's mainly only a conditional check and a taglib invocation.

Also could you open a JIRA ticket for this? I would appreciate if you attach a patch once you have it working.
thumbnail
Jorge Ferrer, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 Mensajes recientes
Hi again,

I finally had time to take a closer look at this myself. It wasn't as easy as I thought but it wasn't that hard either. Just a few changes in a JSP. I've committed it as LPS-587. Since JIRA's integration with SVN is not working properly lately if you want to take a look at the changes check revision #22747.
Peter Gray, modificado hace 15 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

New Member Mensajes: 12 Fecha de incorporación: 31/01/08 Mensajes recientes
Thanks Jorge!

I had some time to play with it but being a newbee did not get too far. I will look at the solution and learn from it - hopefully!

Really appreciate the help!
Mehrdad Rezai, modificado hace 14 años.

RE: Re: [Liferay Forums][2. Using Liferay]Multi-Page Articles

New Member Mensajes: 16 Fecha de incorporación: 22/04/09 Mensajes recientes
Ray Augé:
> Is there a way to post multi-page articles that have pagination?

Yes! As of version 4.4.0+ you can insert a @page_break@ token into your
contents (or emitted by your templates).


This is not just a feature, this is an amazing feature. Such a great functionality and with basically no coding; can't get better than this.