Thursday 08 September 2005 12:56:12 am
Well after 2 days of trying I finally gave up on the navigator idea and instead created a custom tag to do the job... As much as I would like this to be dynamic it seems it's just not possible, so the custom tag was my only option. If anyone is interested this is what I have done... XML Block input:
<custom name="pages" next="about/services" back="about/mission_statement">
</custom>
And the template:
<ul class="related-pages">
{section show=$back}<li><a href={$back|ezurl}>« Previous</a></li>{/section}
{section show=$next}<li><a href={$next|ezurl}>Next »</a></li>{/section}
</ul>
<i>I'm currently using the</i> <b>|ezurl</b> <i>string for the href attribute because I couldn't find the correct way to reference the node directly, the</i> <b>eznode://63</b> <i>string outputs as just that and ezpublish dosn't seem to like that. If you know a way to reference the node directly</i> (not content/view/full/63 style) <i>like the embed tage does, please let me know, I think it would be a cleaner way to do it.
</i> And in the content.ini.append.php:
[CustomTagSettings]
AvailableCustomTags[]=pages
I now have to explain to my client how to add the links manually which is disappointing, but at least it works, for the time being. I'm still open to suggestions on how this could be done dynamically though. Cheers!
Pardon me while I burst into flames...
|