Akopia Akopia Services

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

Re: [mv] [loop arg="[random]"]



******    message to minivend-users from Christopher Thompson <ct@arborinternet.com>     ******

If the file names are going to stay the same, and you don't want to look it 
up in a database, then I would use a [perl] or [calc] to pick the name out 
of a list.

At 09:28 PM 7/20/00 -0400, you wrote:
>******    message to minivend-users from Victor Nolton 
><ven@pragakhan.com>     ******
>
>Wants exactly 4. I just want them to be able to put in 4 item numbers per 
>file and have it behave exactly like the random feature does except, not 
>cache the page.
>
>[loop arg="[books]"] something where it would just grab the books file 
>with 4 items in it and do it's thing.
>
>Problem I am having is they've designed their site in frontpage and 
>reading the html or editing the html produced by it is a nightmare.
>
>Ven
>
>
>>******    message to minivend-users from cfm@maine.com     ******
>>
>>On Thu, Jul 20, 2000 at 08:10:33PM -0400, Victor Nolton wrote:
>>>******    message to minivend-users from Victor Nolton 
>>><ven@pragakhan.com>     ******
>>>
>>>Okay this may be simple.
>>>
>>>Customer wants to have 10 files that are editable (just like the
>>>random1.html...random10.html). BUT each one be named something
>>>specific like
>>>books.html,videos.html,cds.html. Each one would contain 4 item numbers.
>>>
>>>BUT the random files can only be used on the appropriate page. they
>>>want it to act just like random and it would NOT be cached (aka no
>>>need to restart to be updated).
>>>
>>>Like I said this may be simple.
>>>
>>>Minivend 3.14
>>
>>We do something like that this way:
>>
>>Give the client a directory in userland (we don't let clients
>>edit minivend directly).  We call it "static" for, well, historical
>>reasons.  ;^)
>>
>>They can place files in static directory that correspond to
>>pagenames, or maybe to searchspec.
>>
>>Suppose mv_searchspec was "videos".
>>
>>stat path_to_static
>>if exists
>>  include it
>>else
>>  include a default
>>
>>
>>In your case you need to go another level of abstraction,
>>stat path_to_static
>>if exists
>>  read it; select one at random; generate the include; include it
>>else
>>  default
>>
>>I'd question that "4".  Client might think that's making your life
>>easier.  You could just as well select any one from category
>>books, video, etc... OR maybe he wants to feature some more than
>>others.  Or does he want exactly "4".
>>
>>
>>--
>>
>>Christopher F. Miller, Publisher                             cfm@maine.com
>>MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
>>1.207.657.5078                                       http://www.maine.com/
>>Database publishing, e-commerce, office/internet integration, Debian linux.
>>-
>>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
>
>
>Ven's News (Bookmark It) : http://www.vensnews.com
>
>Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
>AOL: WebmstrVen     Praga Khan's Official Website        ICQ: 8321393
>                       http://www.pragakhan.com
>-
>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: