Hi everybody!
I’m entering some content on my site using QuickEdit and have set up a FAQ page.
I have a list of questions at the top of the page with hyperlinks to the same question repeated further down the page but with an associated answer.
My problem is that the hyperlink to the questions does not have the current page id in the link, so it tries to load the link using just the root address.
I’ve tried using [[page id]] and [*page id*]] nd even [!page id!] (can you guess that I’m still very new to this?) but to no avail.
Can anyone tell me how to di this please?
Thanks,
Paul.
-
MODX Staff
- 1,535 Posts
Hi Paul,
You can use this in your href: [~[*id*]~]#anchor
Cheers, Garry
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
Hi Gary,
Thanks mate - worked a treat - you’re a star!
Cheers,
Paul.
Hi Gary,
Could you also use [~ID~]#anchor
Yep, makes complete sense, forgot you were talking about same page of course !
thanks Garry