Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > Troubleshooting

Troubleshooting Problems, need help? Have a tip or advice? Post it here.

Reply
 
Thread Tools Display Modes
Old 07-07-2010, 07:18 AM   #1
noncasus
Senior Vivvo User
 
Join Date: Dec 2008
Posts: 422
Rep Power: 5
noncasus is on a distinguished road
Default Condition issue

Hi guys, I got a small issue.

How can I condition vivvo to do something only when the user is not on a category?

For example if I try to show an image using this condition:

<vte:if test="!{CURRENT_CATEGORY}">
image
</vte:if>

It won't work. I need for it to work on other areas like the search page, archive page, etc, etc.

Thanks!

Using 4.1.6 or whichever came before 4.5
noncasus is offline   Reply With Quote
Old 07-07-2010, 06:05 PM   #2
bobster65
Vivvo Veteran
 
Join Date: Aug 2008
Location: Big Sky Country
Posts: 579
Rep Power: 5
bobster65 is on a distinguished road
Default

Quote:
Originally Posted by noncasus View Post
Hi guys, I got a small issue.

How can I condition vivvo to do something only when the user is not on a category?

For example if I try to show an image using this condition:

<vte:if test="!{CURRENT_CATEGORY}">
image
</vte:if>

It won't work. I need for it to work on other areas like the search page, archive page, etc, etc.

Thanks!

Using 4.1.6 or whichever came before 4.5
Not sure what your "goal" is...

Where exactly is the "stuff" you don't want displayed located at? ie, is it in the global header for example? if so, what you can do is create a different header ie header2.tpl and include that header only on your Category template(s) so that code isn't included.. same thing applies with any other types of common includes..
bobster65 is offline   Reply With Quote
Old 07-07-2010, 11:10 PM   #3
noncasus
Senior Vivvo User
 
Join Date: Dec 2008
Posts: 422
Rep Power: 5
noncasus is on a distinguished road
Default

Let's see if I can organize my idea well enough to get it across.

What I have right now are about 20 different Header menu's (they are images maps). However they are transparent pngs that are used in conjunction with the backgroound image to look good. So, I made some additions/modifications to the tpl files so this would work. I'm telling the templates to retrieve the named PNG header menu depending on the name of the Category, for example if my category is called WORLD NEWS, the png image retrieved in called WORLD NEWS.png.

The problem with your method is that, as aformentioned, there are about 20 categories and 20 respective header images. I don't think it's good to make 20 tpl files >_>. (Not to mention the home page header too)

That's why I was hoping for a way to get vivvo to tell me if it is in a category or not. It DOES work if the user is in a category but it doesn't work the other way around. Or maybe I just haven't figured it out.

If you want to see some of the code and or website i can pm.

Thanks!
noncasus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 07:27 AM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.