HTML5 Data Bindings Support Product Page

Answered

show repeat region if URL exists

Asked 14 Mar 2014 15:26:04
1
has this question
14 Mar 2014 15:26:04 Andre Bender posted:
I want to show a repeat region with unfiltered data (all data) if a URL parameter does not exist. If the URL parameter exists, I want to show the URL filtered data. How do I achieve this?

I tried to use to repeat regions with to datasources but don't now to set up the conditional case (if URL parameter exists show repeat region1 else show repeat region 2).

Replies

Replied 14 Mar 2014 15:53:06
14 Mar 2014 15:53:06 Teodor Kuduschiev replied:
Hello,
you can have 2 regions and hide/show them when the url parameter exists or not.
In the Data Bindings panel select $URL, click the ADD button, enter the name of your url parameter, for example: my_url_param
Select the div that you want to show when the my_url_param exists, select @my_url_param in the data bindings panel, select Bind to: div.data.show, click bind.
Do the same with the other container, selecting Bind to: div.data.hide
Replied 14 Mar 2014 16:52:48
14 Mar 2014 16:52:48 Andre Bender replied:
Thanks Teodor.

Reply to this topic