I’m dense, I guess. Lots of examples of how to use url_segments, especially devoted to segments 1-4, but what goes on from 5 to 9 escapes me.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 27, 2009 5:50pm
Subscribe [6]#16 / May 29, 2009 5:12pm
I’m dense, I guess. Lots of examples of how to use url_segments, especially devoted to segments 1-4, but what goes on from 5 to 9 escapes me.
#17 / May 29, 2009 5:40pm
I’m dense, I guess. Lots of examples of how to use url_segments, especially devoted to segments 1-4, but what goes on from 5 to 9 escapes me.
domain.com/index.php/example/of/using/expression/engine/url/segments/for/fun
example -> template_group
of -> template
using -> entry_title
expression -> segment_4
engine -> segment_5
url -> segment_6
segments -> segment_7
for -> segment_8
fun -> segment_9
Now you can do if statements on all of these extra segments.
if segment_5 == “engine”
do this
else
do this
or
if segment_9 != “fun”
do this
else
do this
#18 / May 29, 2009 6:27pm
How do you create the segments for url_segments five through nine?
template_group / template / category / name-of-entry is easy enough. In what situation can additional segments be added?
#19 / Oct 10, 2013 12:27pm
This thread is absurd. Can some sane person please provide directions or a link to documentation regarding how to create a link structure that is more than 3 segments long. Yes, I get it, segment_1 is the fist part, segment_2 is the second…. how do I actually CREATE SEGMENT 4 THROUGH 9? Anyone have an idea?