Hello,
Maybe Wayfinder can do that too.
But we are talking about a Sitemap here.
Did you use Wayfinder to create a sitemap?
No, but if I wanted to create one using UL/LI structure, with multilevels and in menu order, I’d use it -- since that’s exactly what it produces by default.
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
What is your sitemap call - just [[Sitemap]] or any parameters?
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
-
☆ A M B ☆
- 1,231 Posts
Can someone help out with styling the feed? I have the xml running correctly but I want to make it more readable to someone and use it as a sitemap on my website. The xml is setup correctly, i just want to style it now. I’ve tried understanding the xsl but It isn’t syling anything. Could someone help out?
Hello Rossco,
Did you find a solution yet?
XSL might be a solution. Your XSL converts the XML to HTML and includes CSS and/or Style attributes.
Another option would be to change the snippet itself and do it all in there. It fairly straightforward. I created a UL/IL construction in it, which was easy enough. Best option might be to do some sort of templating in the sitemap. So, every entry goes through a template for markup and styling. But maybe that’s reinventing the XSLT-wheel.
Regards,
Bert
Quote from: rossco at Mar 11, 2008, 11:41 AM
Can someone help out with styling the feed? I have the xml running correctly but I want to make it more readable to someone and use it as a sitemap on my website. The xml is setup correctly, i just want to style it now. I’ve tried understanding the xsl but It isn’t syling anything. Could someone help out?
For HTML output, the easiest solution would be to use Wayfinder, which is designed exactly for this.
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
Yesterday I’ve installed this snippet (version 1.0.6) on a MODx installation 0.9.6 without any problems. In fact, it worked so well that I’ve tried to install it on another site, which is running MODx 0.9.6.1 and only receiving this error:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: /home/gucro/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code
Line: 208
Parser timing
MySQL: 0.0611 s (353 Requests)
PHP: 0.0561 s
Total: 0.1171 s
Whatever I try, I don’t get it to work on the second site (and thus on a MODx 0.9.6.1 installation)...
Any idea’s?
Looks like it might be filtering out all the documents, but not dealing well with it -- this may help:
Directly below line 153
try inserting the following:
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK