How to avoid cases where i have to use snippet with parameters inside Phx call? The only way i found is to create chunk with such call, but it is against good programing practices imho (-;
[+phx:input=`[[YourSnippet?¶m1=`value1`]]`:is=`...`:then=`...`+]
[!Wayfinder? &startId=`22` &level=`2` &ph=`currentDevs` &config=`colliers` !] [!Wayfinder? &startId=`23` &level=`1` &ph=`pastDevs` &config=`colliers` !] <ul id="leftNav"> <li class="toplevel blue"><a class="toplevel" href="[(site_url)][~1~]">Home</a></li> <li class="toplevel current"><a class="toplevel" href="[(site_url)][~22~]">Current Developments</a>[+currentDevs+]</li> <li class="toplevel past"><a class="toplevel" href="[(site_url)][~23~]">Past Developments</a>[+pastDevs+]</li> <li class="toplevel purple"><a class="toplevel" href="[(site_url)][~10~]">About Colliers</a></li> </ul>
PHx plugin enabled: zero output...
Any ideas?

[Pcre] pcre.recursion_limit=100000 pcre.backtrack_limit=200000 ; Default is 100000
Recently, we experienced a problem where [+phx ... +] appeared on the website itself.
[Pcre] pcre.recursion_limit=100000 pcre.backtrack_limit=200000 ; Default is 100000
Hope this helps anyone
Do a simple snippet, eg. (untested)
Hi!
can this be done with phx?
I have a products section, and some products have more details (more photos, made with a maxigallery in a child of each document),something like this:
products
product1
product2
product3
product3details
product4
product5
product5details
...and so on
so, if the product have a child (details) I need a link to it in the non detailed product document...
is there any way to do it?
any idea?
TIA, and sorry for the bad english
luciano
if (!isset($id)) {
return "";
}
$childs = $modx->getChildIds($id, 1);
if (count($childs) > 0) {
return '<a href="'.$modx->makeUrl($childs[0]).'">More details</a>';
}
if (!isset($id)) {
return "";
}
$childs = $modx->getChildIds($id, 1);
if (count($childs) > 0) {
$doc = $modx->getDocument($childs[0], 'pagetitle', 1);
if (empty($doc)) {
$doc = $modx->getDocument($childs[0], 'pagetitle', 0);
}
return '<a href="'.$modx->makeUrl($childs[0]).'">'.$doc['pagetitle'].'</a>';
}<div id="ee_miniCalendarContainer">
[+miniCalPlaceholder+]
</div>
<div id="ee_listDetailsContainer">
[+listDetailsPlaceholder+]
</div>
[!EasyEvents_ListMini? &nodes=`71`!][+phx:if=`isfolder`:isnot=``:then=`FOLDER`+]
This discussion is closed to further replies. Keep calm and carry on.