#6896 (The footer renders memo commands using admin instead of publisher)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
The links in the footer work in noi2, but not in patrols1. To we want a better way to customize the footer?
lino/modlib/bootstrap5/config/bootstrap5/base.html renders the full_body_preview of the rt.models.publisher.SpecialPages.footer page. But at least in patrols1, the memo commands in the full_body_preview have been rendered using the admin front end and not using the publisher front end. So an anonymous user is faced with a sign-in dialog when they click them.
The problem does not occur in noi2. I don't understand why.
Concepts sous-jacents
Commentaires
- 3 mois, 3 semaines ago by Luc Saffre about #6896 (The footer renders memo commands using admin instead of publisher) : The memo plugin now raises an exception "The memo plugin must come after {self.front_end}" when this situation occurs.
- 3 mois, 3 semaines ago by Luc Saffre about #6896 (The footer renders memo commands using admin instead of publisher) : Ha! Both plugins memo and publisher define a post_site_startup() method, memo uses it for setting self.front_end and self.ar to a BaseRequest with renderer=self.front_end.renderer, and publisher uses it for setting self.renderer = Renderer(self). And hence the result varies depending on the installa...
- 3 mois, 3 semaines ago by Luc Saffre about #6896 (The footer renders memo commands using admin instead of publisher) : This issue is well hidden, I still didn't find the explanation.
- 3 mois, 3 semaines ago by Luc Saffre about #6896 (The footer renders memo commands using admin instead of publisher) : Created new Ticket #6896 (Find a better way to customize the footer).