AW: AW: [opencms-dev] Problem with contentload

Matthias Neher Matthias.Neher at doubleSlash.de
Mon Oct 24 15:07:38 CEST 2005


Hi Bernd,

I tried this before without any success. It is not possible to insert the
macro expression "${opencms.filename}" in the <cms:property> tag. It's a
pity.
Now I'm trying to loop the <cms:contentload> tag loading a single file.
Perhaps that works. I hope it is possible to get a list with the "actual
news" and one list with the "old items".

Kind regards,
Matthias

-----------------------------------------------------------------
Matthias Neher                     Fon: +49-7541-6047-143
doubleSlash Net-Business GmbH      Fax: +49-7541-6041-111
Müllerstr. 12 B                    Matthias.Neher at doubleSlash.de
D-88045 Friedrichshafen            http://www.doubleSlash.de


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Bernd Wolfsegger
Gesendet: Montag, 24. Oktober 2005 14:54
An: opencms-dev at opencms.org
Betreff: Re: AW: [opencms-dev] Problem with contentload


Hi Matthias,

I checked again, and I was wrong.
The default property method retrieves values form the list.
But perhaps something like this does what you want:

<cms:property name="is_in_archive" file="${opencms.filename}" />

or

<cms:property name="is_in_archive" file="element.uri" />

I haven't tested all this yet, because I did not need it.
But would be nice to get an answer.

Kind regards, Bernd


On Monday, 24. October 2005 15:29, Matthias Neher wrote:
> Hi Bernd,
>
> Thank you. Unfortunately, it does not work. Maybe it is a bug.
> Has anybody else any idea?
>
> Thanks a lot in advance
> Matthias
>
> -----------------------------------------------------------------
> Matthias Neher                     Fon: +49-7541-6047-143
> doubleSlash Net-Business GmbH      Fax: +49-7541-6041-111
> Müllerstr. 12 B                    Matthias.Neher at doubleSlash.de
> D-88045 Friedrichshafen            http://www.doubleSlash.de
>
>
>
>
>
>
>
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Bernd Wolfsegger
> Gesendet: Montag, 24. Oktober 2005 13:09
> An: The OpenCms mailing list
> Betreff: Re: [opencms-dev] Problem with contentload
>
>
> I think you just have to omit the "file" attribute.
> This works with the cms:contenshow tag and with the API property method.
> I have not tested the cms:property tag though; maybe it's a bug.
>
> Kind regards, Bernd
>
> On Monday, 24. October 2005 13:28, Matthias Neher wrote:
> > Hi list,
> >
> > I'm still working at my news-archive.
> > To remember: I have news items which are xml content files. These files
>
> are
>
> > stored in a folder called news. The index.html shows a list of all news
> > items stored in its folder. Old news items should not be shown in this
> > list. They should appear in another list (archive or something like
> > that). My first approach was to create a subfolder (archive) and to move
> > old news items into this folder by a script. It works but I have
problems
> > with the filenames. If a news item (let me say newsitem_0003.html) is
> > moved to the archive folder and you create a new news item, it has the
> > same filename (newsitem_0003.html). Sometime this new created news item
> > will be old too and should be moved to the archive folder. In this
folder
> > there is already a file "newsitem_0003.html". So this could not work.
> > My second approach is to have no special archive folder. All news
(actual
> > ones and old ones) are in the same folder. I like to create two list
> > views - one which shows only actual news items one which shows old news
> > items. I like to differ whether a news item is old or not by using a
> > property. Now it is impossible to read a property of a file during the
> > contentload tag.
>
> I
>
> > tried the following:
> >
> > <cms:contentload collector="allInFolderDateReleasedDesc"
> > param="${opencms.folder}newsitem_${number}.html|500" editable="true">
> >  <cms:property name="is_in_archive" file="uri" /><br />
> > ...
> >
> > I do only get the property value of the file which creates the list, not
>
> of
>
> > the actual news item file.
> >
> >
> > Any idea?
> >
> > Thanks a lot in advance
> >
> > Best regards
> > Matthias
> >
> > -----------------------------------------------------------------
> > Matthias Neher                     Fon: +49-7541-6047-143
> >
> > doubleSlash Net-Business GmbH      Fax: +49-7541-6041-111
> >
> > Müllerstr. 12 B                    Matthias.Neher at doubleSlash.de
> >
> > D-88045 Friedrichshafen            http://www.doubleSlash.de
>
> --
>
> [  Code Create
> [  Web Content Management and Presentation
>
>
> [  Bernd Wolfsegger
> [  Sun Certified Programmer for Java(TM) 2 Platform
>
>
> [  Lohmeyerstrasse 13
> [  10587 Berlin
> [  Germany
> [  Fon +49 (0)30 26555788
> [  Fax +49 (0)30 2651835
> [  Mobile +49 (0)163 6505622
>
> [  bw at code-create.com
> [  http://www.code-create.com/
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev

--

[  Code Create
[  Web Content Management and Presentation


[  Bernd Wolfsegger
[  Sun Certified Programmer for Java(TM) 2 Platform


[  Lohmeyerstrasse 13
[  10587 Berlin
[  Germany
[  Fon +49 (0)30 26555788
[  Fax +49 (0)30 2651835
[  Mobile +49 (0)163 6505622

[  bw at code-create.com
[  http://www.code-create.com/



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list