We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8790
    • 526 Posts
    Hi,

    I just found the EVO solution with WF hack..but this does not gives any results.
    No error, but no action neither.

    I test both of the hacks (old evo post linked) :
    function isHere($did) {
    		// begin weblink 'here' patch
    		global $modx;
    		$doc = $modx->getDocumentObject('id', $did);//si c est un weblink
    		if ($doc['type'] == 'reference') 
    				$did = $doc['content']; //on prend son contenu qui est [~id cible~]
    		// end weblink 'here' patch
            return in_array($did,$this->parentTree);
        }


    and the one here
    elseif ($resource['content'] == $modx->documentObject['id'] && $this->_templates['hereTpl']) { //added for weblinks here
             $usedTemplate = 'hereTpl';


    The hereRowTpl is never ’called’ when the menu item is done from a weblink doc so classes are still not applied correctly.

    I agree the weblink ’content’ is actually the [~target~] so the logic of the hack seams ok..but..
    (Evo 1.05 WF 2.01)

    Thank you
      Schtroumpf Grognon - Grouchy Smurf
      ---------------------------------
      Faites pas attention.. - Don't pay attention
      http://www.dzi-neo.net
      • 36805
      • 354 Posts
      Quote from: elz64 at Apr 28, 2011, 03:44 AM

      I agree the weblink ’content’ is actually the [~target~] so the logic of the hack seams ok..but..
      (Evo 1.05 WF 2.01)
      Use this instead. Works on evo 1.0.5. Tested on fairly recent mysql (5.1.54).