[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-09-06 Thread TonyM
Richard,

That is the best answer anyone has given me to a tiddlywiki question - 
EVER. It supports the adage "the best way to learn is to teach" and it give 
me the information I need to set up a more structuresd solution to the 
original problem along with a deeper understanding to solve as yet unasked 
Questions.

Great work,

Dont hesitate to ask for my help developing material.

Regards
Tony

On Wednesday, 6 September 2017 14:45:09 UTC+10, RichardWilliamSmith wrote:
>
> Hi Tony,
>
> Don't know if you ever solved this but better late than never if not. I 
> hope you don't mind but I used it as an example on my new site (I plan to 
> write a series of tutorials covering stuff like this) 
> https://www.didaxy.com/selectively-hiding-the-edit-button-on-tiddlers and 
> the explanation's there along with a "tl;dr"
>
> Basically...
>
> find $:/core/ui/ViewTemplate/title and swap this chunk
>
> <$list 
> filter="[all[shadows+tiddlers]tag[~$:/tags/ViewToolbar]!has[draft.of]]" 
> variable="listItem"><$reveal type="nomatch" state=<> 
> text="hide"><$transclude tiddler=<>/>
>
>
>
> for this chunk
>
> <$list filter="[all[current]tag[noedit]]"> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] 
>> -[[$:/core/ui/Buttons/edit]]" variable="listItem"><$reveal type="nomatch" 
>> state=<> text="hide"><$transclude 
>> tiddler=<>/>  <$list 
>> filter="[all[current]!tag[noedit]]"> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" 
>> variable="listItem"><$reveal type="nomatch" state=<> 
>> text="hide"><$transclude tiddler=<>/> 
>>
>
> And then tag tiddlers "noedit" to hide their edit control. Obviously, make 
> sure you back up your work first.
>
> The longer instructions explain how I would go about doing this from 
> scratch. Please let me know if you find a mistake.
>
> Regards,
> Richard
>
>
>
> On Thursday, August 24, 2017 at 3:37:53 PM UTC+10, TonyM wrote:
> Folks,
>
> Can someone please help me take the final step here, to somehow only hide 
> or move to more, the edit button in the tool bar, and not in its other uses 
> within my tiddler?
>
> Or should I clone the edit tiddler button and use that in the tiddlers and 
> Sub Tiddlers?
>
> Thanks in Advance
>
>
> On Sunday, August 20, 2017 at 12:25:48 PM UTC+10, TonyM wrote:
> Thanks Eric,
>
>
> That is most of the way, the toggle hides the image (rather than the 
> button) so I am left with a small circle (perhaps because I choose the 
> buttons with boarders) that looks like this 
>
>
>
>
> 
>
> Which actually would be fine, except I use the Edit Image in the "locked" 
> tiddlers to allow edit of its sub-tiddlers.
>
>
>
>
> 
> So using this Hide Button Image I loose these buttons visibility as well.
>
>
> I have also ensured a checkbox toggle of the noedit tag is available in 
> "locked" tiddlers, as I am only trying to obscure not disable edit.
>
>
> This is however a great start and I will go from here unless you know 
> another approach?
>
>
> Thanks
> Tony
>
>
>
>
>
> On Sunday, August 20, 2017 at 10:04:31 AM UTC+10, Eric Shulman wrote:
> On Saturday, August 19, 2017 at 4:42:53 PM UTC-7, TonyM wrote:
> It is the CSS I do not know how to do it. Selective is the key. Thanks for 
> validating the approach, but I do not know how to start.
>
>
>
>
> 1) create a tiddler, e.g [[noedit_stylesheet]], tagged with 
> $:/tags/Stylesheet, containing:
>
> .tc-tagged-noedit .tc-image-edit-button { display:none; }
>
> 2) edit any desired tiddler, add the tag "noedit", press "done" (the 
> checkmark button)
>
>
> Note: after you add the tag and press done, you won't be able to edit that 
> tiddler anymore, so you won't be able to remove the tag you just added. To 
> edit "locked" tiddlers, you will need to disable the stylesheet definition 
> (by removing the $:/tags/Stylesheet tag from the stylesheet definition 
> tiddler). Here's a quick checkbox that will toggle the stylesheet tag for 
> you:
>
>
>
> <$checkbox tiddler="noedit_stylesheet" tag="$:/tags/Stylesheet"> toggle 
> "noedit" 
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com - "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki: The Missing Manuals
>
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/228c284f-a14f-4c9c-a9ba-54d3708aceb7%40googlegroups.com.
For more options, visit https://groups.google.co

[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-09-05 Thread RichardWilliamSmith
Hi Tony,

Don't know if you ever solved this but better late than never if not. I 
hope you don't mind but I used it as an example on my new site (I plan to 
write a series of tutorials covering stuff like this) 
https://www.didaxy.com/selectively-hiding-the-edit-button-on-tiddlers and 
the explanation's there along with a "tl;dr"

Basically...

find $:/core/ui/ViewTemplate/title and swap this chunk

