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

Understanding the data-load URL

Discussion in 'XenForo Development Discussions' started by TheBigK, Mar 5, 2015.

  1. TheBigK

    TheBigK Well-Known Member

    What exactly is the role of 'profile=1' in this statement I found in the template modification?

    data-loadUrl="{xen:link resources/authors, $user, 'profile=1'}
    Nothing changes if I alter it to profile=2.
  2. Jake B.

    Jake B. Well-Known Member

    It loads the data to be displayed on the profile. If you change it to profile=0 or remove it then it will likely break
  3. TheBigK

    TheBigK Well-Known Member

    Umm, nothing breaks even if I totally exclude the , 'profile=1' part from the data-loadUrl. o_O
  4. Chris D

    Chris D XenForo Developer Staff Member

    Look in the controller action and template. There will be some sort of conditional in there which references "$profile" most likely.

Share This Page