Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page

 

 


Damon
Staff / Moderator


Oct 23, 2006, 3:47 PM

Post #1 of 25 (5376 views)
Shortcut
Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page Can't Post

Two different methods to do this. For this tutorial, I will show the steps for Method one.

Method one: the article is split up over multiple pages based on the number of paragraphs per page. For example, page one shows paragraphs 1-4, page two show paragraph 5-9 and so on. This is done using the limitParagraphs placeholder modifier: $article.content:limitParagraphs(1-4)$

Method two: the article is split up over multiple pages by using multiple WYSIWYG editors in the article editor. Each WYSIWYG editor would publish content to a separate page.

Method one: Mutiple Article pages using the limitParagraphs placeholder modifier
1. Upload the extra article templates (see attached zip file) into your
/cgi-bin/artman2/templates/articlePages directory.

2. Create Publishing Rules for article pages 2, 3 and so on.

Admin > Publishing - click Create button

Rule Name: Article Page 2
Rule Description: The article second page
Rule Type: a page for each article
Template: articlePages/articlePage2.html
Placeholder Set Name: published.articlePage2
Status: Active
Published Files: <catFile>/<artFile>_2.<ext>

Repeat this to make another publish rule for Article Page 3 (replacing 2 with 3 in the above steps).

In Admin > Publishing, publish each of the articlePages rules.

Now each of the article pages will have a page navigation like this
"Page: 1 2 3 " appear for articles with more than 4 paragraphs.



The number paragraphs per page and pages generated is completely customizable.

In included templates (in the attached zip), I also inlcuded a templateIf so that is the author field is left blank, the "By" won't be published.

Give this tutorial a try a let me know if you have questions. :)

Cheers
Damon Edis
interactivetools.com

(This post was edited by Damon on Nov 15, 2006, 11:08 AM)
Attachments: articlePages_templates.zip (3.50 KB)
  multiple_article_pages.jpg (13.9 KB)


klausre
User

Nov 2, 2006, 11:45 AM

Post #2 of 25 (5306 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi. Is there a solution where we can use "page break" in the default wysiwyg editor window. Splitting based on paragraphs does fit my kind of articles. I also want to have a page name for every page. Any Tutorial's on this Damon?


MEKAEEL
User

Nov 2, 2006, 12:26 PM

Post #3 of 25 (5301 views)
Shortcut
Re: [klausre] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

that's exactly what I wish for! I hope there is a way to do it!


ChetW
Staff


Nov 3, 2006, 3:46 PM

Post #4 of 25 (5268 views)
Shortcut
Re: [klausre] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi,

Thanks for the post!

At this time we don't have a page break script that would allow you to add a page break inside the wysiwyg editor. However If you would like to provide us with a few more details on how you would like this to work on your website we may be able to come up with a solution that will work for you. :)

I look forward to hearing back from you and if you have any other questions please don't hesitate to ask!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



Damon
Staff / Moderator


Nov 3, 2006, 3:54 PM

Post #5 of 25 (5267 views)
Shortcut
Re: [klausre] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi,


Quote
Splitting based on paragraphs does fit my kind of articles.


Another option is divide your article into pages using multiple WYSIWYG editors. So for example you could have three page articles, by entering the content into three different editors. This would be my preference for multiple page articles as you would have complete control over what content appears on which page.

If this sounds like something that will work for you, let me know and I can put together a tutorial. :)

Cheers
Damon Edis
interactivetools.com


MEKAEEL
User

Nov 3, 2006, 10:57 PM

Post #6 of 25 (5258 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

is it possible to make it depend on the number of characters? like 1000 for each page like the last version of this tutorial?

splitting by paragraphs is kind of tricky with me, I have articles with many one sentence paragraphs Tongue


Damon
Staff / Moderator


Nov 4, 2006, 8:51 AM

Post #7 of 25 (5248 views)
Shortcut
Re: [MEKAEEL] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi,

I don't see a way that you could limit the number of characters per page.

Is using multiple WYSIWYG editors on a page an option for you?

For example, on the create/edit article page you could have three WYSIWYG editors labeled:
Content - Page 1
Content - Page 2
Content - Page 3

Cheers
Damon Edis
interactivetools.com


MEKAEEL
User

Nov 4, 2006, 9:01 AM

Post #8 of 25 (5247 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

no that's going to be hard on the editors :(

well I think I'm managing right now but if there is another way to break the pages I would not mind trying it Angelic


klausre
User

Nov 4, 2006, 9:50 AM

Post #9 of 25 (5245 views)
Shortcut
Re: [ChetW] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi Chet and the rest of the Interactivetools hacker's ;)

For my article site (and I think others also needs it) I need a page break function.

What I like is to have a button in the wysiwyg editor or somewhere else that give the option to insert a page break/ new page. Even better if I had a option to enter a page name like this (see attachment). It's from joomla 1.5.

