Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation - {LINK_IDENTIFIER} and {LINK_PARENT} are empty #7

Open
Jimmi08 opened this issue Jun 17, 2019 · 1 comment
Open

Navigation - {LINK_IDENTIFIER} and {LINK_PARENT} are empty #7

Jimmi08 opened this issue Jun 17, 2019 · 1 comment

Comments

@Jimmi08
Copy link
Collaborator

Jimmi08 commented Jun 17, 2019

Support for 3 level menu removed
Used standard navbar markup with divs for 2 level

Problem:

// Main Link which has a sub menu. 
$NAVIGATION_TEMPLATE['main']['item_submenu'] = '
	<li class="nav-item dropdown">
		<a class="nav-link dropdown-toggle"  id="navbarDropdown{LINK_IDENTIFIER}"  role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" title="{LINK_DESCRIPTION}">
		 {LINK_ICON}{LINK_NAME} 
		</a> 
		{LINK_SUB}
	</li>
';

// Main Link which has a sub menu - active state.
$NAVIGATION_TEMPLATE['main']['item_submenu_active'] = '
	<li class="nav-item dropdown active>
		<a class="nav-link dropdown-toggle"  id="navbarDropdown{LINK_PARENT}"  role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" title="{LINK_DESCRIPTION}">
		 {LINK_ICON}{LINK_NAME} 
		</a> 
		{LINK_SUB}
	</li>
';

{LINK_IDENTIFIER} and {LINK_PARENT} are empty

image

Jimmi08 added a commit that referenced this issue Jun 17, 2019
@CaMer0n
Copy link
Member

CaMer0n commented Jun 17, 2019

if(empty($val['link_identifier']) && !empty($val['link_function']))
{
	$val['link_identifier'] = $frm->name2id($val['link_function']);
}

It was originally designed for sitelink functions, but it could be expanded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants