Latte

Board3 data-select-match - Latte

Board3 data-select-match

by Neverlands » Wed Sep 12, 2018 6:17 am

Hello,

I am using Latte with Board3 and have a question about the data-select-match for the navbar header navigation.
Originally the index tab is selected but then the home (portal) tab is not recognized:

Code: Select all

<!-- IF U_SITE_HOME -->
<li class="tab home" data-responsive-class="small-icon icon-home">
	<a class="nav-link" href="{U_SITE_HOME}" data-navbar-reference="home">{L_SITE_HOME}</a>
</li>
<!-- ENDIF -->
<li class="tab forums selected" data-responsive-class="small-icon icon-forums">
	<a class="nav-link" href="{U_INDEX}" data-navbar-reference="index">{L_FORUMS}</a>
</li>
I have tried it with this option but then index.php (Forum Index) is not recognized:

Code: Select all

<!-- IF U_SITE_HOME -->
<li class="tab home selected" data-responsive-class="small-icon icon-home">
	<a class="nav-link" href="{U_SITE_HOME}" data-navbar-reference="home">{L_SITE_HOME}</a>
</li>
<!-- ENDIF -->
<li class="tab forums" data-responsive-class="small-icon icon-forums" data-select-match="view">
	<a class="nav-link" href="{U_INDEX}" data-navbar-reference="index">{L_FORUMS}</a>
</li>
What is the trick to select the portal, index and view* correctly?
Can I use data-select-match to select view OR index?

Thanks,
Neverlands
Last edited by Neverlands on Fri Sep 14, 2018 6:28 am
User avatar
Neverlands
Registered User
Posts: 80
Joined: Thu Sep 05, 2002 12:06 am
Location: Vienna / Austria
Contact:

Re: Board3 data-select-match

by Neverlands » Fri Sep 14, 2018 6:28 am

The topic can be set to <solved>.

Here my solution:

Code: Select all

<!-- IF SCRIPT_NAME eq 'index' or SCRIPT_NAME eq 'viewforum' or SCRIPT_NAME eq 'viewtopic' -->
	<!-- IF U_SITE_HOME -->
		<li class="tab home" data-responsive-class="small-icon icon-home">
			<a class="nav-link" href="{U_SITE_HOME}" data-navbar-reference="home">{L_SITE_HOME}</a>
		</li>
	<!-- ENDIF -->
		<li class="tab forums selected" data-responsive-class="small-icon icon-forums">
			<a class="nav-link" href="{U_INDEX}" data-navbar-reference="index">{L_FORUMS}</a>
		</li>
<!-- ELSE -->
	<!-- IF U_SITE_HOME -->
		<li class="tab home selected" data-responsive-class="small-icon icon-home">
			<a class="nav-link" href="{U_SITE_HOME}" data-navbar-reference="home">{L_SITE_HOME}</a>
		</li>
	<!-- ENDIF -->
		<li class="tab forums" data-responsive-class="small-icon icon-forums">
			<a class="nav-link" href="{U_INDEX}" data-navbar-reference="index">{L_FORUMS}</a>
		</li>
<!-- ENDIF -->
User avatar
Neverlands
Registered User
Posts: 80
Joined: Thu Sep 05, 2002 12:06 am
Location: Vienna / Austria
Contact: