silverstripe / silverstripe-cms

Silverstripe CMS - this is a module for Silverstripe Framework rather than a standalone app. Use https://github.com/silverstripe/silverstripe-installer/ to set this up.
http://silverstripe.org/
BSD 3-Clause "New" or "Revised" License
515 stars 333 forks source link

[2012-05-03] Add API for creating new top-level CMS page tabs #426

Open silverstripe-issues opened 11 years ago

silverstripe-issues commented 11 years ago

created by: @sminnee (sminnee) assigned to: @chillu (ischommer) created at: 2012-05-03 original ticket: http://open.silverstripe.org/ticket/7268


Right now the top level tabs in the CMS (Content, Settings, History) are hardcoded.

We should have an API for adding new ones. Note that, right now, the Content and Settings tabs are coming from different field lists, and that's fine. There should just be some kind of overridable method on SiteTree that returns a list of the tabs, and their corresponding Ajax URLs.

Ideally, creating a simple new tab would only require defining a field list method, and not a complete Ajax action.

Marking as a critical enhancement as it will be awkward if this isn't available in 3.0 and people start hacking their own solutions.

silverstripe-issues commented 11 years ago

comment by: @chillu (ischommer) created at: 2012-05-09


Started working on this as a followup on completing http://open.silverstripe.org/ticket/7261 . Basic idea is to use a TabSet through LeftAndMain->ContentTabs(), extend the core Tab class with setLink(), custom template support, and configurable attributes - as we need all three for the lazy loading tabs. We already have a CMSTabSet.ss template which just renders the tab nav menu, not the content (which is taken care of by LeftAndMain_EditForm.ss). Depending on how much markup changes we can accommodate easily, we might need a second template extending TabSet.ss.

silverstripe-issues commented 11 years ago

comment by: @sminnee (sminnee) created at: 2012-06-05


Milestone dropped; this might end up shifting to 3.1...

tractorcow commented 7 years ago

Probably will be addressed / made obsolete with 5.0, hopefully with react CMS pages section. :)