Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: [mv] [data products title [scratch random]]



******    message to minivend-users from Cameron Prince <PRINCECB@novachem.com>     ******

Thanks Joachim,

This worked for the most part. I was disappointed that it wouldn't work as
follows:

<A HREF="/cgi/click2/click.cgi?id=[scratch random]&url=[data
table="products" column="url" key="[scratch random]"]" target="scriptwindow"
class=white>[data table="products" column="title" key="[scratch
random]"]</a>

This is a click counter that I have setup.

I ended up having to do this:

[if scratch random eq 001]
<A HREF=/cgi/click2/click.cgi?id=001&url=[data table="portfolio"
column="url" key="001"] target="scriptwindow" class=white>
<b>[data table="portfolio" column="title" key="001"]</b>
</a>
[/if]

[if scratch random eq 002]
<A HREF=/cgi/click2/click.cgi?id=002&url=[data table="portfolio"
column="url" key="002"] target="scriptwindow" class=white>
<b>[data table="portfolio" column="title" key="002"]</b>
</a>
[/if]

etc...

I guess MV doesn't like to parse inside a url string or another set of
quotes.


Cameron


 -----Original Message-----
From: 	owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]  On Behalf Of jojo@buchonline.net
Sent:	Friday, May 12, 2000 2:57 AM
To:	minivend-users@minivend.com
Subject:	Re: [mv] [data products title [scratch random]] 

******    message to minivend-users from jojo@buchonline.net     ******

On 11 May, Cameron B. Prince wrote:
> ******    message to minivend-users from "Cameron B. Prince"
<cbp@InternetExpertsLLC.com>     ******
> 
> Hi list,
> 
> Tonight I created a new Global sub that produces a random number from 001
-
> 008. These numbers represent skus/keys in my database.
> 
> I am trying to display one randomly on my index page using this:
> 
> [data products title [scratch random]]
> 
> When I load the page all I see is the one ] but [scratch random] alone
works
> fine.
> 
> 
> Is there a proper way to use a scratch value inside of a data tag?

Try

[data table="products" column="title" key="[scratch random]"]

Regards,

	Joachim

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671449
45886 Gelsenkirchen         FAX: 0209 1671449

-
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
-
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


Search for: Match: Format: Sort by: