Pages: 1 2
/themes/bootstrap_darkroom/template/index.tpl
-----------------------------------------------------------------
Line 12:
{if isset($chronology.TITLE)} <a href="{$U_HOME}" title="{'Home'|@translate}"><i class="fas fa-home" aria-hidden="true"></i></a>{$LEVEL_SEPARATOR}{$chronology.TITLE} {else} <div class="nav-breadcrumb d-inline-flex">{$TITLE}{if $NB_ITEMS > 0}<span class="badge badge-secondary ml-2">{$NB_ITEMS}</span>{/if}</div> {/if}
BTW Needs some css tweaking!
Best regards
Robert
Offline
Direct link to the modified TPL file https://www.fotoarkiv.no/priv/index.tpl
Replace /themes/bootstrap_darkroom/template/index.tpl
NOW over to the RV Autocomplete search ISSUE! :-))
Offline
Thanks Robert, much appreciated ;-)
Will have a look into it this weekend. Just to understand, what was the real problem?
Offline
Custom CSS to align the BADGE:
.ml-2, .mx-2 {
margin-left: .5rem !important;
height: min-content;
margin-top: 5px;
}
Offline
matthys wrote:
Thanks Robert, much appreciated ;-)
Will have a look into it this weekend. Just to understand, what was the real problem?
The suggested code was TOTALLY WRONG.
SUGGESTED CODE:
{if $cat.count_images > 0}
<span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if} badge" title="{$cat.TITLE}">{$cat.count_images}</span>
{/if}
WORKING CODE:
{if isset($chronology.TITLE)}
<a href="{$U_HOME}" title="{'Home'|@translate}"><i class="fas fa-home" aria-hidden="true"></i></a>{$LEVEL_SEPARATOR}{$chronology.TITLE}
{else}
<div class="nav-breadcrumb d-inline-flex">{$TITLE}{if $NB_ITEMS > 0}<span class="badge badge-secondary ml-2">{$NB_ITEMS}</span>{/if}</div>
{/if}
Cheers
Robert
Offline
Okay, so the main problem was not to use the $cat.count_images variable but $NB_ITEMS.
Just some feedback from me, I made copy of template and used the "Extend templates" under configuration (I belief you need to enable this to see).
Substitutes (customized templates) Original templates Optional URL keyword Bound Theme
bootstrap_index.tpl index.tpl --------- bootstrap_darkroom
Just to avoid if a new version of templates comes with bootstrap and overwrites my custom additions.
I also used a new class (album-photos-navbar), so I can easy just modify this particle part, and added the CSS in the LocalFiles Editor.
<div class="nav-breadcrumb d-inline-flex">{$TITLE}{if $NB_ITEMS > 0}<span class="album-photos-navbar">{$NB_ITEMS} photos</span>{/if}</div>
I'm still playing with the colours and size, but the result you can see here
Thanks,
Matthijs
Offline
matthys wrote:
Okay, so the main problem was not to use the $cat.count_images variable but $NB_ITEMS.
Just some feedback from me, I made copy of template and used the "Extend templates" under configuration (I belief you need to enable this to see).
Substitutes (customized templates) Original templates Optional URL keyword Bound Theme
bootstrap_index.tpl index.tpl --------- bootstrap_darkroom
Just to avoid if a new version of templates comes with bootstrap and overwrites my custom additions.
I also used a new class (album-photos-navbar), so I can easy just modify this particle part, and added the CSS in the LocalFiles Editor.Code:
<div class="nav-breadcrumb d-inline-flex">{$TITLE}{if $NB_ITEMS > 0}<span class="album-photos-navbar">{$NB_ITEMS} photos</span>{/if}</div>I'm still playing with the colours and size, but the result you can see here
Thanks,
Matthijs
GOOD WORK !
Offline
Pages: 1 2