Hello...
I have set up a back end of available resources with a series of editables, one of which is "relation". I am using this "relation" editable to set tags for the resources in the database using a separate template to name the tags. See the code for this below:
Each resource now has several tags checked. So for example, an educational video may have tags checked for "education", "video", "animation", etc.
I have implemented the search functionality and have set up a results page that is working correctly with one exception: The search results are not returning results based on these tags. The search query is evaluating the other editable regions, like the title or the description, but the tags are not being searched with the query.
Here is my code for the search results:
Can you help me figure out how to force the search query to include the tags that have been checked off via the "relation" method?
Thank in advance.
I have set up a back end of available resources with a series of editables, one of which is "relation". I am using this "relation" editable to set tags for the resources in the database using a separate template to name the tags. See the code for this below:
- Code: Select all
<cms:editable name='catalog_tags' type='relation' masterpage='ppp-tagstemplate.php' label='Keyword Tags' orderby='page_title' order_dir='asc' advanced_gui='1' desc='Please click the add button and then check all of the applicable tags. If you need a new tag, this must be added to the Catalog Tags template first.' />
Each resource now has several tags checked. So for example, an educational video may have tags checked for "education", "video", "animation", etc.
I have implemented the search functionality and have set up a results page that is working correctly with one exception: The search results are not returning results based on these tags. The search query is evaluating the other editable regions, like the title or the description, but the tags are not being searched with the query.
Here is my code for the search results:
- Code: Select all
<cms:search masterpage='ppp.php'>
<a href="<cms:show k_page_link />" style="text-decoration: none;">
<div class="container cataloglisting">
<div class="row">
<div class="span2" style="width:100px;">
<img src="<cms:show item_thumbnail />" />
</div>
<div class="span5" style="width:440px;">
<span style="font-size: 18px;"><cms:show k_search_title /></span>
<br>
<span style=" font-weight: 300;"><cms:show k_search_excerpt /></span><br>
<a href="<cms:show k_page_link />" class="btn btn-primary" style="margin-top: 20px;">MORE ABOUT THIS RESOURCE <span class="glyphicon glyphicon-share-alt" aria-hidden="true" style="top: 2px;margin-left: 3px;"></span></a>
</div>
</div>
</div>
</a>
</cms:search>
Can you help me figure out how to force the search query to include the tags that have been checked off via the "relation" method?
Thank in advance.