[ic] tags with [banner]

Jaime Viehweg interchange-users@icdevgroup.org
Fri Nov 29 22:08:00 2002


On Fri, Nov 29, 2002 at 08:48:49PM -0500, Jim Balcom wrote:
> JV>>Sorry to follow up on myself...
> JV>>
> JV>>It seems that you don't actually need the [pragma safe_data] bit
> JV>>at all.  You only need the interpolate and </a>.
> JV>>
> 
> What do you have in banners.txt?
> 
> How are you calling it from the main page?
> 
> -= Jim =-

Here is pretty much everything you should need to make it go.  Note
that even though it might look like you should call the database or
the tag "banners" (with an s), you really need to use "banner" (no s)
for everything.

This seems to work as desired for me.  I'm running RedHat 7.2 and
Interchange 4.8.6-1.

banner.txt:
===========

code    category        weight  rotate  banner
books   one     1       0       [page search="fi=products/sf=category/se=books/sp=category_results/ml=30"]<img src="banners/books.gif" border="0" alt="Books"></a>
housewares      one     1       0       [page search="fi=products/sf=category/se=housewares/sp=category_results/ml=30"]<img src="banners/housewares.gif" border="0" alt="Housewares"></a>
jewelry one     1       0       [page search="fi=products/sf=category/se=jewelry/sp=category_results/ml=30"]<img src="banners/jewelry.gif" border="0" alt="Jewelry"></a>
movies  one     1       0       [page search="fi=products/sf=category/se=movies/sp=category_results/ml=30"]<img src="banners/movies.gif" border="0" alt="Movies"></a>

exerpt from index.html:
=======================

        [banner weighted=1 interpolate=1]

exerpt from catalog.cfg:
========================
# #banners
Database        banner  banner.txt      TAB
Database        banner  NUMERIC weight

jaime
--
interch            | I read recently that human beings use only 15%
@    Jaime Viehweg | of their brains capacity.  Makes you wonder
viehweg.net        | what they do with the other 75%.