Page 1 of 1

LISE Tag Field Definition

Posted: Mon Oct 30, 2023 4:57 pm
by WDJames
Hello All,

Does anyone have any experience with using the LISE Tag field definition as a clickable list? I've found an older post which doesn't seem to work anymore. I've got the following to work but I find the URL a bit cumbersome and the results display all items that includes the tag phrase within the content text even if the item doesn't include any tag:

Code: Select all

  {if $item->Tags!=""}
  {assign var="tags" value=','|explode:$item->Tags}
   {foreach from=$tags item=tag}
    <a href="/index.php?mact=LISEBlog,cntnt01,default,0&amp;cntnt01tag={$tag}&amp;cntnt01returnid={$returnid}">{$tag}</a>
   {/foreach}
  {/if}
Am I missing something really simple?

Thanks in advance for your help.

James

Re: LISE Tag Field Definition

Posted: Mon Oct 30, 2023 5:59 pm
by DIGI3
At the very least you might want to look at using the {cms_action_url} tag so the url is built dynamically rather than having to hand-code it. I think you should be able to pass on some LISE search parameters to make it return what you want.

You might also be able to do it differently, using LISE's built in search functionality and looking at the sample filter template.