[opencms-dev] ${number} not working with cms:contenload?

Kuntz, Tim tim_kuntz at pamperedchef.com
Mon Mar 24 20:28:44 CET 2008


Nikolaus,

I had the same typo recently. Try %(number) instead of ${number}

tim

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nikolaus Bauman
Sent: Monday, March 24, 2008 2:20 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] ${number} not working with cms:contenload?

Hi,

I have a list of items for sale that I'm creating using code based off
of
the xmlContentDemo. It works as intended, except when I create new
items.
When I click on the plus symbol to add an xml item it creates an xml
doc,
but ignores the fact that I have the macro ${number} in the filename.
For
instance, when I load the content I use the code below:

<cms:contentload collector="allInFolderDateReleasedDesc"
param="/usedequipment/pneumatic_${number}.html|xmlcontent"
editable="true">

Instead of creating pneumatic_000x.html, it simply creates
pneumatic_.html;
this prevents me from creating more than one document. Any insight as to
how
this macro could be ignored?

Thank,
Nikolaus 




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



More information about the opencms-dev mailing list