Hi, here it is: you just have to put the .xml into the Configuration/CustomTags directory of the server and to put the tcf anywhere along your TCFSEARCHPATH
a brief explanation of the customtags.tcf:
process_ListArg is used to manipulate searcharguments, it's also usefull as
stand alone, you have to arguments
-UPDATE wich take an delimited couple of argname, argvalue: <@LISTARG
UPDATE="MyArg1,MyValue1;MyArg2,MyValue2"> this should return
MyArg1=MyValue1&MyArg2=MyValue2&<ALL YOUR PREVIOUS SEARCH ARG>
-DELETE wich take a delimited argnames : <@LISTARG DELETE="MyArg1">
if your url was like this: file?MyArg1=azerty&MyArg2=qsdfghj it should
return: file?MyArg2=qsdfghj
hope this is understandable :)
next is the <@PREVNEXT> tag wich is self explained with the .taf
Hope this is usefull to the communauty
Gauthier
----- Original Message -----
From: "Dan Stein" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Saturday, July 13, 2002 4:56 AM
Subject: Re: Witango-Talk: Previous 1 2 3 4 5 6 Next page links wanted
> Gauthier,
> I'd love to see the custom tag and how it works if you would be willing to
> post it somewhere.
> --
> Dan Stein
> Digital Software Solutions
> 799 Evergreen Circle
> Telford PA 18969
> Land: 215-799-0192
> Mobile: 610-256-2843
> Fax 413-410-9682
> FMP, WiTango, EDI,SQL 2000
> [EMAIL PROTECTED]
> www.dss-db.com
>
>
> > From: "[Gauthier]" <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Sat, 13 Jul 2002 00:47:25 +0200
> > To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]>
> > Subject: Re: Witango-Talk: Previous 1 2 3 4 5 6 Next page links wanted
> >
> > I currently use a customtag for this purpose but since you still use
tango
> > 3.6 this should not be available (or I'm totaly wrong?).
> >
> > here is a basic logic to build your own implementation:
> > you need a start, a stop, a max for page numbers calculation
> > you need the searchargument name for retrieving/setting the start value
and
> > be able to display multiple prev/next sections (wich you cant' with an
> > unique searchargument)
> >
> > with this in hand you can generate a for loop that will put your links
> >
> > here is a quick file that I've done on those german keyboard from
SoftDes
> > office, please don't beat me if it contain's any bug ;)
> >
> > Maybe another one have a complete exemple in a taf
> >
> > hope this help
> >
> > Gauthier
> >
> > ----- Original Message -----
> > From: "Nicholas Froome" <[EMAIL PROTECTED]>
> > To: "Multiple recipients of list witango-talk"
<[EMAIL PROTECTED]>
> > Sent: Friday, July 12, 2002 11:39 PM
> > Subject: Witango-Talk: Previous 1 2 3 4 5 6 Next page links wanted
> >
> >
> >>
> >>
> >> I'd like to provide a Google-style page "readout" on multi-page results
to
> > searches, in the traditional style:
> >>
> >> Previous 1 2 3 4 5 6 Next
> >>
> >> The Tango Search Builder creates some (hugely complex) code for
successive
> > page links, and uses Forms with Submit buttons and hidden fields to pass
> > arguments
> >>
> >> Has anyone built or used a suitable replacement for this that uses a
> > Google-like style? Or can they recommend anything to acquire code from?
> >>
> >>
> >> We're using Tango 3.6x, Mac OS 9.2x, Webstar 4.x
> >>
________________________________________________________________________
> >> TO UNSUBSCRIBE: send a plain text/US ASCII email to
[EMAIL PROTECTED]
> >> with unsubscribe witango-talk in the message body
> >
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
customtags.tcf
Description: Binary data
prevnext.taf
Description: Binary data
BODY
{
font-family: monospace;
font-size: 11px;
}
.Disabled
{
background-color: #CCC;
}
.Enabled
{
background-color: #366C8D;
color: #FFF;
}
.Group
{
width:400px;
border: 3px dashed #F00;
margin:10px;
padding:10px;
float:left;
}
p
{
clear: both;
}
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE TAGPACKAGES SYSTEM "ctags.dtd"> <tagpackages Version="0x02000001"> <packagedef id="MyPackage"> <objects> <objectdef id="customtags" type="TCF" systemobject="true"> <name>customtags.tcf</name> <varname>customtagsobject</varname> <scope>local</scope> </objectdef> </objects> <tags> <tagdef name="listarg" objectid="customtags"> <method>process_ListArg</method> <encoding>NONE</encoding> <attrdef name="UPDATE" required="false"> </attrdef> <attrdef name="DELETE" required="false"> </attrdef> </tagdef> <tagdef name="prevnext" objectid="customtags"> <method>result_PrevNext</method> <encoding>NONE</encoding> <attrdef name="START" required="true"> </attrdef> <attrdef name="MAX" required="true"> </attrdef> <attrdef name="TOTAL" required="true"> </attrdef> <attrdef name="TYPE" required="false"> </attrdef> <attrdef name="STARTARGNAME" required="false"> </attrdef> </tagdef> </tags> </packagedef> </tagpackages>
