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 !

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:04:21
Script start
Timing: Jan 18 2025 16:04:21
Module start 'layout'
Timing: Jan 18 2025 16:04:21
Module start 'content'
Timing: Jan 18 2025 16:04:22
Module end 'content'
Timing: Jan 18 2025 16:04:22
Script end

Main resources:

Total runtime0.8773 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1641152.6406
Module start 'layout' 0.00530.0028 741.804739.4766
Module start 'content' 0.00810.8674 781.2813587.4453
Module end 'content' 0.87550.0017 1,368.726612.1250
Script end 0.8773  1,380.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3629160.0002
Check MTime0.00130.1454160.0001
Mysql Total
Database connection0.00060.071310.0006
Mysqli_queries0.825594.0895620.0133
Looping result0.00060.0682600.0000
Template Total0.845996.420.4229
Template load0.00190.214220.0009
Template processing0.844096.201120.4220
Template load and register function0.00010.013910.0001
states
state_id_array0.00100.119110.0010
state_identifier_array0.00170.190220.0008
Override
Cache load0.00160.1833270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.085530.0002
Fetch class attribute name0.00090.105360.0002
XML
Image XML parsing0.00130.149030.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00100.1152220.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs