This might be very important, I am using MODx Revolution 2.0.0-rc-2 rev6923 and Wayfinder 2.2.1 RC1
Hi guys,
Thanks for the answers. Over the weekend I haven’t found the time to reply so this’ll have to do!
Bare with me here, because I am new to MODx.
I’ve created a template file which obviously always displays itself. So, knowning that, that would be the right place to place my Wayfinder - right? Right!
So, I’ve dragged and dropped the wayfinder without any opties, which works like a charm. The following string was outputted and a little bit modified by me of course:
[[!Wayfinder? &config=`mep`&debug=`1`]]
So, I’ve got the config set up as `mep` which is the shortname for my company, but that doesn’t really matter. I’ve got two directories. /assets/snippets/wayfinder/configs/mep.config.php and /core/components/wayfinder/configs/mep.config.php. Both directories are perfectly accesable by MODx and even the DEBUG reports: "Config: C:\wamp\www\modx/core/components/wayfinder/configs/mep.config.php", which proves to me that it crawls the /core/ and subdirs. So, knowing that, I’ve checked the file, which hasn’t changed.
<?php
$startId = 0;
$level = 1;
$limit = 12;
$ignoreHidden = true;
$hideSubMenus = false;
//$includeDocs = 1,2,3,4,5,6 (later pas)
$sortBy = 'menuindex';
$sortOrder = 'asc';
$textOfLinks = 'menutitle';
$titleOfLinks = 'introtext';
$useWeblinkUrl = false;
$fullLink = false;
$removeNewLines = false;
$hereClass = 'testtesttest';
$rowTpl = '<li><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>';
$outerTpl = '<ul>[+wf.wrapper+]</ul>';
@bunk58, thanks for the tips, haven’t modified them yet! Then again, what does @CODE: mean? I can’t find that anywhere.
Back on topic again, you can see that I’ve got a simple "testtesttest" in the $hereClass variable. Now, checking the debug output, it still says "hereClass: active"! So it is very apperent that it doesn’t even bother to read my config. How the hell did that happen?
Of course, I can enter all code I want into the string in the template resource, but that SHOULD work - why doesn’t it?
A little side question: why do I need to enter startId=`0` every time?
Thanks again!
/edit
Using WayFinder 2.1.1 RC1