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
how do i use in snippets?
18 Posts
vaporizel
Reply #1,
15 years, 11 months ago
its simple tough but i cant use [[~12]] in my snippets X.
how can i put "index.php?id=12" in snippets? (without hardcode)
i’m using modx revo 2.0.4
4,149 Posts
splittingred
Reply #2,
15 years, 11 months ago
$url = $modx->makeUrl(12);
http://rtfm.modx.com/display/revolution20/modX.makeUrl
shaun mccormick
| bigcommerce mgr of software engineering, former modx co-architect
|
github
|
splittingred.com
18 Posts
vaporizel
Reply #3,
15 years, 11 months ago
its works now thanx dude