It looks right, what about it isn’t working? I’ll see if I can whip up a test install of NNF later today and give it a try.
I attempted to use it on my forums but the only thing that would load after implementing it is a white page. I think it was a log file that displayed the error was on the last line of the block of code.
I am also getting sitemap issues
Forum installed in example.com/f/
Meaning posts would be example.com/f/category/post
All links in sitemap point to example.com/category/post
I should point out I'm using the current dev branch.
Found the problem, and here is the working code in full: https://gist.github.com/Zegnat/c5d4247dd7aa955dc9f1
You had to use
`controls="controls"`. DOMTemplate will change this to just
`controls` when it outputs HTML, but the code you are using is a bit of a hack I made that works only on XML. Attributes without value aren’t allowed in XML. I guess “Invalid XHTML” would have been a better Exception to throw, as your HTML was completely valid.
I have also opened up an issue on the bug tracker regarding the sitemap: https://github.com/Kroc/NoNonsenseForum/issues/191. Haven’t had the time to look for a solution yet.
Hope this helps!
I've fixed the sitemap issue on the development branch, thanks for reporting!
Your friendly neighbourhood moderators: Kroc, Impressed, Martijn