[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] If and component problem
Quoting Michael Goldfarb (mikeg@contactdesigns.com):
> >>>
> >>> [if data preorders::area::@@MV_PAGE@@]
> >>> My component yatta yatta
> >>> [/if]
> >>
> >> Try to use a scratch-variable:
> >>
> >> [seti foo]@@MV_PAGE@@[/seti]
> >> [if data preorders::area::[scratch foo]]
> >> My component yatta yatta
> >> [/if]
> >>
> >>
> >> René
> >>
> >>
> >Thanks for the help Rene, but I am still having no luck. Is there
> maybe a
> >better way to test for data? I know that foo is being set properly as
> I
> >can output it in the page. And I'm using 4.8.6...
> >Thanks
> >
> >Alex
> >
>
> Have you created a file in your dbconf folder for your preorders table?
>
> I don't think that you can use the IC [if] with a table if it is not
> defined inside dbconf.
>
> I could be wrong, but try creating an entry inside dbconf using any of
> the existing files in that directory as a guide.
>
> Then restart IC and try running the [if] statement again.
And if it is inside of a template, @@MV_PAGE@@ won't do what you
want.
[if type=data term="foo::bar::[var MV_PAGE 1]"]
will work anywhere.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike@perusion.com>
Fast, reliable, cheap. Pick two and we'll talk. -- unknown