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 Discussions
Search
Linking Resources(Pages)
9 Posts
chadrockman
Reply #1,
16 years, 7 months ago
Hi everyone!
I’m not using wayfinder for my site’s menu. Instead, I’m using images. How do I go about linking to my resources? Does Modx create a file that I can point to or something? I’m new and lost. Thanks!!!
MODX Staff
10,725 Posts
opengeek
Reply #2,
16 years, 7 months ago
In Evolution:
[~resourceId~]
will return the href of a MODx Resource where resourceId is the id of the Resource, e.g.
<a href="[~2~]">Link</a>
would create a link to the Resource with id 2.
In Revolution, the syntax is slightly different:
[[~resourceId]]
so the example above would be:
<a href="[[~2]]">Link</a>
Jason Coward
Chief Architect @ MODX
http://www.jasoncoward.com
|
http://twitter.com/drumshaman
|
https://github.com/opengeek