Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Custom templates are not used when subclassing #29

Open
daanjipping opened this issue Jun 10, 2015 · 1 comment
Open

Custom templates are not used when subclassing #29

daanjipping opened this issue Jun 10, 2015 · 1 comment

Comments

@daanjipping
Copy link

My custom templates are not used when subclassing the apostrophe-snippets module.
Followed the documentation at http://apostrophenow.org/tutorials/snippets/subclassing-snippets.html

In my app.js:

modules: {
   ... modules ...
    'apostrophe-snippets': {},
    'blocks': {
      extend: 'apostrophe-snippets',
      name: 'blocks',
      label: 'Blocks',
      instance: 'block',
      instanceLabel: 'Block',
      addFields: [
        {
          name: 'url',
          type: 'url',
          label: 'URL'
        }
      ]
    }
  },

Template views/pages/home.html:

{{ aposBlockMenu({ edit: permissions.admin }) }}
{{ aposArea(page, 'content2', { limit: 2 }) }}

Location of custom templates which are not included:
lib/modules/blocks/views/index.html
lib/modules/blocks/views/show.html

@boutell
Copy link

boutell commented Jun 10, 2015

Want to drop a link to a fork of the sandbox that reproduces the problem?

On Wed, Jun 10, 2015 at 5:01 AM, Daan Jipping notifications@github.com
wrote:

My custom templates are not used when subclassing the apostrophe-snippets
module.
Followed the documentation at
http://apostrophenow.org/tutorials/snippets/subclassing-snippets.html

In my app.js:

modules: {
... modules ...
'apostrophe-snippets': {},
'blocks': {
extend: 'apostrophe-snippets',
name: 'blocks',
label: 'Blocks',
instance: 'block',
instanceLabel: 'Block',
addFields: [
{
name: 'url',
type: 'url',
label: 'URL'
}
]
}
},

Template views/pages/home.html:

{{ aposBlockMenu({ edit: permissions.admin }) }}
{{ aposArea(page, 'content2', { limit: 2 }) }}

Location of custom templates which are not included:
lib/modules/blocks/views/index.html
lib/modules/blocks/views/show.html


Reply to this email directly or view it on GitHub
#29.

*THOMAS BOUTELL, *DEV & OPS
P'UNK AVENUE | (215) 755-1330 | punkave.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants