Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Help on filtering

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
mymaterick
Smarty n00b


Joined: 21 Oct 2011
Posts: 3

PostPosted: Tue Feb 23, 2021 10:29 pm    Post subject: Help on filtering Reply with quote

I have some code that lists all my categories, I would like to amend it to only list certain ones containing a word in the category name.

<div>{if is_array($ARRGETFLORISTCATEGORY)}<div class="fnzh1">Click region for florist areas</div><div class="florists lh"><ul class="fnzlink">{foreach from=$ARRGETFLORISTCATEGORY name=FloristList item=vFloristList key=kFloristList}<li><a href="https://aiustra.net/florists/{$vFloristList.category_url|add_seo_url_text}">{$vFloristList.category_name}</a></li>{/foreach}</ul></div>{/if}

how can I change the above code to filter the results that include the word "Hospitals" and just display those categories? TIA Rick
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP