Hardcoding the Login Block with the Popup Template
Permalink
I have been using the AddOn Login Block with the Popup Login Template and everything works fine but I would like it to be hardcoded into the footer and I can't figure out how to do it. I am using 5.5.0 and it works fine if I call it from the editor. I tried to make a Stack out of it but when I can't call the template. I also have this problem with an Autonav template for a drop down menu which I would like to call from a Stack but the code appears to be incompatible with 5.5.0. Can anyone help?
Why don't you add it to your page defaults and then set it up on necessary child pages?
I don't know if I understand what you mean. The footer is included in every page and I would like to have the login block using the popup-login as a template hardcoded into the footer. I don't see how to attach blocks into a page default. Am I missing something?
Aaah! I figured out what you mean now by the Page Defaults. Sorry! But that doesn't do what I exactly what I want. Hardcoding options anyone?
I figured out that a Stack would do what I want but I can't figure out how to render with the popup login template. It works in editing mode so I know that it is 5.5.1 compatible but when I try to call it in display() I get a major error message. What is the Stack equivalent to 'render' in the old hardcoding?
<?php $stack = Stack::getByName('login'); $stack->display(popup_login/templates); ?>
Thank you so much, tried for ages to work this out! Stack will do me