Discovered what I think is a bug with the {url_title} variable in an if/then statement. Perhaps there is something about the order of variables in if/then statements I am not aware of.
The following doesn’t work:
{if last_segment == "{url_title}"}true{/if}the following does:
{if url_title == "{last_segment}"}true{/if}All that is different is the order of the variables.
I tested all the following that did work:
{if url_title == "{last_segment}"}true{/if}
{if url_title == "{segment_2}"}true{/if}
{if segment_2 == "{last_segment}"}true{/if}
{if last_segment == "{segment_2}"}true{/if}
{if last_segment == "bocce"}true{/if}
{if url_title == "bocce"}true{/if}
{if segment_2 == "bocce"}true{/if}I tested all the following that did NOT work:
{if last_segment == "{url_title}"}true{/if}
{if segment_2 == "{url_title}"}true{/if}Using EE 1.6.9. and Last Segment 1.0.2