vizy icon indicating copy to clipboard operation
vizy copied to clipboard

Default templates for node types

Open jan-dh opened this issue 1 year ago • 1 comments

What are you trying to do?

There are a lot of node types that come out of the box with vizy, which is super nice. It is however a little bit tricky to tweak these default node types. For example theimage node. I would love to be able to adjust this so I can use an image macro for example on this. The only option I have now is to either:

  • Add my own image node type through a config file
  • Loop over all the node types & include a custom template on this specific node type.

The looping part can be a little bit cumbersome. I love the way you can choose your template for new nodes you create in the CMS and I think they are a really elegant solution.

What's your proposed solution?

Define a base folder for Vizy, like you point to the specific template folders for new node types. You could simply match a template with the name the same as the node handle to overwrite the default ones. I know some plugins also give you a link to these default templates somewhere in the vendor folder, where you can start from by copying them & tweaking them to your likes.

Additional context

No response

jan-dh avatar Apr 20 '23 12:04 jan-dh

Agreed, and related https://github.com/verbb/vizy/issues/29

engram-design avatar Apr 20 '23 21:04 engram-design