<$list 
filter="[all[shadows+tiddlers]tag[~$:/tags/ViewToolbar]!has[draft.of]]" 
variable="listItem"><$reveal type="nomatch" state=<> 
text="hide"><$transclude tiddler=<>/>



for this chunk

<$list filter="[all[current]tag[noedit]]"> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] 
> -[[$:/core/ui/Buttons/edit]]" variable="listItem"><$reveal type="nomatch" 
> state=<> text="hide"><$transclude 
> tiddler=<>/>  <$list 
> filter="[all[current]!tag[noedit]]"> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" 
> variable="listItem"><$reveal type="nomatch" state=<> 
> text="hide"><$transclude tiddler=<>/> 
>

And then tag tiddlers "noedit" to hide their edit control. Obviously, make 
sure you back up your work first.

The longer instructions explain how I would go about doing this from 
scratch. Please let me know if you find a mistake.

Regards,
Richard



On Thursday, August 24, 2017 at 3:37:53 PM UTC+10, TonyM wrote:
Folks,

Can someone please help me take the final step here, to somehow only hide 
or move to more, the edit button in the tool bar, and not in its other uses 
within my tiddler?

Or should I clone the edit tiddler button and use that in the tiddlers and 
Sub Tiddlers?

Thanks in Advance


On Sunday, August 20, 2017 at 12:25:48 PM UTC+10, TonyM wrote:
Thanks Eric,


That is most of the way, the toggle hides the image (rather than the 
button) so I am left with a small circle (perhaps because I choose the 
buttons with boarders) that looks like this 





Which actually would be fine, except I use the Edit Image in the "locked" 
tiddlers to allow edit of its sub-tiddlers.




So using this Hide Button Image I loose these buttons visibility as well.


I have also ensured a checkbox toggle of the noedit tag is available in 
"locked" tiddlers, as I am only trying to obscure not disable edit.


This is however a great start and I will go from here unless you know 
another approach?


Thanks
Tony





On Sunday, August 20, 2017 at 10:04:31 AM UTC+10, Eric Shulman wrote:
On Saturday, August 19, 2017 at 4:42:53 PM UTC-7, TonyM wrote:
It is the CSS I do not know how to do it. Selective is the key. Thanks for 
validating the approach, but I do not know how to start.




1) create a tiddler, e.g [[noedit_stylesheet]], tagged with 
$:/tags/Stylesheet, containing:

.tc-tagged-noedit .tc-image-edit-button { display:none; }

2) edit any desired tiddler, add the tag "noedit", press "done" (the 
checkmark button)


Note: after you add the tag and press done, you won't be able to edit that 
tiddler anymore, so you won't be able to remove the tag you just added. To 
edit "locked" tiddlers, you will need to disable the stylesheet definition 
(by removing the $:/tags/Stylesheet tag from the stylesheet definition 
tiddler). Here's a quick checkbox that will toggle the stylesheet tag for 
you:



<$checkbox tiddler="noedit_stylesheet" tag="$:/tags/Stylesheet"> toggle 
"noedit" 

enjoy,
-e
Eric Shulman
TiddlyTools.com - "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals



-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f24eb0a1-d389-411e-9680-b89b93980641%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-08-23 Thread TonyM
Folks,

Can someone please help me take the final step here, to somehow only hide 
or move to more, the edit button in the tool bar, and not in its other uses 
within my tiddler?

Or should I clone the edit tiddler button and use that in the tiddlers and 
Sub Tiddlers?

Thanks in Advance


On Sunday, August 20, 2017 at 12:25:48 PM UTC+10, TonyM wrote:
>
> Thanks Eric,
>
> That is most of the way, the toggle hides the image (rather than the 
> button) so I am left with a small circle (perhaps because I choose the 
> buttons with boarders) that looks like this 
>
>
> 
>
> Which actually would be fine, except I use the Edit Image in the "locked" 
> tiddlers to allow edit of its sub-tiddlers.
>
>
> 
> So using this Hide Button Image I loose these buttons visibility as well.
>
> I have also ensured a checkbox toggle of the noedit tag is available in 
> "locked" tiddlers, as I am only trying to obscure not disable edit.
>
> This is however a great start and I will go from here unless you know 
> another approach?
>
> Thanks
> Tony
>
>
>
>
> On Sunday, August 20, 2017 at 10:04:31 AM UTC+10, Eric Shulman wrote:
>>
>> On Saturday, August 19, 2017 at 4:42:53 PM UTC-7, TonyM wrote:
>>>
>>> It is the CSS I do not know how to do it. Selective is the key. Thanks 
>>> for validating the approach, but I do not know how to start.
>>>
>>>
>> 1) create a tiddler, e.g [[noedit_stylesheet]], tagged with 
>> $:/tags/Stylesheet, containing:
>> .tc-tagged-noedit .tc-image-edit-button { display:none; }
>>
>> 2) edit any desired tiddler, add the tag "noedit", press "done" (the 
>> checkmark button)
>>
>> Note: after you add the tag and press done, you won't be able to edit 
>> that tiddler anymore, so you won't be able to remove the tag you just 
>> added.  To edit "locked" tiddlers, you will need to disable the stylesheet 
>> definition (by removing the $:/tags/Stylesheet tag from the stylesheet 
>> definition tiddler).  Here's a quick checkbox that will toggle the 
>> stylesheet tag for you:
>>
>> <$checkbox tiddler="noedit_stylesheet" tag="$:/tags/Stylesheet"> toggle 
>> "noedit" 
>>
>> enjoy,
>> -e
>> Eric Shulman
>> TiddlyTools.com - "Small Tools for Big Ideas!" (tm)
>> InsideTiddlyWiki: The Missing Manuals
>>
>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e486f28b-cdfb-420b-8325-f612215d148c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-08-19 Thread TonyM
Thanks Eric,

