Hi Anne-Laure,

OK, that is indeed a custom view template, and it doesn’t include support for 
$:/tags/Macro/View. If you wanted to, you could add this as the first line of 
the tiddler:

\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]

Best wishes

Jeremy.

> On 20 Apr 2020, at 14:35, Anne-Laure Le Cunff <alecu...@gmail.com> wrote:
> 
> Hi Jeremy,
> 
> No, I used this tutorial <https://youtu.be/qRZeH680XWA> as I'm using TW as a 
> static website generator, so my clone looks like this:
> 
> \define folded-state()
> $:/state/folded/$(currentTiddler)$
> \end
> 
> <main role="main" class="container">
>   <div class="row">
>     <div class="col-md-8 blog-main">
>       <article class="blog-post">
>         <h1 class="blog-post-title"><$view field="title"/></h1>
>         <$transclude mode="block"/>
>       </article><!-- /.blog-post -->
>     </div><!-- /.blog-main -->
>     <aside class="col-md-4 blog-sidebar">
>       <div class="p-3 mb-3 bg-white rounded">
>         <p class="text-secondary">Last edited <$view field="modified" 
> format="date" template="DDth MMM YYYY"/></p>
>         <h3 class="mt-3">Backlinks</h3>
> <<list-links 
> filter:"[all[current]backlinks[]]+[!tag[hide]]+[!has[draft.of]]+[!is[system]sort[]]"
>  class:"list-unstyled">>
>       </div>
>     </aside><!-- /.blog-sidebar -->
>   </div><!-- /.row -->
> </main><!-- /.container -->
> 
> Maybe that's what's causing the issue. In the mean time, I decided to 
> transclude the caption instead and will add these manually, hopefully should 
> keep on working as I add notes :)
> 
> Thank you!
> 
> <main role="main" class="container">
>   <div class="row">
>     <div class="col-md-8 blog-main">
>       <article class="blog-post">
>         <h1 class="blog-post-title"><$view field="title"/></h1>
>         <$transclude mode="block"/>
>       </article><!-- /.blog-post -->
>     </div><!-- /.blog-main -->
>     <aside class="col-md-4 blog-sidebar">
>       <div class="p-3 mb-3 bg-white rounded">
>         <p class="text-secondary">Last edited <$view field="modified" 
> format="date" template="DDth MMM YYYY"/></p>
>         <h3 class="mt-3">Backlinks</h3>
> <<list-links 
> filter:"[all[current]backlinks[]]+[!tag[hide]]+[!has[draft.of]]+[!is[system]sort[]]"
>  class:"list-unstyled">>
>       </div>
>     </aside><!-- /.blog-sidebar -->
>   </div><!-- /.row -->
> </main>
> 
> On Monday, April 20, 2020 at 2:28:24 PM UTC+1, Jeremy Ruston wrote:
> Hi Anne Laure
> 
>> I created a macro but $:/tags/Macro/View doesn't work - is it because I'm 
>> using a clone of the core view template? 
>> ($:/ness_labs/template/static-view-template)
> 
> That’s strange. Does your clone still include the line "\import 
> [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]”?
> 
>> If so, which tag should I use to target it?
> 
>> It does work with just $:/tags/Macro but probably defeats the purpose.
> 
> It’ll only make a difference if you’ve got a significant number of links 
> outside of the view template (e.g. in the sidebar).
> 
> Best wishes
> 
> Jeremy,
> 
> 
>> 
>> Many thanks!
>> Anne-Laure.
>> 
>> 
>> 
>> 
>> 
>> On Monday, April 20, 2020 at 1:02:53 PM UTC+1, Jeremy Ruston wrote:
>> Hi Tony 
>> 
>> > On 20 Apr 2020, at 12:49, TonyM <anthon...@gmail.com <>> wrote: 
>> > 
>> > The transclude text is transcluding the current tiddlers text which 
>> > transcludes the current tiddlers text to infinity.... 
>> 
>> TiddlyWiki does in fact have built-in protection against infinitely 
>> recursive transclusion loops. It doesn’t (yet) have such protections for 
>> recursive macros. 
>> 
>> Best wishes 
>> 
>> Jeremy. 
>> 
>> > 
>> > Regards 
>> > Tony 
>> > 
>> > -- 
>> > 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 tiddl...@googlegroups.com <>. 
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/tiddlywiki/7c7564ed-369f-4062-8d94-d3015fad032e%40googlegroups.com
>> >  
>> > <https://groups.google.com/d/msgid/tiddlywiki/7c7564ed-369f-4062-8d94-d3015fad032e%40googlegroups.com>.
>> >  
>> 
>> 
>> -- 
>> 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 tiddl...@ <>googlegroups.com <http://googlegroups.com/>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/1fa406f3-9c31-4f73-98e2-6b737c0c7e85%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/1fa406f3-9c31-4f73-98e2-6b737c0c7e85%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> 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 
> <mailto:tiddlywiki+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/50f7c90d-fcf6-4301-ac32-60b24b265d3c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/50f7c90d-fcf6-4301-ac32-60b24b265d3c%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/C835612F-3FD7-4BB2-81B8-9BACC3A8E724%40gmail.com.

Reply via email to