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

Template Modification Question #63

Closed
NoriSilverrage opened this issue Jul 24, 2015 · 4 comments
Closed

Template Modification Question #63

NoriSilverrage opened this issue Jul 24, 2015 · 4 comments
Milestone

Comments

@NoriSilverrage
Copy link

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.

    @HavocKKS
    Copy link

    Maybe you could use this :

    <li>
        <?php echo _tpl_action_item('edit', 'glyphicon glyphicon-pencil')?>
    </li>

    I used a function declared in the template.

    @NoriSilverrage
    Copy link
    Author

    Nice! That seems to work.
    One more question. I'm trying to link to the sitemap. I can use the following just fine, but is there a way to grab just the sitemap?

    Sitemap') ?>

    Say like this link:

    Home') ?>

    But instead of the wl() something that links to sitemap.

    @HavocKKS
    Copy link

    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') ?>

    @NoriSilverrage
    Copy link
    Author

    Spot on. Thanks for the help!

    giterlizzi added a commit that referenced this issue Oct 11, 2016
    … and added Edit button on navbar (showEditBtn: never).
    
    Thanks to @Juergen-aus-Koeln on #150 and @NoriSilverrage on #63.
    @giterlizzi giterlizzi added this to the v2016-10 milestone Oct 19, 2016
    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

    3 participants