I have a problem with implementing an LISE instance into vertical tabs. Since I have no knowledge of Smarty, I believe that's where the solution lays. But let me start from the beginning...
1) This is how it suppose to look like:
http://autocentarstar.com/index.php?page=test-00
It's all just HTML with some javascript. It is functional thou, but it's hard to maintain. So I have decided to give it a try with LISE module.
2) This is what I have now:
http://autocentarstar.com/index.php?page=test
Menu on the left side is very simple and it works fine. It is "Summary Template" of LISE instance and it looks like this:
Code: Select all
{if $items|@count > 0}
{foreach from=$items item=item}
<div class="item">
<h4 class="tab01">{$item->fielddefs.naslov->value}</h4> {*naslov=title*}
</div>
{/foreach}
{/if}
Code: Select all
{LISEtabs category="auto-dijelovi" template_summary="00_acs_vertical_tabs_LISE_summary_TPL" exclude_category="002,003"}
The problem I'm trying to solve is in the right area where description and image should appear. This is my "Detail Template" of LISE instance:
Code: Select all
{if !empty($item->fielddefs)}
<left class="col-lg-8 col-md-8 col-sm-12 col-xs-12 bhoechie-tab">
{foreach from=$item->fielddefs item=fielddef}
{if $item->fielddefs.opis->value}
<h3>{$item->fielddefs.naslov->value}</h3> {*naslov=title*}
<p>{$item->fielddefs.opis->value}</p> {*opis=description*}
{/if}
{/foreach}
</left>
<left class="col-lg-4 col-md-4 col-sm-12 col-xs-12 bhoechie-tab">
{foreach from=$item->fielddefs item=fielddef}
{if $item->fielddefs.slika->value} {*slika=image*}
<img class="img-responsive" {CGSmartImage src="{uploads_url}/{$item->fielddefs.slika.value}" filter_resize='w,245' quality='100'} />
{/if}
{/foreach}
</left>
{/if}
Code: Select all
{LISEtabs category="auto-dijelovi" template_detail="00_acs_vertical_tabs_LISE_detail_TPL" exclude_category="002,003"}
As you can see, it seems for some reason "Summary Template" is being called on the right too. No description, no image, only title as defined in "Summary Template" (<h4> instead of <h3>).
I've been struggling with this for last few days and whatever I do I just can't move away from this result. It seems like my "Detail Template" doesn't exist at all! Also, I know my summary and detail templates should be written differently so I don't have to use 'exclude_category' but it was the only way for me to deal with it. This kind of code is way above my knowledge. But it's still very weird why my "summary template" is working and "detail template" is not if both were marked as 'default' and names are not misspelled.
If anyone could give me a hint on this one I would be very grateful!
Have a good day and best regards!
Jakovbak