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.

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.

enjoy,
-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/dad20abf-6049-4813-9e24-7de3f44a4c87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to