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.

Type: Pre-Sale
Status: In Progress
gd42
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi

Thanks for your message. Yes this will definitely work in a stack and hard code as well.

Hope that helps.

JZ
rosie607 replied on at Permalink Reply
rosie607
How do I hard code this to a page? Thanks
jb1 replied on at Permalink Reply
jb1
Hi

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
rosie607 replied on at Permalink Reply
rosie607
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
jb1 replied on at Permalink Reply
jb1
Hi

There's only one attribute that you need to fill up and it's
$this->redirectcode


Does that help?

JZ

concrete5 Environment Information

Not relevant.

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.