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

Edit Only member_view template through page container?

Discussion in 'Styling and Customization Questions' started by DRE, Sep 26, 2012.

  1. DRE

    DRE Well-Known Member

    I want to show customizable backgrounds on member's profile pages.

    Can this be done by entering the template modification for the background INSIDE the PAGE_CONTAINER tmplate by using the following condition from FAQs?

    Inspired by this thread http://xenforo.com/community/threads/enable-users-to-specify-a-custom-css-file.36695/

     
  2. Arty

    Arty Well-Known Member

    There is variable $contentTemplate that points to template that was rendered for content area. Use condition like this:
    Code:
    <xen:if is="{$contentTemplate} == 'member_view'"> stuff for member_view <xen:else /> stuff for everything else </xen:if>
     
    8thos likes this.
  3. DRE

    DRE Well-Known Member

    Sounds good! Might be awhile to see if I can get this work but I really appreciate the help.
     

Share This Page