,str_replace() with arrays doesn’t seem to work
-
I’m using a template I’ve created for mla_gallery that has the following in Open:
<h3 id='gallery_results_summary'>Found [+found_rows+] images tagged with "[+request:tax_input.attachment_tag,str_replace(',','" / "')+]" (match [+request:tax_logic,str_replace({'AND' 'OR'}, {'all' 'any'})+] tags)</h3>
The idea is that it will display the selected search tags (request:tax_input.attachment_tag) and logic (request:tax_logic), and the number of results.
The tax_logic is chosen from a simple HTML <select> with two options – “Match all tags” (value: AND) and “Match any tags” (value: OR).
Annoyingly, though, it outputs the following:
Found 38 images tagged with "tag1" / "tag2" / "tag3" (match [+request:tax_logic,str_replace({'AND' 'OR'}, {'all' 'any'})+] tags)
Have I missed something? Is there something I’m not doing right? Or is this a legit bug?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘,str_replace() with arrays doesn’t seem to work’ is closed to new replies.