Hi mark,
here is the involved line (it has changed a bit in the latest ditto version, it’s almost the last line of the buildUrl(), my apologises for non posting the exact line but I don’t have acces to my source code tonight )
$url = $modx->makeURL($cID, ’’, $queryString);
My changes are as follows :
$url = (isset($modx->documentObject[’id’])) ? $modx->makeURL($cID, ’’, $queryString) : ’index.php?id=’.$GLOBALS[’modID’].$queryString;
I need the id param in the query string to execute the module in the manager.
I haven’t found a more elegant way to do it for now.
About the filters i will try to change my code to create an extender and that way allow peple using tveditor without changing their ditto files.
:-)
My main concern about filter is that in tveditor they are working by pair (does it make sense)
i had written a post about the way tvexplorer & tveditor are using filters.
I will post it here to give you more informations
here is a part of the post
tvExplorer will produce additionnal filters to insure a better results list.
To do so we will exclude from listings documents which have among their Tv values one of the unselected options
So filters will be
F1 : &filter:tvAppellation,ChateauNeuf du Pape,7|tvAppellation,Bourgogne,7|tvCouleur,Rouge,7|tvCouleur,Rosé,7|Categorie,Grand crû,7
OR
F2 : &filter:tvAppellation,ChateauNeuf du Pape,1|tvAppellation,Bourgogne,1|tvCouleur,Rouge,1|tvCouleur,Rosé,1|Categorie,Grand crû,1
+ filters tvExplorer
=> tvAppellation,Côtes du Rhone,2|tvAppellation,Bordeaux,2|tvCouleur,Blanc,2|Categorie,Vin AOC,2|Categorie,Vin de Pays,2|
we obtain the expected result:
Bourgogne wines OR Chateauneuf du pape AND Rouge OR Rosé AND Grand Crû
http://modxcms.com/forums/index.php/topic,11549.msg77853.html#msg77853