Sorry, I spoke too soon. I have now got it working by entering the full path to the snippets directory.
The snippet works great for my external links that I have listed in a chunk. However, it does not list ANY of my internal pages despite the fact that the TV’s are correctly named and they are set to be included in the index. Any suggestions?
Is this snippet works for v1.0.1?
I am having a parse error that I can’t tell whether it’s MODx bug or because the snippet isn’t compatible with v1.0.1
First I moved the site from one server to the other and is where the site located now.
Error reads (yet the path still shows the old server’s:
PHP error debug
Error: include_once(/home/content/A/d/r/OldSiteUserName/html/staging/assets//snippets/flexiblesiteindex/FlexibleSiteIndex.class.php) [function.include-once]: failed to open stream: No such file or directory
In the same error page following the above error, it shows this:
Error type/ Nr.: Warning - 2
File: /home/NewServerUserName/public_html/manager/includes/document.parser.class.inc.php(770) : eval()’d code
Line: 76
Code for line#76 in the document.parser.class.inc.php:
$modx->setPlaceholder(’siteindex’,$links);