-
- 130 Posts
Is it possible to use PHx to modify a string?
I have an HTML page that gets sent out as an email.
for some reason, when i use the document variable [*id*], it gives me a relative location and NOT the full URL which is what I need when the page is sent out. Is there anyway to use phx to modify the url that is displayed IE [*id*] so it gives me the correct address?
I twitch because I care....and drink too much coffee.
-
- 1,624 Posts
Have you tried [~[*id*]~] ?
-
- 24,544 Posts
If cipa’s idea doesn’t give you what you want, a simple one-line snippet will give you a full URL.
Just put this tag where you want the URL:
[!FullUrl? &pageId=`[*id*]`!]
FullUrl Snippet code:
<?php
return $modx->makeURL($pageId, '', '', 'full');
?>
You could also try prefixing your tag with [(site_url)].