I have the exact same problem. But I had a hard time matching line numbers in my file, and then it also broke my styling.
This is the diff of my fix. I added the path of the page to an array, and then checked all following page to see if they were in the path of the excluded page.
+ $exclude = array();
foreach($aBlocks as $ni) {
$_c = $ni->getCollectionObject();
- if (!$_c->getCollectionAttributeValue('exclude_nav')) {
+ if ($_c->getCollectionAttributeValue('exclude_nav')) {
+ //Add the path of the excluded page to an array.
+ $exclude[] = $ni->getURL();
+ continue;
+ }else{
+ foreach($exclude as $excludePath){
+ //Check the path of this page against any excluded path
+ if(substr($ni->getURL(),0,strlen($excludePath)) == $excludePath)
+ {continue 2;}
+ }
This is the diff of my fix. I added the path of the page to an array, and then checked all following page to see if they were in the path of the excluded page.
--- ../../concrete/blocks/autonav/view.php 2011-10-29 11:47:59.000000000 -0700
+++ view.php 2012-02-29 20:32:43.000000000 -0800
@@ -20,9 +20,19 @@
}
}
+ $exclude = array();
foreach($aBlocks as $ni) {
$_c = $ni->getCollectionObject();
- if (!$_c->getCollectionAttributeValue('exclude_nav')) {
+ if ($_c->getCollectionAttributeValue('exclude_nav')) {
+ //Add the path of the excluded page to an array.
+ $exclude[] = $ni->getURL();
+ continue;
+ }else{
+ foreach($exclude as $excludePath){
+ //Check the path of this page against any excluded path
+ if(substr($ni->getURL(),0,strlen($excludePath)) == $excludePath)
+ {continue 2;}
+ }
$target = $ni->getTarget();