Conditional content display based on xprofile field values
-
Hello,
I would like to be able to render an image in the sidebar, when viewing a profile page, that is selected based on the content of a extended profile field value.
My field name is “office” and the values are contained in a select box. What I would like to do is name each image like its corresponding select box value (i.e. value1.jpg), i suppose this would make the code easier to implement.
I know I have to start off with :
`
The code here
`But the rest is impossible for me. I’ve been fiddling around with code, but I don’t understand how the same code doesn’t work when in different areas of the BP templates. So if someone could help me out, i’d be really greatfull.
Thanks,
C.
- The topic ‘Conditional content display based on xprofile field values’ is closed to new replies.