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
Products
Revo Discussions & Support
Search
Reading the page id from within a Snippet
☆ A M B ☆
2,475 Posts
Everett
Reply #1,
12 years, 9 months ago
Previously, I was using this in a Snippet
$modx->documentIdentifier
to retrieve the ID of the page that called the Snippet... but that no longer seems to be working... and I can’t seem to find where/how to get that number. Anyone know?
Thanks!
Hosting stuff:
http://fireproofsocks.com/
Coding stuff:
http://craftsmancoding.com/
Blog stuff:
http://tipsfor.us/
4,149 Posts
splittingred
Reply #2,
12 years, 9 months ago
http://rtfm.modx.com/display/revolution20/Summary+of+Legacy+Code+Removed+in+2.1
shaun mccormick
| bigcommerce mgr of software engineering, former modx co-architect
|
github
|
splittingred.com
☆ A M B ☆
2,475 Posts
Everett
Reply #3,
12 years, 9 months ago
Thanks! This is the Revo-friendly version:
$modx->resourceIdentifier;
Hosting stuff:
http://fireproofsocks.com/
Coding stuff:
http://craftsmancoding.com/
Blog stuff:
http://tipsfor.us/