Is it possible to create a section template which is in effect a custom content type.

I have been playing around with creating section templates although have met with issues with widgets actually saving (https://drupal.org/node/2192959)

What I am hoping to do it create a custom section page which in fact is either a custom content type itself or contains a custom content type within it (if that makes any sense)

To put in context I have installed sheetnode (https://drupal.org/project/sheetnode) and I can create a page with with a spreadsheet on it using the sheetnode content type.

What I would like is to be able to create contextual spreadsheets per space - as a section page

I have looked at the content widgets available and I can add an existing node its seems but cant see how I could create a new node from an existing content type

Equally I have added to the section page taxonomy and selected 'Create Sheetnode' but when I create the section page from within oa a new sheetnode is not create just a basic page

I am not sure if my expectations are wrong, if I have missed something or if this is becasue of https://drupal.org/node/2192959

Thanks

Comments

Argus’s picture

I added a custom content type and it's Section template as follows:

  1. Create the new content type
  2. Add both Space and Section Entity Reference (og_group_ref and oa_section_ref), you can use OG field settings (/admin/config/group/fields) to do this, or add the fields in the content type directly.
  3. Create a new Section layout at /admin/openatrium/section-templates by cloning one of the available Section templates
  4. Add a new Section type to the taxonomy at /admin/structure/taxonomy/section_type/add, select the Section template and the new content type you just created

Although the Section template seems currently bugged as described in #2192959: Changes to section templates not saving that will only be temporary.

agilityweb’s picture

Thanks once again Argus.
I hadnt been adding the entity references, however it still doesnt work - so not sure if a schoolboy error my end or another case of the section template not saving bug.

Will roll back to 2.12 I think

mpotter’s picture

Status: Active » Fixed

Section templates are fixed in 2.15 so the method mentioned in #1 should be working now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.