solved Custom Sidebar for item index and detail pages

alt=
Ekwe
@ekwe
10 years ago
212 posts
I have a side bar on the profile index. but I want it to change when on jrAudio, did this code below, but i'm getting a blank block. Please really need this, thanks

{if module == jrAudio}

{else}

{/if}
updated by @ekwe: 11/05/14 02:49:17AM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
You need to use a variable rather than just typing "module".

Put {debug} into your side bar to see which variables are available.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
alt=
Ekwe
@ekwe
10 years ago
212 posts
Did that, I just tried this

{if module_url == "profile"} and it did not work
michael
@michael
10 years ago
7,746 posts
Try again. only the variables that show in the {debug} panel are available. module_url is definitely not a variable. $module_url might be, but check in {debug} to make sure.

"{debug}"
http://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
alt=
Ekwe
@ekwe
10 years ago
212 posts
it is, i know how to debug. It's not working.
michael
@michael
10 years ago
7,746 posts
Can't help anymore than that with "Its not working".
paul
@paul
10 years ago
4,332 posts
I don't think '$module_url' on its own is a variable. Its usually part of an array, like $_post.module_url, or $params.module_url
Go with what {debug} tells you.


--
Paul Asher - JR Developer and System Import Specialist
alt=
Ekwe
@ekwe
10 years ago
212 posts
paul:
I don't think '$module_url' on its own is a variable. Its usually part of an array, like $_post.module_url, or $params.module_url
Go with what {debug} tells you.

Thanks a lot Paul, really helped. Fixed
updated by @ekwe: 09/12/14 01:59:54PM
paul
@paul
10 years ago
4,332 posts
Pleasure to be of service ;-)


--
Paul Asher - JR Developer and System Import Specialist

Tags