[WM] sitemaps, breadcrumbs and isroot
Kevin O'Rourke
KIO.plextek.co.uk
Mon Jul 2 13:05:07 IST 2001
I'll try to patch it myself, should be good practice for me :-) How would you prefer me to send you the patch information once I've done it? The whole changed file or just diff output?
Thanks for the quick reply, enjoy your holidays!
Kevin.
>>> jm at jmason.org 07/02/01 12:28pm >>>
> I've been moving my website across to WebMake and it's mostly working.
> I just have one problem.
>
> I'm still keeping the content in individual files and slurping them all
> in with a <contents> tag, so I can't use the isroot attribute to
> identify the root page. However I tell <sitemap> which page is root
> using the rootname (can't remember if this is right, I don't have it my
> .wmk file on this PC) attribute.
>
> When I try to use <breadcrumbs> it fails saying that I haven't
> specified a root page.
>
> I checked the source and it seems that the root page isn't set up
> correctly when using <sitemap rootname="xxxx">, only <content
> isroot="true"> sets the appropriate internal variable.
>
> Is this correct behaviour? Should I always specify the root page
> separately using isroot?
Hi Kevin --
this unfortunately sounds like a bug -- sorry about that. I'd suggest
seeing if you
can patch that yourself, as I'm not currently able to fix this from where
I am, and I'm about to disappear off on holidays for 3-4 weeks ;)
If you can wait, though, I'll fix it at that stage ;)
Another quick hack fix would be to add a chunk of perl code which
gets the content object you want to be the root (using get_content_object()
API), and then sets the internal variable itself! As long as this code
is run before the <sitemap> tag, it'll work OK.
--j.
_______________________________________________
webmake-talk mailing list
webmake-talk at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/webmake-talk
More information about the Webmake-talk
mailing list