Some questions about what EZ can be used too.

Author Message

Aleksander Lyse

Tuesday 04 May 2004 9:17:59 am

Hi guys! I used EZ when it was very new, and are now ready to try it again.
I installed the last version, and there are some things I dont seems to find out how too do.

1. How can I use many pictures in one article? It seems I cant use HTML codes in the articles - why? thats a bit weird. Is it a good argument not using html codes?

2. How can I use multipile pages in one article? I need to write some long articles at my page, but it dont seems to work with EZ. It should be an easy mod to make multipile pages...

3. How can I set the publish time on the articles? (if I want to automate the publish time)

EDIT: is it possibile to make the email to the aurthor of the article to show in the article?

Well I might find out some more questions later, but this will work for now.

Regards,
Aleksander Lyse (jupp - im a norwegian and want to support EZ of naturaly causes ;))

Paul K Egell-Johnsen

Tuesday 04 May 2004 12:16:29 pm

In the adminstration view go to "setup" and select "classes". There you can either add a new class or change an existing. Select the "article" class and edit it. Add a new attribute "object list". Give it a name (the name of the field shown when creating or editing and article) and an identifier (lowercase version of its name with spaces substituted with underscores).

Select the allowed classes, "image" would be the only one for this example, I think. Store the class with the changes and return to the "content" section and create a new article.

Now, when you create a new article you will find an additional field at the bottom. In there you can add images, and you will be able to add name, caption and upload the image.

I don't know the exact tagging to place the images in the story though ;) But you could create a template for article which lists the images.

I also think there is a way to add existing images to an article, the "object relation list", there is ways to tag where to place content from those in the article, I believe. Object relation list works the same as an object list, I belive (I have a non working older beta of this functionality, so I'm not 100% sure).

As for your other questions, the publishing date is probably just a part of the object you can insert into the article template. Check the design forums. The pages might work with tags in the xml input (the body of an article), if not you could create a class "multipage article" which has an "object list" of articles, where each object in that list is an "article".

You could use that method to create classes like "book" having lists of "chapters" which have "sections" and under there "subsections"... You get the idea.

--
http://www.vogol.com/user/spdyvkng/blog/

Willie Seabrook

Friday 07 May 2004 9:24:56 pm

http://www.ez.no/ez_publish/documentation/the_template_language
http://ez.no/ez_publish/documentation/building_an_ez_publish_site/the_members_page/creating_a_custom_content_class

May help.

Search the docs - they have all that information.

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:03:22
Script start
Timing: Jan 18 2025 16:03:22
Module start 'layout'
Timing: Jan 18 2025 16:03:22
Module start 'content'
Timing: Jan 18 2025 16:03:23
Module end 'content'
Timing: Jan 18 2025 16:03:23
Script end

Main resources:

Total runtime1.0898 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1719152.6406
Module start 'layout' 0.00590.0032 741.812539.4766
Module start 'content' 0.00911.0788 781.2891572.0391
Module end 'content' 1.08800.0018 1,353.328112.1250
Script end 1.0898  1,365.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3091160.0002
Check MTime0.00140.1253160.0001
Mysql Total
Database connection0.00080.069010.0008
Mysqli_queries1.034794.9443590.0175
Looping result0.00060.0582570.0000
Template Total1.053496.720.5267
Template load0.00270.248420.0014
Template processing1.050796.410920.5253
Template load and register function0.00020.014710.0002
states
state_id_array0.00100.089510.0010
state_identifier_array0.00120.114520.0006
Override
Cache load0.00230.2090260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.051530.0002
Fetch class attribute name0.00140.129440.0004
XML
Image XML parsing0.00180.165230.0006
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00250.2273150.0002
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs