verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

Default templates for node types #212

Open jan-dh opened 1 year ago

jan-dh commented 1 year ago

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:

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

engram-design commented 1 year ago

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