[ic] Variable flypages

Stefan Hornburg racke@linuxia.de
05 Oct 2000 19:37:55 +0200


"Jeff Case" <jeff_case@hotmail.com> writes:

> How do I allow a database field to determine which flypage is used?

I think it is not possible with IC yet. But the following modification
should suffice:

--- interchange/lib/Vend/Page.pm	Wed Aug 23 10:11:29 2000
+++ invendor/lib/Vend/Page.pm	Thu Aug 24 09:37:36 2000
@@ -90,7 +90,7 @@
 		
 	# Try for on-the-fly if not there
 	if(! defined $page) {
-		$page = Vend::Interpolate::fly_page($name);
+		$page = Vend::Interpolate::fly_page($name, undef, readin($Vend::Session->{arg}));
 	}
 
     if (defined $page) {


Then you can choose the flypage as follows

[page href="[item-code]" arg="[item-field flypage]"]FLYTEST</a>

Ciao
        Racke

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---