I’m trying to use a snippet that is called with the current document ID as an argument. It isn’t working properly, and I noticed the following. I have friendly alias paths enabled, but I was under the impression that a call for document 36979 like:
index.php?q=36979
ought to work regardless. However, it doesn’t. If I call
index.php?q=journal/fj61/36979
then that works, as does
index.php?q=journal/fj61/article4.html
Am I wrong that the document should be callable directly by the id without the paths? If not, is there an easy fix to the snippet so that it calls the current document even with FURL paths turned on?
-
☆ A M B ☆
- 24,524 Posts
In snippet code, $modx->makeUrl(36979);
In HTML (content or template or chunk) [~36979~]
Thanks for the help. Do you know the answer to my first question -- Should the document still be callable directly by the id without the paths even with FURL paths on?