Does it work in a stack?
Permalink Browser Info Environment
Does this add-on works in stack?
I need to block certain countries from accessing certain pages, and I want to hardcode a stack into a page template to avoid having to manually insert into every affected page (and make changes faster). Will this add-on work in a hardcoded stack?
Thanks in advance.
I need to block certain countries from accessing certain pages, and I want to hardcode a stack into a page template to avoid having to manually insert into every affected page (and make changes faster). Will this add-on work in a hardcoded stack?
Thanks in advance.
Type: | Pre-Sale |
---|---|
Status: | In Progress |
How do I hard code this to a page? Thanks
Hi
You can hard code a block, here is an example:
Hope that helps.
JZ
You can hard code a block, here is an example:
<?php $mainnav = BlockType::getByHandle('autonav'); $mainnav->controller->displayPages = 'top'; $mainnav->controller->orderBy = 'display_asc'; $mainnav->controller->displaySubPages = 'none'; $mainnav->render('view'); ?>
Hope that helps.
JZ
Thanks JZ
I know how to hard code an auto nav block, I was wondering what the settings are for hardcoding the country redirect block. Thanks
I know how to hard code an auto nav block, I was wondering what the settings are for hardcoding the country redirect block. Thanks
Hi
There's only one attribute that you need to fill up and it's
Does that help?
JZ
There's only one attribute that you need to fill up and it's
$this->redirectcode
Does that help?
JZ
Thanks for your message. Yes this will definitely work in a stack and hard code as well.
Hope that helps.
JZ