[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Getting the next and previous urls from a results page into 2 variables.
****** message to minivend-users from minivend@hq.com.au ******
Has anyone an idea of how to get the next and previous urls on the results
page to be variables? They are dynamically generated with the [more-list]
tags...
We have tried manythings including,
[more-list]
[set name="Next" interpolate="1"][next-anchor]N[/next-anchor][/set]
[set name="Back" interpolate="1"][prev-anchor]B[/prev-anchor][/set]
[more]
[/more-list]
and where var is the complete string produced.
[perl arg=values interpolate=1]$var = '[scratch var]';
@lines=split(/\n/,$var);
foreach(@lines){
chomp;
if (/<A HREF="?(.*)?">(Previous|Next)<\/A>/){
$$2=$1;
}
}
return $Previous;
return $Next;
[/perl]
But neither work. Does anyone know a way or have done something similar?
Note we have also tried [set mv_put_session]Yes[/set] as well.
Hopefully,
Geoff
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list