Customizing var title in member.html

Discussion in 'Templates customization' started by miso, Dec 11, 2006.

  1. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    Ok, I am trying to add user's name to the title variable in member.html (first line of code in the file)...

    and I am getting some smarty errors with everything I try... so what should be the correct way (if it exists at all) of adding the following:

    Code:
    $smarty.session._amember_user.name_f
    to the default value for title:

    Code:
    {assign var="title" value=$smarty.const._TPL_MEMBER_TITLE}
    
    ???
  2. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    still around?
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Miso, contact us via helpdesk for quick response time if the question is urgent.

    You can use in template instead of {$title} the following:
    PHP:
    {$title|cat:" "|cat:$smarty.session._amember_user.name_f}

Share This Page