Quote from: BobRay at Feb 19, 2015, 05:33 AMOne final question I have... I have a CSS menu using wayfinder which highlights the current page, how can I pass this information through to modx so it think the static "forum" page is being visited so this link will light up?
I think this will do it. In the part where you instantiate MODX, set $modx->resource to that page using the page ID (say it's 12).
$modx->resource =& $modx->getObject('modResource', 12);
So So Close but adding this code gives me a blank page with the words "No Resource" as if the resource does not exist. I have tried using the resource id and name with the same issue.
EDIT: Worked it out.
Had to remove additional code in regards to setting the resource id to the homeid.
I cannot get the CSS to load properly so I have hard coded this for now. Will leave as-is so I can carry on with this project.
Appreciate everyone help with this, I know I am very vague but cannot beleive how far I have got with everyones help.
[ed. note: bonkas last edited this post 9 years, 1 month ago.]