Understanding the data-load URL

TheBigK

Well-known member
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.
 
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
 
Look in the controller action and template. There will be some sort of conditional in there which references "$profile" most likely.
 
Top Bottom