Tuesday 09 May 2006 7:45:21 am
Override content/datatype/view/ezxmltags/link.tpl, ask for a copy of the original (not a blank file), then edit that template and bingo, you can customize all links inside XML blocks. What you want is done by changing ezurl with ezroot, but you can think of more advanced uses, such as explicitly marking external links (that lead off-site). Here's mine:
<a href={if eq($href|extract_left(1),'#')}{$href|ezurl}{else}"{$href|ezroot(no)}/"{/if}{section show=$id} id="{$id}"{/section}{section show=$title} title="{$title}"{/section}{section show=$target} target="{$target}"{/section}{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</a>
Also search the forums and docs for PathPrefix, it's worth it.
|