Custom search link in XML

User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Custom search link in XML

Post by John »

Adding parameters to the query. Any variable named in the option will be passed through from the query (e.g. via input type=hidden) to the XML.
John Turnbull
Thunderstone Software
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

Custom search link in XML

Post by dietric »

I added two parameters to the search settings, and I do see them in the XML as showing up as part of the query strings of the links (<OrderLink>,<PageLink> etc), but not as nodes. Is that the expected behavior?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Custom search link in XML

Post by John »

They should occur as an <exportVar> node at the end, e.g.

<exportVar>
<variable name="x">1234</variable>
</exportVar>
John Turnbull
Thunderstone Software
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

Custom search link in XML

Post by dietric »

OK, got it... that works great, thanks...
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

Custom search link in XML

Post by dietric »

Works great, but with two exceptions: When I click on "Find Similar" (cmd=mlt) or "Show Links" (cmd=links), the export variables do not seem to be created in the xml...
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Custom search link in XML

Post by jason112 »

We've verified that the <exportVar> tag doesn't appear on "Show Links" page, it'll be fixed in a scripts update.

It seems to be working ok for us in "Find similar" though. Are the CGI variables being passed in the URL properly? Is the <exportVar> block in the XML at all? (Adding "dropXSL=1" to the query will show the xml.)
gweinstock
Posts: 15
Joined: Tue Jul 05, 2005 11:05 am

Custom search link in XML

Post by gweinstock »

The CGI variables are being passed correctly in the URL, but the <exportVar> block is not present at all on the Show Links page. It does work correctly on Find Similar.
Gabe
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Custom search link in XML

Post by jason112 »

Scripts 5.4.18 are now available, they fix the problem of <exportVar> not appearing on "Show Links" pages.
Post Reply