-
Notifications
You must be signed in to change notification settings - Fork 77
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
Template Modification Question #63
Comments
Maybe you could use this : <li>
<?php echo _tpl_action_item('edit', 'glyphicon glyphicon-pencil')?>
</li> I used a function declared in the template. |
Nice! That seems to work. Say like this link: Home') ?>But instead of the wl() something that links to sitemap. |
This will work, in fact it's used for the Sitemap link in the dropdown (the one in the navbar) _tpl_action_item('index', 'glyphicon glyphicon-list') // Will take you to the sitemap In dokuwiki style : <?php tpl_action('index')?> Note that tpl_link() will only build a link. So if you provide à URL it will work too. <?php tpl_link("*http://your_sitemap_url*", ' Home') ?> |
Spot on. Thanks for the help! |
… and added Edit button on navbar (showEditBtn: never). Thanks to @Juergen-aus-Koeln on #150 and @NoriSilverrage on #63.
Not sure where questions for help go...
I really like your template but I wanted to add a edit this page button in the top navbar.
I edited the navbar.html file and added:
This has the desired effect of adding the edit option, but I have two issues with it. One, I'm not sure if this is the same edit action as the one in the tools menu. It seems to work, but I just want to make sure I'm doing it right.
The other issue is that I can't figure out how to add the glyphicon icon inline with the edit button as you do for the home button.
Any help on this would be great.
The text was updated successfully, but these errors were encountered: