Hi,
I have a situation where I would like to create two global variables:
{grid_view}
{orderby_popular}
Then pass those variables to a template in a link in order to create different layouts and orderby views of the same data. WITHOUT USING SEGMENTS VARIABLES. The combination of both global variable conditions with category and tag url segments makes it way to complicated to use segment variables.
For example if I have a link:
<a href="http://{path=template_group/template}">Grid View</a>With that link I would like to set {grid_view} to either true or false in the template that I’m linking too, same thing for the {orderby_popular} variable.
In my template I envision something like this:
{if grid_view != "true" && orderby_popular != "true"}
Show list view with default ordering
{if:elseif grid_view != "true" && orderby_popular == "true"}
Show list view with popular entry ordering
{if:elseif grid_view == "true" && orderby_popular != "true"}
Show grid view with default ordering
{if:else}
Show grid view with popular entry ordering
{/if}Is that at all possible?
I tried another solution using url segments and dynamic parameters but I need the chosen options to work with pagination…
Note: I’m using Solspace Favorites to set entry popularity.