You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to work on #286, but I felt a bit strange of having three possible value that could be sorted or filtered.
I think that the majority of uses cases of templates is covered by setting BODY, CSS and JS at the same time.
Maybe, the BODY template could be considered as the main template. Not using CSS and JS, or using another template, could be considered as an advanced template option.
This is already the one that is used to determine thumbnail and favicon.
So in the interface, CSS and JS templates could be set by default to "same as BODY" in the page edit view.
Database architecture
use the current template value to indicate that it use the same as BODY.
2.1 storing a special character like * in the CSS/or template value
2.2 using a null value
2.3 using a boolean value
adding two boolean values called something like templatecsssameasbody
The text was updated successfully, but these errors were encountered:
vincent-peugnet
changed the title
CSS and JS template "same as body" value
CSS and JS template default value "same as body"
Dec 21, 2024
Currently, I'm more in favor of the 2.2 design choice
A null could mean "this template setting is not set" ---> "because it use the main setting: BODY template" 😁
And the empty string would mean "do not use any template for CSS/JS".
I wanted to work on #286, but I felt a bit strange of having three possible value that could be sorted or filtered.
I think that the majority of uses cases of templates is covered by setting BODY, CSS and JS at the same time.
Maybe, the BODY template could be considered as the main template. Not using CSS and JS, or using another template, could be considered as an advanced template option.
This is already the one that is used to determine thumbnail and favicon.
So in the interface, CSS and JS templates could be set by default to "same as BODY" in the page edit view.
Database architecture
2.1 storing a special character like
*
in the CSS/or template value2.2 using a
null
value2.3 using a boolean value
templatecsssameasbody
The text was updated successfully, but these errors were encountered: