Not really the same question but it’s related : in the modx tags list, I didn’t find the way to retrieve the path to the current document
, something like [(alias_path)]... how do I get that ?
The reason is I have a footer with a validation link and I’d like something like :
<a href="http://validator.w3.org/check?verbose=1&uri=[(alias_path)]">valid XHTML</a>
It’s certainly straightforward but if you could help me ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Thanks Jason
Mark (uh sorry, really tired...) !
I tried to reconstruct the path with [(site_url)][~[*id*]~], but it would not work to get folder/page.html or any hierarchical url for that matter... Then I realized my own stupidity about the validation link
You just need
http://validator.w3.org/check?uri=referer (I am REALLY tired !)
lol
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Quote from: davidm at Feb 18, 2006, 04:49 PM
You just need http://validator.w3.org/check?uri=referer
I have found that link doesn’t work for people who have ZoneAlarm or Norton Internet Security installed because it masks the referrer information.
Quote from: davidm at Feb 18, 2006, 04:49 PM
(I am REALLY tired !)
Have a coffee... it’s on the house.
Quote from: OpenGeek at Feb 18, 2006, 06:43 PMNo problem, but don’t call me Mark... 
Sorry

Fixed !
Quote from: OpenGeekDon’t prepend [(site_url)] to the link tag; these [~~] tags will automatically prepend the site’s base_url value to the link when processed, just like $modx->makeUrl() will. And it should also resolve any alias path according to your site’s use_alias_path setting.
Hmmm, strange, when I used [~[*id*]~] alone, I only got something like aliasofpage.html and no base url (I got base href defined in my template...). Where did I go wrong there ?
Quote from: Kunal at Feb 18, 2006, 05:04 PMI have found that link doesn’t work for people who have ZoneAlarm or Norton Internet Security installed because it masks the referrer information.
Good catch, but I’ll go with that for now, maybe I’ll add a warning to firewall’s user in the link’s title... or in the site FAQ.
Quote from: KunalHave a coffee... it’s on the house. 
Thanks Kunal
A good night of sleep is more effective
DONE
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id