That is most of the way, the toggle hides the image (rather than the 
button) so I am left with a small circle (perhaps because I choose the 
buttons with boarders) that looks like this 



Which actually would be fine, except I use the Edit Image in the "locked" 
tiddlers to allow edit of its sub-tiddlers.


So using this Hide Button Image I loose these buttons visibility as well.

I have also ensured a checkbox toggle of the noedit tag is available in 
"locked" tiddlers, as I am only trying to obscure not disable edit.

This is however a great start and I will go from here unless you know 
another approach?

Thanks
Tony




On Sunday, August 20, 2017 at 10:04:31 AM UTC+10, Eric Shulman wrote:
>
> On Saturday, August 19, 2017 at 4:42:53 PM UTC-7, TonyM wrote:
>>
>> It is the CSS I do not know how to do it. Selective is the key. Thanks 
>> for validating the approach, but I do not know how to start.
>>
>>
> 1) create a tiddler, e.g [[noedit_stylesheet]], tagged with 
> $:/tags/Stylesheet, containing:
> .tc-tagged-noedit .tc-image-edit-button { display:none; }
>
> 2) edit any desired tiddler, add the tag "noedit", press "done" (the 
> checkmark button)
>
> Note: after you add the tag and press done, you won't be able to edit that 
> tiddler anymore, so you won't be able to remove the tag you just added.  To 
> edit "locked" tiddlers, you will need to disable the stylesheet definition 
> (by removing the $:/tags/Stylesheet tag from the stylesheet definition 
> tiddler).  Here's a quick checkbox that will toggle the stylesheet tag for 
> you:
>
> <$checkbox tiddler="noedit_stylesheet" tag="$:/tags/Stylesheet"> toggle 
> "noedit" 
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com - "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki: The Missing Manuals
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16b0eec5-54bd-4a3e-bab1-7e107905da18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-08-19 Thread Eric Shulman
On Saturday, August 19, 2017 at 4:42:53 PM UTC-7, TonyM wrote:
>
> It is the CSS I do not know how to do it. Selective is the key. Thanks for 
> validating the approach, but I do not know how to start.
>
>
1) create a tiddler, e.g [[noedit_stylesheet]], tagged with 
$:/tags/Stylesheet, containing:
.tc-tagged-noedit .tc-image-edit-button { display:none; }

2) edit any desired tiddler, add the tag "noedit", press "done" (the 
checkmark button)

Note: after you add the tag and press done, you won't be able to edit that 
tiddler anymore, so you won't be able to remove the tag you just added.  To 
edit "locked" tiddlers, you will need to disable the stylesheet definition 
(by removing the $:/tags/Stylesheet tag from the stylesheet definition 
tiddler).  Here's a quick checkbox that will toggle the stylesheet tag for 
you:

<$checkbox tiddler="noedit_stylesheet" tag="$:/tags/Stylesheet"> toggle 
"noedit" 

enjoy,
-e
Eric Shulman
TiddlyTools.com - "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals


-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8b86b39-d79d-4833-96eb-518317e795dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-08-19 Thread TonyM
Thanks Mat,

It is the CSS I do not know how to do it. Selective is the key. Thanks for 
validating the approach, but I do not know how to start.

Thanks
Tony

On Saturday, August 19, 2017 at 11:43:22 PM UTC+10, Mat wrote:
>
> 1) Open the controlpanel and go to Appearence > Toolbars > ViewToolbar and 
> uncheck the box for edit
> 2) have a nice cup of coffee
>
> ;-)  ;-)  ;-)
>
> Selective is another matter. Would it be OK if you tagged those specific 
> tiddlers? In that case it is achievable via css.
>
> <:-)
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/42981d42-6358-4fba-b43c-65e770025165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Hide Tiddler Toolbar items on select tiddlers

2017-08-19 Thread Mat
1) Open the controlpanel and go to Appearence > Toolbars > ViewToolbar and 
uncheck the box for edit
2) have a nice cup of coffee

;-)  ;-)  ;-)

Selective is another matter. Would it be OK if you tagged those specific 
tiddlers? In that case it is achievable via css.

<:-)

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/95f6b3e1-36e8-4622-b766-ab35c55addbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.