Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Okay i'm using a IF tag to work out what pages to display.

Now i have a index page that is a clone page and i have a editable tag where users input there product tags. So lets say, they databound input coilovers, racing coilovers Within the clone page i want to run the if tag to find out what products to show.

I've just not got my head around it correctly. So i'll need some support. Each page is different to another so you could be showing content of bucket seats

So i'll use the IF tag to try and work out what the main product is and display with the pages tag what products to show, so ie, coilovers show coilovers, seats show seats. Of course the tags are separated by a comer. So sometimes i'll not be exactly coilovers however if they it finds coilovers within that editable it'll output related clone pages of coilovers

So far i've got



Code: Select all
<cms:if is_tags="<cms:show is_tags />">
<cms:pages  masterpage='selling/p_index.php'  >
... content will go here
</cms:pages>
</cms:if>
Could you please post the definition of the 'tags' editable region?
Hi KK,

The tags is a editable within the clone page called is_tags. A user will input data into that area to output what the product is.

I can get this to output if i use pages.

Code: Select all
<cms:pages  masterpage='selling/p_index.php' custom_field="is_tags=coilovers"   >


however that is a custom edit, i want it to relate to what the tags are that has been inputted within the clone page to outup what clone pages to show.

So the editable tags in the clone page p_index.php has the data
coilovers, race coilovers, gaz golds

Within the same clone page i want to use the IF tags to then show what data the clone page editable has and then show pages relating to that.

Code: Select all
cms:if is_tags="<cms:show is_tags />">
<cms:pages  masterpage='selling/p_index.php'  >
... content will go here
</cms:pages>
</cms:if>
Simon, from what I could understand users will enter the tags from the frontend via a databound form, right?

The correct way of handling tags would be using 'relations' as explained in the following thread about 'Tags and Taxonomies ' -
viewtopic.php?f=8&t=8952

In your case, however, most probably the tags will not be known beforehand (i.e. a visitor won't be able to choose from preexisting tags - rather would enter them freeform). This will make the solution given above inadequate for your use-case.

Unfortunately, no out-of-box solution currently exists to handle dynamic tags.
4 posts Page 1 of 1