Log in

View Full Version : need conditional statement


Kyle55155
04-03-2010, 05:19 PM
I have a large image I want displayed under the navbar but only on the home page. I have added to <div></div> and it displays on all pages of course but I want it only to display on the home page. I want to put a conditional statement around my div that results in the imaage only being dispayed on my cms home page.


<if condition="home page"></if> ????

Does anybody know the exact statement I need here?

borbole
04-03-2010, 05:37 PM
I have a large image I want displayed under the navbar but only on the home page. I have added to <div></div> and it displays on all pages of course but I want it only to display on the home page. I want to put a conditional statement around my div that results in the imaage only being dispayed on my cms home page.


<if condition="home page"></if> ????

Does anybody know the exact statement I need here?

I don''t use cms myself so I can't be of any help on this one but the condition you have is not compatible with vb 4. Have a look at this article on how to use conditionals on a vb 4X:

https://vborg.vbsupport.ru/showthread.php?t=231525

Kyle55155
04-03-2010, 06:07 PM
Thanks borbole,,

I'm trying to get this to work

<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if>

Just for testing I set it to one of my forums and it didn't work.

Does anyone know what variable I need to call that would id the home page?