gordon_moe
06-29-06, 03:46 PM
I think I can use this conditional in VC Cat. Page Templates to achieve my goal below (posted previously). I need to know the "variable" for "has a related item??!" so I can try the method below as spec'd by VC CPT docs.
<VARIABLES>
%begin_if|variable|%...%end_if%
: displays contents only if the variable evalutes to TRUE
%begin_notif|variable|%...%end_notif%
: displays contents only if the variable evaluates to FALSE
(GOAL) --- posted earlier ---
On my Category template I have a listing of products.
As part of this listing I want to put a text link that only appears if the product has Related Items assigned to it. Something like:
%begin_hasrelated_items%
<a href = "link to product detail%prodcode%">View related items</a>
%end_hadrelated_items%
My guess is that I can do it with a "non-Viking" or OpenUI token, but I am unsure.
I'm thinking it will look something like
%begin_if|Products.d.image|%
...
%end_if%
Thanks in advance.
<VARIABLES>
%begin_if|variable|%...%end_if%
: displays contents only if the variable evalutes to TRUE
%begin_notif|variable|%...%end_notif%
: displays contents only if the variable evaluates to FALSE
(GOAL) --- posted earlier ---
On my Category template I have a listing of products.
As part of this listing I want to put a text link that only appears if the product has Related Items assigned to it. Something like:
%begin_hasrelated_items%
<a href = "link to product detail%prodcode%">View related items</a>
%end_hadrelated_items%
My guess is that I can do it with a "non-Viking" or OpenUI token, but I am unsure.
I'm thinking it will look something like
%begin_if|Products.d.image|%
...
%end_if%
Thanks in advance.