Fórum

Multi-Page Articles

Peter Gray, modificado 16 Anos atrás.

Multi-Page Articles

New Member Postagens: 12 Data de Entrada: 31/01/08 Postagens Recentes
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 16 Anos atrás.

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

Liferay Legend Postagens: 1197 Data de Entrada: 08/02/05 Postagens Recentes
> 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 16 Anos atrás.

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

New Member Postagens: 12 Data de Entrada: 31/01/08 Postagens Recentes
Thanks, Ray!
thumbnail
Jorge Ferrer, modificado 16 Anos atrás.

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

Liferay Legend Postagens: 2871 Data de Entrada: 31/08/06 Postagens Recentes
tamer a da silva, modificado 15 Anos atrás.

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

New Member Mensagem: 1 Data de Entrada: 26/05/08 Postagens Recentes
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 15 Anos atrás.

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

Expert Postagens: 252 Data de Entrada: 14/07/08 Postagens Recentes
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 15 Anos atrás.

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

Liferay Legend Postagens: 2871 Data de Entrada: 31/08/06 Postagens Recentes
Hi Tamer,

Yes, the navigation across pages will appear automatically.
Peter Gray, modificado 15 Anos atrás.

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

New Member Postagens: 12 Data de Entrada: 31/01/08 Postagens Recentes
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 15 Anos atrás.

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

Liferay Legend Postagens: 2871 Data de Entrada: 31/08/06 Postagens Recentes
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 15 Anos atrás.

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

Liferay Legend Postagens: 2871 Data de Entrada: 31/08/06 Postagens Recentes
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 15 Anos atrás.

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

New Member Postagens: 12 Data de Entrada: 31/01/08 Postagens Recentes
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 14 Anos atrás.

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

New Member Postagens: 16 Data de Entrada: 22/04/09 Postagens Recentes
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.