We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Support
Search
[Solved] Get parent alias without displaying full backtrack
43 Posts
staffan.estberg
Reply #1,
16 years, 4 months ago
I want to only display a parent’s alias and not it’s entire url, for example "product-family" instead of "some-page/some-page/product-family". How can this be achieved?
1,624 Posts
cipa
Reply #2,
16 years, 4 months ago
Use the
GetField
snippet
I think this might do the trick:
[[GetField? $parent=`1` &field=`alias`]]
OR you can create your own snippet. Try this
tutorial
Responsive CSS Grid:
cipalabs.com/projects/metal/
Blog:
MODX Tutorials & Articles
43 Posts
staffan.estberg
Reply #3,
16 years, 4 months ago
Thanks, it worked!