<a href ="[~[+id+]~]"> click here</a>
<?php
$docid = (isset($docid))? $docid: $modx->documentIdentifier;
$children= $modx->getActiveChildren($docid, 'menuindex', 'ASC');
if (!$children === false) {
$firstChild = $children[0];
$firstChildId = $firstChild['id'];
}
return $firstChildId;
?><a href ="[~[!FistChildID!]~]"> click here</a>
[!Ditto? &parents=`[[getChildIds]]` &summarize=`5` &total=`all` &commentschunk=`FormBlogComments` &tpl=`nl_blog` &paginate=`1` &alwaysshow=`1`!]
[[Ditto? &startID=`[*id*]` &summarize=`5` &total=`all` &commentschunk=`FormBlogComments` &tpl=`nl_blog` &paginate=`1` &alwaysshow=`1`]] item [+start+]<span class="tm">to</span>[+stop+] from [+total+] items <span class="route"><strong>::</strong></span> page [+previous+] [+pages+] [+next+]
Does something exist to add to the chunk output on the child page that adds a link back to the parent page, I am sure it exists but I am not sure where on the Docs to find this there just seems to be so many places it could be but I have not found it yet.This should work:
Does something exist to add to the chunk output on the child page that adds a link back to the parent page, I am sure it exists but I am not sure where on the Docs to find this there just seems to be so many places it could be but I have not found it yet.This should work:
<a href ="[~[+parent+]~]"> click here</a>
Here is a list of the most common Ditto placeholders:
http://wiki.modxcms.com/index.php/Ditto_Placeholders
Here are the Document Variables that are available in every document:
http://www.modxcms.com/document-tvs.html