Page 1 of 1

LISE category Link to Detals sends to backoffice

Posted: Thu Dec 04, 2025 8:17 am
by janvl
Hi,
I have a website https://paed2.gerdalink.top where a LISE-instance is running.
CMSMS 2.2.22
LISE 1.5.6
PHP 8.1.32

When i click on "Kinderdermatologie bundesweit -> sortiert nach Regionen"
i get a list of all categories (regionen) with the number of items.
When i click on one of the links it points to the backoffice:
https://paed2.gerdalink.top/admin/modul ... il=details

I cannot find a cause for this behaviour and solve it.

If you do the same on https://paed2.gerdalink.top
CMSMS 2.2.16
LISE 1.5.6
PHP 7.4.33
it works as expected.

Where can i search to solve this?

Regards,
Jan

Re: LISE category Link to Detals sends to backoffice

Posted: Thu Dec 04, 2025 8:34 am
by webform
What does your Category Template looks like?

And have you tried the default Category Template and see if the problem persist?

Re: LISE category Link to Detals sends to backoffice

Posted: Thu Dec 04, 2025 11:56 am
by janvl
Hello webform,

Thanks for reacting so fast!

LISE is called with this Smarty - i made it in paed.gerdalink.top and copied it to paed2.gerdalink.top:
{LISEFachkraefte action = category template_summary = 'zusammenfassung' template_detail = 'details'}

Category Template "zusammenfassung":

Code: Select all

<div>
{if $items|@count > 0}
	<!-- items -->
	{foreach from=$items item=item}
	<!-- item -->
        <div class="item-title" style="color:#333;padding:5px;font-size:120%;">
        <b>{$item->fielddefs.stadt.value|cms_escape}: <a href="{$item->url}">{$item->fielddefs.name.value|cms_escape}</a></b>
        </div>
        <div style="border-top:1px solid #d2d2d2;margin:0.5em 0 0.5em 0 ;height:5px;">
        </div>
	<!-- item //-->
	{/foreach}

	<!-- items //-->
{/if}
</div>

Category Template "details":

Code: Select all

<!-- item -->
<div class="item">
Region: {LISELoader item='category' force_array=1 value=$item->fielddefs.category assign='cats'}{$category = "{$cats|implode:','}"}{$category}
<br />
	<h2 class="item-title">{$item->name|cms_escape}</h2><br />
<br /> 
<b>{$item->facharzt|replace:",":", "} {$item->fielddefs.klinik_oder_praxis.value|cms_escape} </b><br />
<br />
<b>Adresse:</b> <br />
{$item->fielddefs.adressenzusatz.value|cms_escape}<br />
{$item->fielddefs.adresse.value|cms_escape}<br />
<br />
<b>Kontakt:</b><br />
Telefon:{$item->fielddefs.telefon.value|cms_escape}<br />
<br />
E-Mail-Adresse: <a href="mailto:{$item->fielddefs.kontaktemail.value|cms_escape}">{$item->fielddefs.kontaktemail.value|cms_escape}</a><br />
<br />
Webseite: <a href="{$item->fielddefs.webseite.value|cms_escape}" target="_blank">{$item->fielddefs.webseite.value|cms_escape}</a><br />
<br />
<table style="border: 1px solid #333;border-collapse:collapse;">
<tr><td style="border: 1px solid #333;padding:10px;"><h5>Sprechstunde</h5></td><td style="border: 1px solid #333;padding:10px;"><h5>Praxisprofil</h5></td></tr>
<tr><td style="width:45%;vertical-align: top;border: 1px solid #333;padding:10px;">{$item->fielddefs.details.value}</td><td style="width:45%;vertical-align: top;border: 1px solid #333;padding:10px;">{$item->fielddefs.schwerpunkte.value}</td></tr>
</table>
<br /><br />

<div id='mymap' style='width:75%;height:400px;'></div>
{literal}
<__script__>
      // initialize Leaflet
      var mymap = L.map('mymap').setView({lon: {/literal}
{$item->fielddefs.laengengrad.value|cms_escape} , lat: 
{$item->fielddefs.breitengrad.value|cms_escape}{literal}
}, 12);

      // add the OpenStreetMap tiles
      L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
        maxZoom: 19,
        
        	attribution: 'Map data &copy; <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, ' +
			'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
			'Imagery © <a href="https://mapbox.com">Mapbox</a>',
		id: 'mapbox.streets'
	}).addTo(mymap);
 
      // show the scale bar on the lower left corner
      L.control.scale().addTo(mymap);

      // show a marker on the map
      L.marker({lon: {/literal}
{$item->fielddefs.laengengrad.value|cms_escape} , lat: 
{$item->fielddefs.breitengrad.value|cms_escape} {literal}
}).bindPopup({/literal}
'{$item->fielddefs.name.value|cms_escape:htmlall}<br />{$item->fielddefs.strasse.value|cms_escape:htmlall}<br />{$item->fielddefs.postleitzahl.value|cms_escape:htmlall} {$item->fielddefs.stadt.value|cms_escape:htmlall}<br />{$item->fielddefs.telefon.value|cms_escape:htmlall}'
{literal}).addTo(mymap).openPopup();

</__script>
{/literal}


<br /><br />
	<a href="{$return_url}" class="return-link">return</a>
	{* or use {$return_link} to create link tag *}
	
</div>
<!-- item //-->

Re: LISE category Link to Detals sends to backoffice

Posted: Thu Dec 04, 2025 12:38 pm
by webform
Your Category Template looks wrong - It looks like your using a Summary Template code. The default Category Template looks like this:

Code: Select all

<!-- categories -->
<ul>
{foreach from=$categories item=category}
	<li class="category-{$category->alias}">
		<a class="category-name" href="{$category->url}">{$category->name} ({$category->items|count})</a>
			{if !empty($category->description)}
			<div class="category-description">
				{eval var=$category->description}
			</div>
			{/if}
	</li>
{/foreach}
<ul>
<!-- categories //-->
And your calling a summary and detail template in your LISEInstance tag, which is ignored when using action='category'.
The category action using summary and detail templates that is set to default in the template list.