I need to have the "firstClass" and "lastClass" as ID and not as classes, still mantaining the "hereClass" as class. I try to look in the code but the way to output first and last as classes seems too much embedded in the code for me to modify.
Con you point me out a way to accomplish this?
New Version 1.0 released Get it here: http://modxcms.com/Wayfinder-868.html
- Added parameters for determining sortBy and sortOrder
I will look to see if there is a way to accomplish this. Off the top of my head, I don’t think there is a way to currently do this.
Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...
e.g.
Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...
Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..
Quote from: pixelchutes at Oct 23, 2006, 05:48 PM
Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...
e.g.
Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...
Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..
The limiting of number of items in the menu could be accomplished by using the show in menu flag and only setting the five you want to show.
The random idea, sounds interesting, I will look into this. If I add that the limit will probably get incorporated too.
Quote from: kylej at Oct 23, 2006, 06:41 PM
Quote from: pixelchutes at Oct 23, 2006, 05:48 PM
Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...
e.g.
Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...
Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..
The limiting of number of items in the menu could be accomplished by using the show in menu flag and only setting the five you want to show.
The random idea, sounds interesting, I will look into this. If I add that the limit will probably get incorporated too.
Personally I don’ think using the "show in menu" flag is a very robust solution. I ran into the problem a few days ago where I wanted drop-down links to the 5 latest blog entries and to manually go into the admin and change the flag each time a new post is made just doesn’t make sense.
Please consider adding output limitations to wayfinder, perhaps consider adding a parameter to limit the parent items and children items seperately.
This discussion is closed to further replies. Keep calm and carry on.