Rendering xen:link with extra parameters...

Jaxel

Well-known member
I am using the following buildLink:
Code:
	public function buildLink($originalPrefix, $outputPrefix, $action, $extension, $data, array &$extraParams)
	{
		return XenForo_Link::buildBasicLinkWithStringParam($outputPrefix, $action, $extension, $data, 'page_slug');
	}

So in my template, if I put the following: {xen:link 'full:wiki', $page}
That works fine and will properly build my link as follows: /wiki/$slug/

However, what if I want to add an additional extension to the link so it appears as: /wiki/$slug/edit/

I have tried the following:
{xen:link 'full:wiki', $page, 'edit/'}
{xen:link 'full:wiki', $page, extension='edit/'}

Neither of them had worked... any ideas on how this works?
 
Top Bottom