We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Multiple options, different output in name and url
'm looking for a solution for this problem: A camping can have two types of tents but some of them have both types. If that is the case, the URL that will be in the output needs to be extended with -sanitairtent which serves a tabbed page and in the name showed will extended with a descriptive <campingname> with bathroom.
If the camping just offers the luxurious type with bathroom there is no extended URL but there need to be the 'bathroom' added to the name
If the camping offers the simple tent there is no extended URL and no description.
So: simple > campingname + URL campingname luxus > campingname with bathroom + URL campingname simple AND luxus > campingname with bathoom + URL campingname-bathroom
It seems easy but I can't come up with the proper execution of it.
This one isn't working but you get the idea (I hope):
<a href="http://www.example.com/<perch:content id="slug" type="slug" for="campingname" /> <perch:content id="sanitair" type="radio" label="tent" options="without|, with|, both|-sanitairtent" />"> <perch:content id="campingnaam" label="campingnaam" title="true" type="text" /> <perch:content id="sanitair" label="tent" replace="without|, with|bathroom, both|bathroom"/></a>
Want to reply to this thread?Login with Perch