Hi All,
This is my first post so please go easy on me if i’m being a noob...
I’m putting together my first site(s) with MODx (I chose it because I have the skills in XHTML/CSS and a little JavaScript, and MODx is far and away the coolest solution for a nicely designed site without naff templates and my client loves it too! - but my knowledge of PHP in particular is close to _, so can anyone please offer a solution to my problem - it should be a simple one I think.
I have a ’back to top’ button for long pages, currently stored as a chunk so I can just add it anywhere it is needed, but the anchor ’#top’ always redirects me to that anchor on the index page and not the current page. I figure I just need to get the current document id and inject it somewhere, but I just can’t seem to figure out the right combo and placement. I’m using friendly URLs if that has any bearing on it. Thanks in advance.