whit the option to have page break where ever I like, we can spit pages after where it's natural to have a break.


(This post was edited by klausre on Nov 4, 2006, 9:51 AM)
Attachments: pagebreak.jpg (18.9 KB)


wimberb
User

Nov 7, 2006, 3:50 PM

Post #10 of 25 (5209 views)
Shortcut
Re: [klausre] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

I would like to see this function as well. I have several articles that are quite large. Being able to insert a page break that would break the articles up into several pages would be great. I believe there was an unsupported script for AM 1 that would do this, if I am not mistaken.


thatscountry
User

Nov 7, 2006, 4:09 PM

Post #11 of 25 (5204 views)
Shortcut
Re: [wimberb] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

 A page-break option would be just what I can use on my website. The pages get quite long sometimes but I would like to be able to control where the page splits.

***************

Marti Clayton
That's Country


klausre
User

Nov 15, 2006, 1:32 AM

Post #12 of 25 (5093 views)
Shortcut
Re: [thatscountry] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Any news on the page break option Interactive?


Damon
Staff / Moderator


Nov 15, 2006, 8:35 AM

Post #13 of 25 (5079 views)
Shortcut
Re: [klausre] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi,


Quote
wimberb wrote: I believe there was an unsupported script for AM 1 that would do this



I think the script you are talking about used javascript to create page breaks. I recall that it was very problematic as it used a document right statement to output the whole article page and had configuration issues.


Quote
klausre wrote: Any news on the page break option Interactive?



No other news on other page break options. Right now we are focused on getting the next version of Article Manager ready then we can look at other features to add.

If anyone has any questions about the my two methods of creating multiple page articles, please let me know.

Cheers
Damon Edis
interactivetools.com


thatscountry
User

Nov 15, 2006, 9:17 AM

Post #14 of 25 (5077 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

I would prefer the "page break option" but, for now, using the 3 WYSIWYG editors would probably solve my problem when I have long pages with a photo gallery and award winners etc. The first option "splitting paragraphs up" would make a mess of these articles.

I would really appreciate that tutorial as I have no idea where to start.

***************

Marti Clayton
That's Country


Damon
Staff / Moderator


Nov 15, 2006, 11:05 AM

Post #15 of 25 (5063 views)
Shortcut
Re: [thatscountry] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi Marti,

Here is the tutorial you were asking for:
Tutorial: Creating Multiple Page Articles - using mulitple WYSIWYG editors

If you have any questions about it, just let me know.

Cheers
Damon Edis
interactivetools.com


klausre
User

Jan 11, 2007, 3:35 AM

Post #16 of 25 (4646 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi, is there any news on page break's?


Donna
Staff / Moderator


Jan 12, 2007, 9:01 AM

Post #17 of 25 (4614 views)
Shortcut
Re: [klausre] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

Hi klausre,

Take a look at the tutorials that Damon has created -- those are the current methods for splitting up articles into multiple pages. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


DIY-Street
New User

Feb 14, 2007, 7:46 PM

Post #18 of 25 (4414 views)
Shortcut
Re: [Donna] Tutorial: Creating Multiple Page Articles [In reply to] Can't Post

I'm a site owner that is definitely interested in Article Manager but the feature that is holding back our purchase of it is the lack of a functioning pagebreak.

In all of the 'free' CMS's like php-nuke, post-nuke, and others we've tried (Joomla being another one), the pagebreak feature is in by default and it is an extremely important feature that content sites like ours needs.

We simply can't allow a 10,000 word article with multiple pictures to run-on in a single page. We cannot split up the article into multiple articles.

I don't think that the tutorials offered above are a good answer to the needs of content site owners. I imagine that the methods work if implemented properly, but what it means is you are leaving it up to us, the purchasers, to modify the software when the developers should have included this feature by default.

At the same time, there is no guarantee that these two methods work (for everyone), nor is there a guarantee that the published articles will display properly, link properly, etc, since it is not an integrated feature.

I do take Damon's word at face value as I'm sure he's tested it himself thoroughly before posting it, but you can sense our hesitation for the sole fact that it is not a feature that is built into the software. Especially when free software like those I previously mentioned have the pagebreak function built into them (and work quite well as the script creates all of the necessary links and keeps the pages within the article properly).

We are testing the demo software right now, adding as many articles as we can just to make sure the software does what we want, in all browsers and OS's, as well as getting the staff trained on your particular piece of software. I'm ready to spend the money as we definitely like it, but this is the one feature that is sorely lacking for us...we MUST have the pagebreak function built into it.


edit: ps here is our 'demo' within your site:
http://demo3.interactivetools.com/current/artman2/042/16508/index.html


Thank you for taking the time to read this!

Travis H (aka Angry_Games)
www.diy-street.com
www.diy-street.com/forum


(This post was edited by DIY-Street on Feb 14, 2007, 7:51 PM)


Tmod
New User

Feb 14, 2007, 8:08 PM

