So here is code which in a stylesheet will hide the subtitle and tags on 
tiddlers tagged simple;

[data-tags*="simple"] div.tc-subtitle { display: none; } 
div.tc-tags-wrapper { display: none; } 

It would be nice to hide the edit and more buttons as well.

Regards
Tones 

On Friday, 22 January 2021 at 09:13:14 UTC+11 TW Tones wrote:

> Folks,
>
> Thanks all for chipping in and helping  Sylvain.
>
> Nice to see the community in operation.
>
> It seems to me a modified version of Mohammads that hides tiddlers 
> subtitle and tags if the tiddler is tagged "simple" would make sense. then 
> a check box that toggles the   $:/tags/Stylesheet  tag on the style sheet 
> would activate/deactivate it as needed. With such a toggle one may also 
> hide the edit or or some toolbar buttons, depending on how the user 
> navigates, the designer can simple toggle the limited display on before 
> saving.
>
> Regards
> Tones
>
> On Thursday, 21 January 2021 at 22:55:53 UTC+11 schlechter...@gmail.com 
> wrote:
>
>> Sylvain,  Scot - thanks for feedback!
>>
>> scot schrieb am Donnerstag, 21. Jänner 2021 um 12:18:44 UTC+1:
>>
>>> Stefan,
>>> there is an example on TW-Scripts from Mohammad.
>>>
>>> https://kookma.github.io/TW-Scripts/#Apply%20Custom%20Styles%20Dynamically
>>>
>>> Scot
>>>
>>> On Thursday, 21 January 2021 at 10:24:39 UTC TW Tones wrote:
>>>
>>>> Stefan,
>>>>
>>>> As a rule the Subtitle and Tags line shows on every tiddler, as I 
>>>> understand it you don't want it to show on some specific tiddlers?
>>>>
>>>> A quick use of the browser inspect and the following style sheet added 
>>>> to a tiddler will do this (to all visible tiddlers)
>>>>
>>>> <style>
>>>> div.tc-subtitle { display: none; }
>>>> div.tc-tags-wrapper { display: none; }
>>>> </style>
>>>>
>>>> As soon as any tiddler containing the above is closed the previous 
>>>> behaviour will return.
>>>>
>>>> I am not so sure how to do this but defining a class in a style sheet 
>>>> you name in the tiddlers "class field", or a CSS method to target only 
>>>> tiddlers with a special tag  see 
>>>> https://tiddlywiki.com/#Custom%20styles%20by%20data-tags should do it.
>>>>
>>>> My CSS is not strong enough but I am sure someone like TT can help.
>>>>
>>>> Tones
>>>>
>>>>
>>>> On Thursday, 21 January 2021 at 17:55:34 UTC+11 schlechter...@gmail.com 
>>>> wrote:
>>>>
>>>>> Hello Tones,
>>>>>
>>>>> thanks for the hint, but that's not, what I want.
>>>>>
>>>>> --> for start tiddler (ToC):
>>>>> [image: Hide_in_ToC.png]
>>>>>
>>>>> Thanks for feedback
>>>>> Stefan
>>>>> TW Tones schrieb am Freitag, 8. Jänner 2021 um 00:40:02 UTC+1:
>>>>>
>>>>>> Stefan,
>>>>>>
>>>>>> Perhaps using the emptyStory message - ie when all tiddlers are 
>>>>>> closed.
>>>>>>
>>>>>> https://tiddlywiki.com/#HistoryMechanism
>>>>>>
>>>>>> Tones
>>>>>>
>>>>>> On Friday, 8 January 2021 at 04:32:38 UTC+11 schlechter...@gmail.com 
>>>>>> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> clicking the 'home' button I would like to have
>>>>>>>
>>>>>>>    - the 'start' tiddler ( Default tiddler 
>>>>>>>    <https://kookma.github.io/TW-Scripts/#%24%3A%2FDefaultTiddlers> 
>>>>>>>    with table of content) *without header informations* (tiddler 
>>>>>>>    name, creator, creation date, view tools (*except 'close'*) and 
>>>>>>>    tags
>>>>>>>    - toggle function for 'home' button 
>>>>>>>
>>>>>>> Thanks for feedback
>>>>>>> Stefan
>>>>>>>
>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f7faaa6-62a5-4bcf-89b4-8da896d42eden%40googlegroups.com.

Reply via email to