Summary.Net Archives
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Summary-Talk] Change buttons syntax?



lists@323inc.com wrote:
> 
> Can you give me an if-else-then example? Like reports show buttons for
> spreadsheet and text, but configs do not.

Well, the simplest case is to replace %%%buttons with:

%%%spreadsheet-btn %%%text-btn %%%config-btn %%%manual-btn

That lets you change the order and location of the buttons, but doesn't
give you as much flexibility as you might want.


Thinking about it, I realized that there isn't currently any easy way to
use %%%spreadsheet-page with your own button code without having it also
appear on pages where it doesn't belong, ie the Report Menu,
Configuration, etc. If you want to get really extreme you could use
Javascript and DHTML to check to see if the URL was empty and remove the
button, but that is way too much work.

Using %%%buttons, %%%spreadsheet-btn, etc take care of this for you,
appearing and disappearing as need, but with less flexibility.

In the next release we will add another conditional %%%IF-REPORT that
only includes code if the spreadsheet and text buttons should appear.

Jason

-- 
Jason@Summary.Net
--
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
    -- Peter van der Linden, Expert C Programming, Deep C Secrets
-------------
Go to <http://summary.net/list.html> to update subscription info.