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=<<config-title>> 
> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list>
>
>
>
> 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=<<config-title>> text="hide"><$transclude 
>> tiddler=<<listItem>>/></$reveal></$list> </$list> <$list 
>> filter="[all[current]!tag[noedit]]"> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" 
>> variable="listItem"><$reveal type="nomatch" state=<<config-title>> 
>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list> </$list>
>>
>
> 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 
>
>
>
>
> <https://lh3.googleusercontent.com/-A5S5YY_i3Lw/WZjxKsIvxgI/AAAAAAAAKFs/mGPOoqpq7e4TpJ76EX2Ebqgystk8mb2GACLcBGAs/s1600/hideedit.jpg>
>
> Which actually would be fine, except I use the Edit Image in the "locked" 
> tiddlers to allow edit of its sub-tiddlers.
>
>
>
>
> <https://lh3.googleusercontent.com/-BxJpxaWdqqk/WZjyJ27eY5I/AAAAAAAAKF4/cNmktytVZccAITXo4xwUtnN2c91-R5bcACLcBGAs/s1600/EditSubTiddler.jpg>
> 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" </$checkbox>
>
> 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 [email protected].
To post to this group, send email to [email protected].
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.com/d/optout.

Reply via email to