
rez
User
Apr 26, 2011, 8:29 PM
Post #1 of 5
(378 views)
Shortcut
|
|
searches and checkbox lists
|
Can't Post
|
|
I have a section editor for projects with a list field called "tags" populated from another editor (checkboxes multi value- values =num, labels=title) The list viewer page at projects.php shows the tags (labels) for each record just fine with cmsb generator code: code generator code:
Tags: <?php echo join(', ', getListLabels('projects', 'tags', $record['tags'])); ?><br/> gives me: Tags: furniture, interior design, menu board, mural, etc. for each record. Perfect. (test searches are working: mydomain/projects.php/furniture-1) I would like each of those tags listed to be a search link though. Clicking the furniture tag would list all the projects that have the furniture checkbox filled for instance. How do I make the tag list show as these links? Something like a for each tag <a href="http://www.mydomain.com/getListvalue"> getListLabel,</a> so 1. how do I make the tag list into search links for records that match a clicked tag 2. In addition, i'd like to know how to make this same list into a UL list. 3. btw, can the search links show/use labels instead of values somehow in the address bar while keeping values "num"?
(This post was edited by rez on Apr 26, 2011, 10:12 PM)
|