• 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

TheBigK

Well-known member
#1
What exactly is the role of 'profile=1' in this statement I found in the template modification?

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

Jake B.

Well-known member
#2
What exactly is the role of 'profile=1' in this statement I found in the template modification?

HTML:
data-loadUrl="{xen:link resources/authors, $user, 'profile=1'}
Nothing changes if I alter it to profile=2.
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
 

Chris D

XenForo developer
Staff member
#4
Look in the controller action and template. There will be some sort of conditional in there which references "$profile" most likely.