You mean when you're generating a URL? Like [[~[[*id]]]] for example?
Normally, people are used to only using [[~[[*id]]]]. When you want to force the domain, you need to be aware that there is a setting for that. No need to prefix all URLS with, i.e. [[++site_url]][[~[[*id]]]]. This is imply achieved with [[~[[*id]]?scheme=`full`]] or by changing the System Setting "link_tag_scheme" to 'full' or even 'https'.
An example of your superduperubersecret HTML would be enough to solve it for you.
@MarkGHErnst
Developer at Adwise Internetmarketing, the Netherlands.
Hi thanks for your quick response. how can I get it just to echo out the page name, and if the page is on the home page, then dont echo anything out?
would i need to include if statement, something like if *id = 1 then '' else show the page name?
You should be using [[*pagetitle]] for the resource and [[+pagetitle]] for the resources when iterating via chunks. [[*id]] only echo's the ID of the resource, which is an AUTO_INCREMENT ID from the database.
If you're working on a specific page among others with the same template, the most easy solution would be [[*id:neq=`[[++site_start]]`:then=`[[*pagetitle]]`]].
@MarkGHErnst
Developer at Adwise Internetmarketing, the Netherlands.
oh right, ok. im using this at the moment [[~[[*id]]]]
Using a one-line snippet would give you faster page loads:
<?php
/* PageTitle snippet */
return ((int) $modx->resource->get('id')) === 1 ? "" : $modx->resource->get('pagetitle');