Hi guys,
I’m not sure if this can actually be done but I am trying to pass a variable created using the {assign_variable} function to the weblog search parameter. The variable is created by taking a segment from the url and using the uri_prettify plugin. I’m not very good at explaining things like this so here is my code below.
{if segment_3}
{assign_variable:brand="{exp:uri_prettify}{segment_3}{/exp:uri_prettify}"}
<h1>{brand}</h1>
{exp:weblog:entries weblog="products" search:product_brand="={brand}"}So ... When I place the variable between the <h1> tags it prints out correctly on the page so it is holding a value. However, it will not pull what it should from the database with the weblog search parameter.
Maybe I’m going about this the wrong way and it can’t be done, but any help would be much appreciated 😊
Steve.