Forums / Developer / How to this ??? [Magazin idea]

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 !?