Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

multiple pages in yacs

jak71 -- on Oct. 11 2006
help on how to render multiple pages in yacs
Hi, thanks for a great CMS. I have found out on this site about using the 'page' tag to split articles into pages.

However my needs are slightly more complex. I have articles that are over 20-30 pages long. Instead of all the page numbers listed, I would like to know how to get yacs to not list all the page numbers but only a few numbers changing as the user moves forward together with the back and forward arrows.

example : back 8.9.10.11 forward
Bernard
avatar
from nearby-an-airport
Associate, 6696 posts

on Oct. 11 2006


My understanding is that, with this number of pages, it will be more handy to create one section with 20 to 30 articles. YACS will automatically add to each article a navigation box to move around.
Jak71
5 posts

on Oct. 12 2006


No, I am talking about a single long article. As I see it yacs is capable of storing very long articles - sometimes a single paper can run into over 50 pages. This is not the same as 50 articles of a few pages contained in one section. The matter is one of convenience to navigate within the long article itself. Instead of the single article of 50 pages having all numbers below, it would be more tidy and convenient to have yacs just list a few page numbers as the user moves forward. This is not a show stopper but another small feature that would add to what yacs already is - a great cms.

I am not familiar with yacs itself. It would seem that a small bit of code with regard to the 'page' tag in codes.php would need to be tweaked. I would appreciate some help to know if this small feature has been implemented before by someone or if it can be easily done and if so, how might it be possible to do it. Thanks
Bernard
avatar
from nearby-an-airport
Associate, 6696 posts

inspired from jak71 on Oct. 12 2006


Jak71: We do appreciate suggestions such as yours, and the code [page] has been added after a request similar to yours some months (years?) ago. However, if the point seems to be clear to you, it's not to me. Maybe it would help if you could describe differences you make between a-long-article-split-in-pages and several-articles-grouped-in-a-section?
Jak71
5 posts

on Oct. 13 2006


Bernard: I tried to illustrate the point by using the demo server at demo.yacs.info
I attempted to post a long article with around 30 'page' tags to break up the article into 30 pages to illustrated the point that instead of all 30 page numbers being shown below each page, only a few pages numbers should be shown and should change as the user moves forward or back.
However on demo.yacs.info running yacs 6.8a I got a popup box saying 'page content exceeds 64,000 character, do you confirm you are intended to post a jumbo page'. After confirming the content appears to upload but then the page just goes black and there is no confirmation that the process has been completed successfully.
There should be no popup box asking for confirmation as the behaviour in 6.6.1 in correct. It should be up to the user to be wise enough if he wants to put in very long articles.
Is there a demo server of yacs running 6.6.1 so that I can illustrate the point I am trying to make ?
Bernard
avatar
from nearby-an-airport
Associate, 6696 posts

inspired from jak71 on Oct. 13 2006


Jak71: I understand YACS does not do the trick at the moment anyway. My question was more, at the conceptual level, how you would see the difference.
Jak71
5 posts

on Oct. 13 2006


Bernard: I understand your concept of sections and sub-sections. It is a good concept and helps to organize material.

However to give you an example at a conceptual level of what I had in mind. If I want to store a published paper of 100 pages, this paper already has its own formating as intended by the author. I cannot break it down into sections and sub-sections to fit into yacs's scheme of things as I have to preserve the existing formating. I would like to have the flexibility to store the entire paper with it's existing formating but break it down into a number of pages. However to have all the numbers 1-100 below the article just takes too much space and is not tidy. I would prefer that only a few numbers be shown as a user moves through the article together with back and forward arrows. Thinking further to navigate better it would also be nice to have a "go to page" box and perhaps even a drop down box with the main headings (use tags) of the article so that a user need not have to search through each page to find the part he wanted. This feature could be activated by an option so it need not be activated by default but only when needed.
Bernard
avatar
from nearby-an-airport
Associate, 6696 posts

inspired from jak71 on Oct. 13 2006


Jak71: Thank you for the explanation. Now I better understand your point. The navigation bar is built in PHP function navigate() in script skins/skin_skeleton.php and maybe you could attempt to make this function a smarter thing?
Jak71
5 posts

on Oct. 13 2006


Bernard: I have looked at skin_skeleton.php and it is a possibility. However I am not familiar with yacs at all and have not looked at the code other than a cursory glance. This is not a show stopper for me and I can manage quite nicely with the current yacs 6.6.1. If you think this might be a feature you might add in the future I would look forward to such an update. Thanks for a great cms.
Bernard
avatar
from nearby-an-airport
Associate, 6696 posts

inspired from jak71 on Oct. 15 2006


Jak71: The navigate() function will have to evolve anyway, because content of YACS servers is growing rapidly. This is because the function is used at several places throughout the software. 'Hope you will have fun with your server.

Rate this page
Posted by Jak71 on Oct. 11 2006, commented by Bernard on Oct. 11 2006, (popular)