Thank you very much Eric,

comments in-line

Cheers

/Joe



On Sunday, 9 December 2018 17:05:02 UTC+1, Eric Shulman wrote:
>
> On Sunday, December 9, 2018 at 2:27:51 AM UTC-8, joearms wrote:
>>
>> I want to format tiddlers with a specific tag in a particular way.
>>
>> I have made...a tiddler called  test_formatting with tag 
>> $:/tags/ViewTemplate
>> and content... When I do this the text of the tiddler 1 is rendered twice
>>
>> How can I get the content to be rendered once inside the body of the 
>> $list macro?
>>
>
> The problem is that the custom ViewTemplate doesn't *replace* the standard 
> view... it ADDS to it to the end of the standard view.  Thus, you see the 
> tiddler content twice: first as standard wikitext output (the normal 
> tiddler display) then followed by your custom-formatted output.
>

How do you know this? - did you read some code (which?) or is this 
documented someplace???

 

>
> To get the results you want, you need to suppress the standard output... 
> but only when the tiddler is tagged "erlang_code".
>
> One quick way to achieve this is to use CSS to hide the standard tiddler 
> "body" element.  Just put the following CSS into a tiddler tagged with 
> "$:/tags/Stylesheet":
>
> [data-tags*="erlang_code"] .tc-tiddler-body { display:none; }
>
> That should fix your problem.  Let me know how it goes.
>
>
It worked - 
 

> enjoy,
>

I did :-)
 

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



>
>> Cheers
>>
>> /Joe
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/247089d9-9b74-4a82-ad9e-dd129449f0e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to