#35 - Full breadcrumb customisation on frontend, via XML

Identifier #35
Issue type Feature request or suggestion
Title Full breadcrumb customisation on frontend, via XML
Status Completed
Tags

Risk: Core rearchitecting (custom)

Risk: Major rearchitecting (custom)

Skills: Lead programming (custom)

Type: Cross-cutting feature (custom)

Handling member Chris Graham
Addon core
Description Re-architect Composr breadcrumbs to go through hooks (probably by extending content_meta_aware hooks), so a screen loads up breadcrumbs via calling up a hook. Then put a layer of XML configuration that can "mash up" the breadcrumb services the collection of hooks can do.

See 'Additional Information' for an example XML file used to set things.

This needs documenting, and probably needs an editing interface (simple textarea, although we may syntax highlight it). If we give it an editing interface we should give fields.xml one also.
Steps to reproduce

Additional information <breadcrumbs>
<!-- Default -->
<chain for="download">
<segment type="natural_category_tree" />
</chain>

<!-- Default -->
<chain for="download_category">
<segment type="natural_category_tree" />
</chain>

<!-- Custom example -->
<chain for="download" id="3">
<segment type="own_category_tree" />
<segment type="category_tree" context_type="galleries">ships</segment>
</chain>

<!-- Custom example -->
<chain for="gallery" id="missions">
<segment type="page_link">site:ships</segment>
<segment type="page_link">site:start</segment>
</chain>
</breadcrumbs>


<breadcrumbs>
<chain for="download" id="5">
<segment type="page_link">site:stonline_downloads</segment>
</chain>

<chain for="comcode_page" id="stonline_downloads">
<segment type="page_link">site:stonline</segment>
</chain>

<chain for="comcode_page" id="stonline">
<segment type="page_link">site:start</segment>
</chain>
</breadcrumbs>


<breadcrumbs>
<chain for="download" id="5">
<segment standalone="1" type="page_link">site:stonline_downloads</segment>
<segment type="page_link">site:stonline</segment>
<segment type="page_link">site:start</segment>
</chain>

<chain for="comcode_page" id="stonline_downloads">
<segment type="page_link">site:stonline</segment>
</chain>

<chain for="comcode_page" id="stonline">
<segment type="page_link">site:start</segment>
</chain>
</breadcrumbs>


<breadcrumbs>
<chain for="download_category" id="23">
<segment type="page_link">site:stonline</segment>
</chain>

<chain for="comcode_page" id="stonline">
<segment type="page_link">site:start</segment>
</chain>
</breadcrumbs>
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated