S
S
Seva2012-05-26 19:03:08
MODX
Seva, 2012-05-26 19:03:08

Passing getResources parameters by GET method?

Good day.
There is a map with labels, you need to click on the city to display materials where this city is recorded in TV.
On the output page I want to call something like this:

How can I pass the tvFilter value to the page where the above GET call will be? To get a link like localhost/index.php?id=1&tvFilter= `city==Minsk`

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Tesby, 2012-05-27
@Zewkin

Let's create a simple snippet:

<?php
//пример вызова сниппета:  и 
$get = preg_replace('#[^a-zA-Z0-9_=]#', '', $_GET[$var]);
$output = (empty($get) && isset($def)) ? $def : $get;
 return $output;

Then we call where necessary to pass the parameter:
&tvFilters=``

S
Seva, 2012-05-28
@Zewkin

Thanks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question