[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Determining [page] attributes
****** message to minivend-users from Allan DeLeon <allan@sidepage.com> ******
This is what I did on my site that's worked great so far.
You may not want to use this method because it envolves
a lot of embedded perl which may be expensive on the
resources.
On every page in your pages directory that is not an include
page, add at the very top of the page:
[perl values]
$Safe{'values'}->{'activepage'} = 'name of this page';
# where 'name of this page' is the actual name of
# the html file without the '.html'
return '';
[/perl]
then, as an example, in your include file (which may be a button bar)
do something like
[if value activepage eq 'browse']
no need to show the browse button since
we're already browsing
[else]
show the browse button
[/else]
[/if]
etc.
On Thu, 28 Jan 1999, Ryan Hertz wrote:
> ****** message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com> ******
>
> Is there an environment variable like HTTP_REFERER that contains the
> current page name?
>
> At 02:21 PM 1/28/99 , you wrote:
> >****** message to minivend-users from August Detlefsen
> <augustd@idiom.com> ******
> >
> >I want to include a standard set of header and footer html in a site (ie
> for the buttons and common graphical elements) using the [include] tag. Is
> there a way for elements of the header and footer to know what page they
> are embedded on? For example, so the 'Search' button will be disabled when
> the header is included on srchform.html.
> >
> >Thanks,
> >-August mailto:augustd@idiom.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
> >
>
> Ryan Hertz tel 520-645-3812
> Webmaster tel 800-645-BAIT
> Advertising Director fax 520-645-2588
> Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.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