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

Allow plugins to create siteLinks in areas other than the main navigation. #4810

Closed
CaMer0n opened this issue Jul 2, 2022 · 0 comments
Closed
Labels
type: enhancement An improvement or new feature request
Milestone

Comments

@CaMer0n
Copy link
Member

CaMer0n commented Jul 2, 2022

Motivation

Currently, plugins can only create new navigation links in the main navigation menu. If a plugin wishes to create a navigation link in the footer, for example, this is currently not possible.

Proposed Solution

Add a category attribute to plugin.xml to determine placement of the created navigation link.

1 = Main
3 = Footer
etc.

<siteLinks>
	<link category="1" url="{e_PLUGIN}_blank/_blank.php" perm='everyone' sef='index'>LAN_PLUGIN__BLANK_LINK</link>
	<link category="3" url="{e_PLUGIN}_blank/_blank.php" perm='everyone' sef='index'>Footer Link</link>
</siteLinks>
@CaMer0n CaMer0n added the type: enhancement An improvement or new feature request label Jul 2, 2022
@CaMer0n CaMer0n added this to the e107 2.3.3 milestone Jul 2, 2022
@CaMer0n CaMer0n closed this as completed in 5e274b8 Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement An improvement or new feature request
Projects
None yet
Development

No branches or pull requests

1 participant