[ZDP] updating ZDP General news to news classes of Maik
Tom Deprez
tom.deprez@uz.kuleuven.ac.be
Wed, 12 Jan 2000 18:09:47 +0100
Okidoki,
Now I only need to know the following. Has somebody got an idea for this? :
1. As title of the news-items I use the date, however, I want to display it
in another format. How to transform a string to a date and use it in dtml-var?
2. The news items are now displayed on html basis... this means now that
I've to put everyware <p>, <br> tags. Is it possible to change the news
class in such a way that both displays are possible? (Eg without <html>
tags and one with <html> tag? This without overriding the news class
everytime!
Possible with an extra property in the News Class ie. if property is 'html'
the n show it like an html, if property is 'stx' then show it as structured
text etc?
I'm of to home now, see you this evening...
Tom.
At 17:41 12/01/2000 +0100, Maik Röder wrote:
>Hi Tom !
>
>Tom Deprez wrote:
>>
>> Hi Maik,
>>
>> I made a Newsfolder class and added news classes in it.
>>
>> However, I like my news presentation better then the one we now.
>> How can I change this?
>> I can make a new news presentation in NewsFolder Product, but how can I be
>> sure
>> that NewsFolder will use this presentation?
>
>The Bottom DTML method of NewsFolder decides what kind of list is
>presented:
>
>Bottom:
><dtml-var ListNews>
>
>You want to override this behaviour. Put your kind of list
>inside the NewsFolder ZClass:
>
>MyOwnList:
>...
>
>Then, you have to go into the ZClass instance, and make it
>use another type of listing:
>
>Put a standard_zdp_template method inside the NewsFolder.
>Copy the content of the Template method from DocumentFolder over
>to standard_zdp_tenplate.
>
><dtml-var standard_html_header>
><dtml-var Top>
><P>
><dtml-var Service_Management>
><P>
><dtml-var Header>
><P>
><dtml-var Middle>
><P>
><dtml-var Main>
><P>
><dtml-comment>
>deleted Bottom
></dtml-comment>
><B>My news list</B>
><dtml-with news>
><dtml-var MyOwnList>
></dtml-with>
><dtml-var standard_html_footer>
>
>This works because DocumentFolder first looks whether there
>is a file standard_zdp_template in the folder and if it is there,
>it is used. If the file is missing, the Template is used.
>
>Greetings,
>
>Maik
>