Thanks Tobi,
I thought calc was a core feature... a very  useful thing you did there.
Your help put me a great deal ahead...


Calc does not render if the counter-Field does not exist or is empty.
I am using this as a template so I need a switch for the first Child where the counter field won't exist:

\define titelsetzen() [[$(titel)$]]
\define StundenTitel() $(titel)$ - $(counter)$
\define neueStunde()
<$list filter="[all[current]!has[counter]]">
<$vars tagthema={{!!thema}} titel={{!!title}} counter="1" >
<$button>
<$action-setfield counter="1"/>
<$action-sendmessage
  $message="tm-new-tiddler"
  text={{$:/MetaTabs/MusterStunde}}
  thema={{!!thema}} seminar={{!!seminar}}
  title=<<StundenTitel>>
  source=<<titelsetzen>>
  tags="Stunde"/>
Stunde hinzufügen
</$button>
</$vars>
</$list>
<$list filter="[all[current]has[counter]]">
<$button>
<$vars tagthema={{!!thema}} titel={{!!title}} counter=<<calc !!counter +1>> >
<$action-setfield counter=<<counter>>/>
<$action-sendmessage
  $message="tm-new-tiddler"
  text={{$:/MetaTabs/MusterStunde}}
  thema={{!!thema}} seminar={{!!seminar}}
  title=<<StundenTitel>>
  source=<<titelsetzen>>
  tags="Stunde"/>
Stunde hinzufügen
</$vars>
\end



Am 01.09.2016 um 08:21 schrieb Tobias Beer:
Hi Jan,

 1. Do you actually have calc @ tb5
    <http://tobibeer.github.io/tb5/#calc> installed?
 2. Did you save and reload your wiki (since it's a JavaScript module)?
 3. your $set widget openening tag appears to not have a closing ">"
      * also, you could just use one $vars widget and not use $set at all

Best wishes,

Tobias.
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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/9f6b246b-4767-4f2c-8297-64c4cf3d0fae%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/9f6b246b-4767-4f2c-8297-64c4cf3d0fae%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/57C7F433.6050205%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to