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

Set page title from any page

Discussion in 'XenForo Development Discussions' started by SimonV, Apr 25, 2015.

  1. SimonV

    SimonV Well-Known Member

    I've searched around but cant find any direction on this so would appreciate any help in finding the answer.

    I'm adding sharing links to the default sidebar block "sidebar_share_page" and I'm wanting to use the page title in the share url. Looking at how the default sidebar sharing works I see that xen:set is being used for the url. Using the same logic I figured I can set the title such as:

    for resources :
    <xen:set var="$sharetitle">{$resource.title} | {$xenOptions.boardTitle}</xen:set>
    or for threads
    <xen:set var="$sharetitle">{$thread.title} | {$xenOptions.boardTitle}</xen:set>
    But what Im really looking for is a way to do this globally for all areas. Any help would be great, thanks in advance.

Share This Page