Forum
Pulling the page slug
I have a page called "Save Money" I want to pull the slug of "save-money" back into my php page. Is there a perch tag or php tag that will pull that slug in based off of the page name and or nav text?
I have a page called "Save Money" I want to pull the slug of "save-money" back into my php page. Is there a perch tag or php tag that will pull that slug in based off of the page name and or nav text?
Yes, you should be able to use:
that outputs /save-money
Great.
How can I remove the / to just get the page slug?
I can use replace=/| if I use it in a perch template file.
Sorry if i'm intruding but you can do it just in php if you can't do it in Perch:
Then just echo $slug where you need it
Brandon, yes, you can do this:
Great, that works...
Any plans for have a pageSlug that just pulls the actual page slug in the future?
Sure, I'll add something.
Fantastic :)