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

Wagner,Aaron anwagner at deq.virginia.gov
Mon Mar 24 20:47:34 CET 2008


I think he meant to use a %{}  instead of ${}

Aaron N Wagner
Web Developer, Office of Public Affairs
DEQ - Virginia Department of Environmental Quality
[W] 804.698.4265
 
There are 10 types of people in the world: those who understand binary,
and those who don't. 

> -----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 3:42 PM
> To: 'The OpenCms mailing list'
> Subject: Re: [opencms-dev] ${number} not working with cms:contenload?
> 
> Thanks Tim,
> 
> That's interesting - the documentation and code in the example use the
> brackets - '{}', not the parentheses. When I change my code to using
> parentheses, it throws an exception:
> 
> "Reason: The provided resource name "pneumatic_$(number).html" is
illegal,
> it contains the invalid character "(" at position 11.
> Valid characters are only letters, digits and "-._~$"."
> 
> So I'm thinking the problem lies elsewhere. I was definitely hoping it
was
> as simple as a typo :-/.
> 
> -Nikolaus
> 
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Kuntz, Tim
> Sent: Monday, March 24, 2008 3:29 PM
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] ${number} not working with cms:contenload?
> 
> 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
> 
> _______________________________________________
> 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
> 
> 
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Wagner,Aaron.vcf
Type: text/x-vcard
Size: 367 bytes
Desc: Wagner,Aaron.vcf
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080324/0f9f7735/attachment.vcf>


More information about the opencms-dev mailing list