Forums / Setup & design / How to splite an article to multi pages ?

How to splite an article to multi pages ?

Author Message

Marvix Marx

Friday 04 August 2006 8:37:57 am

If you have a big article will be nice to breake to pages, or to head lines (titles), but how to do this with ezp 3.8.4 ?!

Thanks

Stuart Fenton

Friday 04 August 2006 9:25:37 am

You can create two different classes one for the master page and another for the sub pages. For example the classes could be called "Article Multipage" and "Article subpage".

You would create an "Article Multipage" and the each sub page as children of the "Article Multipage".

You would then write some templates to contain the design. The Multipage would reference the node in it's fetch statements while the subpage would reference the parent in it's fetch statements.

This won't automatically cut up a large page but is very effective for structuring lots of information in an organised way.

Have a look at Westany for a simple example: http://www.westany.com/voices/complete_voice_prompt_packs_for_the_asterisk_pbx/tamara_female_russian_asterisk_voice_prompts

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Xavier Dutoit

Friday 04 August 2006 9:51:42 am

Bart added two features, one to create a table of content out of the headers, the second to be able to jump to any of these headers.

With that, you can have this splited by page, or play with javascript to provide the same effect.

I couldn't put my hand on the documentation, but here's the txt:
http://lists.ez.no/pipermail/sdk-svn/2006-March/006175.html

try |eztoc on your xmlblock and let us know.

X+

http://www.sydesy.com

Marvix Marx

Saturday 05 August 2006 12:08:05 am

Thanks for your help ...

Fats Fenton ... I don`t see what we talking about in that site, but I had understand what you mean ,,,

Xavier Dutoit ... spliting the page by dhtml, or JS will not optimize the site for speed, loading part by part will be faster ...
Where to read more about this features, this will be great .. any document about it ,,, I couldn`t see the the way how to use it !

eZ debug

Timing: Jan 18 2025 11:29:52
Script start
Timing: Jan 18 2025 11:29:52
Module start 'content'
Timing: Jan 18 2025 11:29:53
Module end 'content'
Timing: Jan 18 2025 11:29:54
Script end

Main resources:

Total runtime1.0690 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 588.9609180.8281
Module start 'content' 0.00820.9078 769.7891592.5391
Module end 'content' 0.91600.1529 1,362.3281337.3672
Script end 1.0689  1,699.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.4481210.0002
Check MTime0.00190.1760210.0001
Mysql Total
Database connection0.00190.176710.0019
Mysqli_queries0.993692.94221990.0050
Looping result0.00200.18811970.0000
Template Total1.035596.920.5177
Template load0.00250.233720.0012
Template processing1.033096.627520.5165
Template load and register function0.00020.020310.0002
states
state_id_array0.00080.078510.0008
state_identifier_array0.00120.115420.0006
Override
Cache load0.00210.1997270.0001
Sytem overhead
Fetch class attribute can translate value0.00190.175940.0005
Fetch class attribute name0.00110.098860.0002
XML
Image XML parsing0.00140.128240.0003
class_abstraction
Instantiating content class attribute0.00010.006660.0000
General
dbfile0.00230.2111330.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs