This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi,
I'm currently using the static pages component with static breadcrumbs.
The issue I'm having is that it seems the only way to pick up the breadcrumbs is to have the pages as subpages of another page, which works fine. However, the parent page is one I would like to have as a non-static page, this means it no longer picks up the breadcrumbs.
My structure is: Sectors > Commercial
Where Sectors is a CMS page and commercial is a static page.
Any ideas?
IMO, they should really add breadcrumbs (object) and breadcrumb (string) with parent selector and checkboxes similar to breadcrumbs plugin into CMS pages "out of the box"... or even to page base class
i would added url (starting with "/") => slug (not contains leading "/", or "/" at all) logic transition, so breadcrumbs can be generated from parents (but only as option!)
but this is out of the topic i guess...
Add breadcrumbs component to your layout. Add it to your component wich connect with cms page, for example:
public function onRun() { $reference = new MenuItemReference(); $reference->title = 'test'; $reference->url = '/promo'; $reference->isActive = true; $reference->viewBag = null; $reference->code = null; $breadcrumbs[] = $reference; $this->breadcrumbs = $this->page['breadcrumbs'] = $breadcrumbs; }
1-4 of 4