Enhancement suggestion
Permalink Browser Info Environment
We found that we needed pages NOT excluded from nav for BreadCrumbs, but did want them excluded from MegaMenu.
I added a page attribute "exclude_from_meganav". Allowing us to chose not to exclude from nav but still exclude from MegaMenu. It was a one line change in your block controller.
From:
public function excludeFromNavViaAttribute($c)
{
return $c->getAttribute('exclude_nav');
}
To:
public function excludeFromNavViaAttribute($c)
{
return ($c->getAttribute('exclude_from_meganav') || $c->getAttribute('exclude_nav'));
}
Of course you will want to create that page attribute during package install.
HTH,
Sean
I added a page attribute "exclude_from_meganav". Allowing us to chose not to exclude from nav but still exclude from MegaMenu. It was a one line change in your block controller.
From:
public function excludeFromNavViaAttribute($c)
{
return $c->getAttribute('exclude_nav');
}
To:
public function excludeFromNavViaAttribute($c)
{
return ($c->getAttribute('exclude_from_meganav') || $c->getAttribute('exclude_nav'));
}
Of course you will want to create that page attribute during package install.
HTH,
Sean
Type: | Pre-Sale |
---|---|
Status: | In Progress |