[ic] tags with [banner]

Mike Heins interchange-users@icdevgroup.org
Wed Nov 27 10:26:02 2002


Quoting Jaime Viehweg (interch@viehweg.net):
> On Wed, Nov 27, 2002 at 08:46:27AM -0500, Mike Heins wrote:
> > Quoting Jaime Viehweg (interch@viehweg.net):
> > > I am working on a site where the [banner] tag would work out great for
> > > something they would like, namely some nice eye candy to make people
> > > go to other parts of the site rather than the one that they are.
> > > 
> > > I have gotten it to work except for one thing: I can't seem to get
> > > IC to process any tags so there is no easy way to make the banner
> > > clickable.
> > > 
> > > Am I missing something or am I barking up the wrong tree?
> > > 
> > > Here is an example from my banner database:
> > > 
> > > 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">[/page]
> > > 
> > > What I get is the text for the [page] tag, the image, and the closing
> > > [/page] tag.
> > > 
> > 
> > [pragma safe_data] anywhere in the page will get it.
> > 
> 
> I added this and there was no change.

Bet you added it to the template variable and not the page as I said.
Inside the template, you would need:

	[tag pragma safe_data][/tag]

(Check that call in the docs if it doesn't work.)

> I checked the docs for pragma
> and tried messing with some of the other things in the description
> for [pragma], such as [restrict], with various results.  Unfortunately,
> none of these results were what was desired and most were usually worse!
> 
> I was running 4.8.3-something and upgraded to 4.8.6-1 just in case.  Same
> thing.

That is a good thing, anyway. 

> 
> Any other suggestions?  Any other bits of information that would help?

Otherwise, you would have to hack your banner tag to add

	{ safe_data => $opt->{safe_data} }

as an additional argument to the tag_data calls there. Then call
[banner safe-data=1 ....] as well. That is probably the best way
to go anyway....

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

I have a cop friend who thinks he ought be able to give a new ticket;
"too dumb for conditions".