How to this ??? [Magazin idea]

Author Message

Selmah Maxim

Saturday 15 November 2003 10:04:36 am

Hi ..

I`ll use ezp 3.2 to make magazin (monthly), it`s have alot of sections, so the owner didn`t like the idea to create the same sections each month, so i was thinking about this solution, its could be kind of datatype, lets i have 10 section, I wanna to list this sections in html select in article class, so when they gonna write new article they will select the magazin issue and section ...

Then in user site will be sort out by issue and section !

Now, how to list folders in class ??

Thx in advance.

Selmah Maxim

Saturday 15 November 2003 11:43:38 am

Hmmm ...

The sections will be fixed, but magazin issue will is not, so i need to put the issue id in the article, and its will be sorted and fetched by the magazin issue id !

Should I write datatype for this ?

Marco Zinn

Sunday 16 November 2003 3:11:50 am

Selmah,
i think, you can use the "Selection" Datatype, which is built-in.
I don't find docu for this now, but in this thread http://ez.no/developer/ez_publish_3/forum/general/cant_find_value_of_an_ezselection_datatype, there is a line, how to use it.
But it should be enough just to define an attribute of datatype "Selection" in your article class.
What i do not know now is, how to filter for that attribute, when fetching articles of section X.

Marco
http://www.hyperroad-design.com

Selmah Maxim

Sunday 16 November 2003 2:58:01 pm

Hi ..

The "Selection" must be update each time they add new magazin issue, The "Selection" will have issue title and the issue id, so in fetch will select all the articles in .. lets say news section which have the gived issue id !

so ... any way ... to make it auto listing for folder in class !?

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 19 2025 00:54:42
Script start
Timing: Jan 19 2025 00:54:42
Module start 'layout'
Timing: Jan 19 2025 00:54:42
Module start 'content'
Timing: Jan 19 2025 00:54:43
Module end 'content'
Timing: Jan 19 2025 00:54:43
Script end

Main resources:

Total runtime1.2173 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 590.2891152.6250
Module start 'layout' 0.00630.0039 742.914139.4453
Module start 'content' 0.01021.2057 782.3594539.9453
Module end 'content' 1.21590.0013 1,322.304712.1641
Script end 1.2172  1,334.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2820160.0002
Check MTime0.00150.1219160.0001
Mysql Total
Database connection0.00100.085610.0010
Mysqli_queries1.156595.0098600.0193
Looping result0.00070.0543580.0000
Template Total1.166995.920.5835
Template load0.00250.209020.0013
Template processing1.164495.655520.5822
Template load and register function0.00030.021310.0003
states
state_id_array0.00370.304110.0037
state_identifier_array0.00130.109920.0007
Override
Cache load0.00230.1855230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.058720.0004
Fetch class attribute name0.00140.118650.0003
XML
Image XML parsing0.00360.291920.0018
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00670.5482160.0004
String conversion0.00000.000740.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
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
1content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs