Skip to main content

Questions tagged [segments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
3 answers
1k views

How do I display a category name based on a segment?

I'm trying to show the category_name of segment_3. If I use the variable {segment_3} it displays the short name, I want to show the Full name. Any suggestions? Thanks in advance.
Mark Dodgson's user avatar
3 votes
4 answers
2k views

Detect any pagination in a conditional

I've got a site where it shows different content dependent on the url segments (categories eugh!) but as there can be up to 4 url segments, any of which could have pagination, i want to be able to say ...
JohnWBaxter's user avatar
  • 1,701
0 votes
2 answers
271 views

'Fuzzy' conditionals

feeling little dumb for this. What I am trying to do is to make my list of checkboxes checked depending on {segment_5} If the value is '6', that is easy with <input type="checkbox" name="...
Dimitri Kouvdis's user avatar