[WM] sitemaps, breadcrumbs and isroot

Justin Mason jm.jmason.org
Mon Jul 2 12:28:34 IST 2001


> 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.





More information about the Webmake-talk mailing list