Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-05 09:26:38

maurovignati
New Member
Registered: 2008-03-24
Posts: 6

More variables in one request?

Hi,
I have the following question: if I would send more than one variable within a request (category_list) how does it works in txp?

Exemple:
I have this code:

<div id="panel12">
	<h3 class="management">Management</h3>
	<h2 class="titel_orchester" onclick="accordion(this)">Orchester</h2>
	<div id="panel12-body" class="panel_body">
        <div>
<txp:category_list break="li" wraptag="ul" categories="zurich_jazz_orchestra,camerata_schweiz" sort="id" section="management" />
	</div>
        </div>	
        </div>

The link to the category “zurich_jazz_orchestra” would be:

http://vignati.ch/stagecoach/management/?c=zurich_jazz_orchestra

Now, if I would like to send another variable, let’s says “t” (=topic, for exemple) to get the following request:

http://vignati.ch/stagecoach/management/?c=zurich_jazz_orchestra&t=jazz

How can I do that?
Many thanks for any help
Mauro

Offline

#2 2008-05-05 10:13:02

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: More variables in one request?

Currently, you’d have to manually build the links with maybe a little help from <txp:link_to_home /> – I admit, this is not a very meaningful labor.

In the next release 4.0.7 due later this year, Textpattern will support forms for category_list which would allow a more automated approach. This feature already works in the current development build available via SVN. So, there’s hope for the future…

Offline

#3 2008-05-05 11:29:55

maurovignati
New Member
Registered: 2008-03-24
Posts: 6

Re: More variables in one request?

Hi wet,
many thanks for your replay.
regards,
mauro

Offline

Board footer

Powered by FluxBB