ah progress
it worked so far, at least no errors.
I only used the _blank out of the 2nd code portion you gave me to test it. And it opened in a new window.
back end
Code:
foreach ($this->filters as $filt) :
echo '<span class="filter">';
echo $filt->html = preg_replace('/onchange="[^"]*?"/',
"onchange=\"this.form.target='_blank';this.form.submit();\"",
$filt->html);
endforeach;
shoud I have left the
at the end?
front end it showed
Code:
<select onchange="this.form.target='_blank';this.form.submit();" id="filter_19" name="filter_19">
I didn't use both parts of the code as you said I should, because then I should add an if and else statement right?
But in testing this I think I found the proper way to go at this.
It should remain in the same window, but with the filter option id, value, or probably best would be the label added to the url. this type of code perhaps?
Code:
onchange="window.location='index.php?'+this.value"
I just need to be able to save the url in acesef so I can add the metadata. Though maybe I should disable acesef when testing this. Not sure if it will show the parameter when base url is set to used and cache.
Again, thanks a million for the help, really appreciate it, I'm not that good with coding..
edit: in acesef it shows these urls, they have nothing to do with the filters right or do they :roll:
Code:
index.php?option=com_flexicontent&Itemid=106&cid=page%3A58.html&view=category
index.php?option=com_flexicontent&Itemid=106&cid=page%3A20.html&view=category
index.php?option=com_flexicontent&Itemid=106&cid=page%3A122.html&view=category
index.php?option=com_flexicontent&Itemid=106&cid=page%3A106.html&view=category
this is the used/normal one
Code:
index.php?option=com_flexicontent&Itemid=106&cid=36&view=category