[[Ditto? &parents=`161` &tpl=`country`]]
<a href="#" onclick="toggle_visibility('country');"><h1>[+pagetitle+]</h1></a>
<div id="country" style="display:none; width:100px;">[+introtext+]</div>
[[YAMS? &get=`data` &docid=`[+wf.docid+]` &from=`pagetitle`]]
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>
Btw, even when im just using a plain template like: <h1>[+pagetitle+[</h1> <p>[+content+[/p] or <p>[+introtext+]</p> it doesn’t work.. See http://manter.com/nl/contact-nl/contact-dealers-nl/europa for the result
Quote from: Joeeeeh at Mar 18, 2010, 08:06 AM
Btw, even when im just using a plain template like: <h1>[+pagetitle+[</h1> <p>[+content+[/p] or <p>[+introtext+]</p> it doesn’t work.. See http://manter.com/nl/contact-nl/contact-dealers-nl/europa for the result
Change
<h1>[+pagetitle+[</h1> <p>[+content+[/p] or <p>[+introtext+]</p>
to
<h1>[+pagetitle+]</h1> <p>[+content+]</p> or <p>[+introtext+]</p>
<a href="#" onclick="toggle_visibility(’country’);"><h1>[+pagetitle+]</h1></a>
<div id="country" style="display:none; width:100px;">[+introtext+]</div>
<h1>[+pagetitle+]</h1><div style="width:100px;">[+introtext+]</div>
<p><a href="[~[+id+]~]"><strong>[+menutitle+]</strong> »</a><br />[+introtext+]</p>
[!Ditto? &id=`(yams_id)` &language=`(yams_mname)` &tpl=`country` &dateFormat=`%d. %B %Y` &extenders=`@FILE assets/modules/yams/yams.extender.inc.php` &trunc=`true` &truncOffset=`15` &truncLen=`120` &orderBy=`menuindex ASC` !]
<div id="country" style="width:240px; float:left"> <div style="float:left"><a href="[~[+id+]~]"><img src="[+countryflag+]" height="18px" width="26px"> </div> <div style="float:left"><h1>[+pagetitle+]</h1></a></div> <div id="landen"> <br> [+content+] </div> </div>
[!Ditto? &id=`(yams_id)` &language=`(yams_mname)` &tpl=`country` &dateFormat=`%d. %B %Y` &extenders=`@FILE assets/modules/yams/yams.extender.inc.php` &trunc=`true` &truncOffset=`15` &truncLen=`120` &orderBy=`menuindex ASC`!]
http://manter.com/nl/contact-nl/contact-dealers-nl/europa
http://manter.com/en/contact/contact-dealers/europe-en
http://manter.com/en/contact/contact-dealers/europe-en
http://manter.com/nl/contact-nl/contact-dealers-nl/europa