Post #19 of 25 (4410 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

I have to agree with the rest as the pagebreak feature would really make this software complete.

I mean if most it not all of the opensource programs have it why doesn't this one?

The way you currently have of accomplishing this task is sort of stone age in my opinion.

It really distracts from a otherwise superb software.

Tmod


ChetW
Staff


Feb 16, 2007, 7:18 AM

Post #20 of 25 (4376 views)
Shortcut
Re: [Tmod] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

Hi Guys,

Thanks for the excellent feedback!

This is something that I have added to our feature request list so perhaps it will be included in a future Article Manager release. :)

In the meantime if you have any other questions please feel free to ask.
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



LostCoder
User

Jun 25, 2007, 6:09 PM

Post #21 of 25 (3492 views)
Shortcut
Re: [ChetW] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

Hi, I hate to resurrect this one, but we currently run AM 2 on a large content site and are looking to install it on 2 additional domains. However, the lack of a page break feature is keeping us from moving forward.

I have read the tutorials on current methods, but these methods don't seem to work well for us. We already have about 1000 pages up, so going back through and splitting them manually is not an option.

Is there an estimated time frame for a feature like this being added. I love AM, and i hate most of the other content managers i have demo'd /installed, but this feature is becoming more and more critical, especially for content sites whose revenue is generated as a result of multiple page views. More pages views means more ads clicked or more CPM, so I am sure you can see the importance of something like this.

As a reco, maybe building in two ways to do it:

1) Allow for a default of X Characters and then split the page

2) Also allow the user to insert a page break on the Article CREATE screen

Thanks!

LC


Jake
Staff / Moderator


Jun 27, 2007, 9:21 AM

Post #22 of 25 (3457 views)
Shortcut
Re: [LostCoder] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

Hi LostCoder,

Thanks for your post!

I can't really give you a time frame for when this feature will be included with the software, however our development team is aware that many users have requested this feature.

Let us know if you have any other questions. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



LostCoder
User

Jun 27, 2007, 1:54 PM

Post #23 of 25 (3452 views)
Shortcut
Re: [Jake] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

thanks jake. I (and many others) definitely appreciate everything you guys have done insofar as AM upgrades are concerned.

keep up the great work.

LC


fearless
User

Aug 3, 2007, 9:41 PM

Post #24 of 25 (3174 views)
Shortcut
Re: [Damon] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

Hi,

your templates are obvioulsy to suit the old design as they are not consistant with the template i am usng in 2.15. Can you please advise how to do this using the new default install which i believe should suit using Div tags?

We must also consinder i have edited my article pages to also include the link to "view authors other articles" so would like to contiue using this thanks although in time will chnage the overall layout design.



thanks in advance.

Steve


Jake
Staff / Moderator


Aug 6, 2007, 10:39 AM

Post #25 of 25 (3135 views)
Shortcut
Re: [fearless] Tutorial: Creating Multiple Page Articles automatically based on the number of paragraphs per page [In reply to] Can't Post

Hi Steve,

Thanks for posting. Smile

Firstly, you'll need to make two additional copies of your articlePage.html template. Name these "articlePage2.html" and "articlePage3.html". Now you'll need to modify your articlePage.html template to include the code for additional page links. Add this code wherever you'd like those links to appear:


Code
        <!-- templateIf : $article.content:limitParagraphs(5-9)$ ne "" --> 
Page: <strong>1</strong> <a href="$published.articlePage2.url$">2</a>
<!-- /templateIf -->

<!-- templateIf : $article.content:limitParagraphs(10+)$ ne "" -->
<a href="$published.articlePage3.url$">3</a>
<!-- /templateIf -->


Next, you'll need to find the $article.content$ placeholder on your template. Replace it with this:

$article.content:limitParagraphs(1-4)$

For your articlePage2.html template, use this code for your page links:


Code
        <!-- templateIf : $article.content:limitParagraphs(5-9)$ ne "" --> 
Page: <a href="$published.articlePage.url$">1</a>
<strong>2</strong>
<!-- /templateIf -->
<!-- templateIf : $article.content:limitParagraphs(10+)$ ne "" -->
<a href="$published.articlePage3.url$">3</a>
<!-- /templateIf -->


And replace your $article.content$ placeholder with this:

$article.content:limitParagraphs(5-9)$

Now on your articlePage3.html template, use this code for your page links:


Code
        <!-- templateIf : $article.content:limitParagraphs(10+)$ ne "" --> 
Page: <a href="$published.articlePage.url$">1</a>
<a href="$published.articlePage2.url$">2</a>
<strong>3</strong>
<!-- /templateIf -->


Again, find your $article.content$ placeholder and replace it with this:

$article.content:limitParagraphs(10+)$

Once this is done, you'll need to follow the steps Damon mentioned above in creating the different publishing rules for your article pages. When these steps are completed, publish these rules and your articles should now have multi-page links.

Let us know if you need anything else!
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4