MiniVend Akopia Services

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

RE: [item-code] in buttonbar



******    message to minivend-users from "Thompson-Jordan" <Thompson-Jordan@mindspring.com>     ******

The code for my buttonbars is fairly large, over 5k and 100 lines, and would
put a big HTML in catalog.cfg. I would rather keep my buttonbar files with
the other files. It makes FTPing simpler and I can edit buttonbar1.html with
an HTML editor.

So instead of putting the HTML in catalog.cfg, I just included the buttonbar
files in the catalog.cfg file like this:

     #include ./pages/buttonbar1.html

Then in the buttonbar1.html file I surrounded the HTML with:

     Variable BUTTONBAR1 <<EOF

          **** Your HTML for the buttonbar here ****

     EOF

I would rather have done:

     Variable BUTTONBAR1 <<./pages/buttonbar1.html

or

     Variable BUTTONBAR1 <<EOF

     #include ./pages/buttonbar1.html

     EOF

but neither worked. The first one did nothing and the second displayed
"#include ./pages/buttonbar1.html" where the button bar should go.

Anyway, I did it the first way, then commented out the Buttonbar line in
catalog.cfg and changed all of the [buttonbar #] tags to __BUTTONBAR#__ and
it worked fine.

Though I edit my catalog.cfg file with some trepidation, because whenever I
do everything usually stops working, I get reconfig and restart errors, and
I have to gingerly revert to an old copy and reapply the changes. This time
was no different. Strangely, I don't have any problems with minivend.cfg.

Christopher Thompson


> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of
> mikeh@minivend.com
> Sent: Tuesday, February 09, 1999 1:38 AM
> To: minivend-users@minivend.com
> Subject: Re: [item-code] in buttonbar
>
>
> ******    message to minivend-users from mikeh@minivend.com     ******
>
> Quoting Thompson-Jordan (Thompson-Jordan@mindspring.com):
> >
> > Since you are embedding the [item-code] within an [area] command and it
> > works if the product code is hard coded, you may want to check
> the section
> > "New and Old Style tags" in the documentation. It discusses
> parsing order
> > and why embedding a tag within another tag does not sometimes work.
> >
>
> Yes.
>
> In this case, you would have to do something like:
>
> [set item_code][item-code][/set]
>
> And in your buttonbar tag:
>
> 	<A HREF="[area href="[scratch item_code]"]> Whateer </A>
>
> Ugly. That is why the [buttonbar ...] tag is deprecated. That means you
> shouldn't use it in new installations. 8-)
>
> Much better is in catalog.cfg:
>
> Variable BUTTONBAR_1 <<EOF
>
> Your buttonbar code here.
>
> EOF
>
> Then use __BUTTONBAR_1__ in the page. That will work in all likely
> situations.
>
> --
> Mike Heins                          http://www.minivend.com/  ___
>                                     Internet Robotics        |_ _|____
> Few blame themselves until they     131 Willow Lane, Floor 2  | ||  _ \
> have exhausted all other            Oxford, OH  45056         | || |_) |
> possibilities.                      <mikeh@minivend.com>     |___|  _ <
>  -- anonymous                       513.523.7621 FAX 7501        |_| \_\
> -
> 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: