BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Footer Links

Open ApertureDevelopment opened this issue 8 years ago • 9 comments

For Feature Requests

Desired Feature: Links to articles in Page footer

Why should you add it?

Due to the EU and US privacy law, it will be mandatory for most people to add a Privacy Policy to their BookStack installation. And according to the EU law, the Privacy Policy must be available on every accessible page on your website, so the best way here is to stay with the tradition and allow Footer Links.

And for German users there is a so called Legal Info mandatory, which includes full address details of the website owner, mostly it must include:

  • Full Name
  • Full Address
  • E-Mail
  • Phone Number
  • UStID

Best way to add it would be to be able to select from existing articles, pages to put in footer links.

ApertureDevelopment avatar May 22 '18 21:05 ApertureDevelopment

This would be awesome.

CaptnBook4Git avatar Jun 18 '18 00:06 CaptnBook4Git

Yes, I also recommend adding a footer. 1, increasing the space at the bottom editor for easy mobile phone add content. 2, increase privacy, copyright 3, increase the statistical information and other scripts, the content increased in the footer, it will not affect the page loading speed. 4, advertising space

Webmasters can add code to APP SETTINGS

qianmengnet avatar Nov 07 '18 09:11 qianmengnet

I tried to add footer, but on the edit page, footer blocked the editor. How can I set css?

11

22

qianmengnet avatar Nov 27 '18 18:11 qianmengnet

It looks like this isn't a priority at the moment, but has anyone had luck making their own modifications to add a footer? I'm unfamiliar with Laravel and its templating system, and pretty far from webdev in general these days, and would be grateful for any help.

aidanfindlater avatar Mar 18 '20 19:03 aidanfindlater

@aidanfindlater @ApertureDevelopment

I'm not as familiar with European regulations but are these mandated to be located on a certain part of the page, or could they be located anywhere so long as they are accessible?

What counts as an accessible page? Just public-facing pages? Or also for the admin backend?

james-geiger avatar Mar 19 '20 01:03 james-geiger

They have to be easily accessible from every page. That means the link has to be always visible, cannot be hidden and should not require a search from a search functionality to find. Thats why a footer would be perfect for that

ApertureDevelopment avatar Mar 19 '20 02:03 ApertureDevelopment

For those interested (@ApertureDevelopment @iBooster @qianmengnet @aidanfindlater), you can see how this was implemented in the referenced PR.

Depending on your urgency, the following code may be sufficient to implement in your instance's "Custom HTML Head Content" settings editing the link href and label to suit your needs.

<style>
footer {
    padding: 0.5em;
    text-align: center;
}

footer a {
    margin: 0 0.5em;
}
</style>
<script>
window.addEventListener('DOMContentLoaded', (e) => {
    var footer = document.createElement('footer');
    footer.innerHTML = '<a href="https://www.my-privacy-policy.com">Privacy Policy</a>';

    document.querySelector('#content').insertAdjacentElement("afterend", footer);
});
</script>

james-geiger avatar Mar 19 '20 04:03 james-geiger

@james-geiger that was incredibly helpful and exactly what I was hoping for. Thank you!

aidanfindlater avatar Mar 19 '20 13:03 aidanfindlater

Thanks to @james-geiger footer links will be part of the next feature release.

This interface will appear as shown below:

image

Since this feature is now in the main development branch I'll close this off.

ssddanbrown avatar Jan 31 '21 00:01 ssddanbrown