1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rendering xen:link with extra parameters...

Discussion in 'XenForo Development Discussions' started by Jaxel, Nov 5, 2010.

  1. Jaxel

    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?
     
  2. Mike

    Mike XenForo Developer Staff Member

    {xen:link 'full:wiki/edit', $page}
     
  3. Jaxel

    Jaxel Well-Known Member

Share This Page