Hi Guys,
I am trying to find a way to get my current uri and then split it for a breadcrumb menu.
Is their a native EE function that can do this?
Any help will be great.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
September 12, 2011 5:12am
Subscribe [3]#1 / Sep 12, 2011 5:12am
Hi Guys,
I am trying to find a way to get my current uri and then split it for a breadcrumb menu.
Is their a native EE function that can do this?
Any help will be great.
#2 / Sep 12, 2011 10:59am
Hi Mat
You could use URL Segment Variables (see: http://ellislab.com/expressionengine/user-guide/templates/globals/url_segments.html )
#3 / Sep 12, 2011 11:02am
Just realised that URL Segments will-only-give-you-hyphenated-wording.
Here are some add-ons that may help: http://devot-ee.com/search/results/search&keywords=breadcrumb&channel=addons&addon_version_support=ee2/
#4 / Sep 12, 2011 11:31am
Thanks Matt:P , I am going to look into it now.
#5 / Sep 12, 2011 11:55am
Hi Mat,
As Matt:P has mentioned you can either use segment variables in order to get at the different parts of the URL or a 3rd party add-on to do something along those lines too.
Would you like me to move this post down to our Community Help forums to see if anyone else has any ideas on this one?
Thanks,
Mark
#6 / Sep 12, 2011 2:43pm
Hi Mark,
Yes thanks that would be great. The segmented url is that the same as codeIgniters $this->uri->segment() function.
#7 / Sep 12, 2011 5:32pm
Hi Mat,
Moving as per request.
Cheers,
Mark