Creating custom EditTemplates for tiddler with different tags

Hi,

I am currently struggling big to create a custom plugin according to me idea:

I want to create custom EditTemplates for different tiddlers according to their tags. The default EditTemplate should sustain but be overwritten for specific tags.

I tried several ways with EditTemplateFilter, with the tags $:/tags/EditTemplate but without any success.

The only working code contains a <$list filter="[all[current]tag[XYZ]]">inside the custom EditTemplate.

But I am stuck and do not know which way will work. Do you have any suggestions? Is my idea working at all?

My main reason is to simply the EditTemplate for different types of tiddlers to create a specific kind of management system with reduced field and function in EditTemplate.

Thanks for your help and ideas.

Hi @z4ck, welcome to the talk forums!

If you are mostly looking to override the default editor section of the edit page, then these might help:

title: $:/_/my/config/EditTemplateBodyFilters/xyz
tags: $:/tags/EditTemplateBodyFilter
list-before: $:/config/EditTemplateBodyFilters/default

[tag[XYZ]then[$:/_/my/core/ui/EditTemplate/body/xyz-editor]]
title: $:/_/my/core/ui/EditTemplate/body/xyz-editor

<h2>Editor for XYZ tiddlers will go here</h2>

But I think the following means you want to do more than that:

I don’t know how to override the fields editor / type selector / tag selector. I’ve never had the need. Perhaps someone who’s done it can chime in.

You can use my suggestion by downloading the following, and dragging the resulting file onto a wiki: EditTempateBodyFilter.json (468 Bytes).