The problem, I think, is that concatenation variables or parameters don't 
get passed more than one level. So you have to add them to the parameter 
call to the next macro you are calling. I added "dateField" to 
droppable-date-actions and it's invocation. After that the code becomes 
simpler, and you don't need the <$wikify>. This seems to work with

<<dropdate tag:HelloThere dateField:created>>

on the data at TiddlyWiki.com.

Code below.

Have fun,
Mark

\define droppable-date-actions(dateField)
<$action-setfield $tiddler=<<actionTiddler>> $field=$dateField$ $value={{!!
$dateField$}}/>
\end

\define dropdate(limit:"100",format:"DD MMM",subfilter:"",dateField:"date",
tag:"")
<div class="tc-timeline">
<$list filter=
"[!is[system]$subfilter$tag[$tag$]has[$dateField$]sort[$dateField$]limit[$limit$]eachday[$dateField$]]"
>
<div class="tc-menu-list-item">
<$droppable actions=<<droppable-date-actions $dateField$>>>
<$view field="$dateField$" format="date" template="$format$"/>
</$droppable>
<$list 
filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
<div class="tc-menu-list-subitem">
<$link to={{!!title}}>
<<timeline-title>>
</$link>
</div>
</$list>
</div>
</$list>
</div>
\end





On Thursday, August 17, 2017 at 7:07:37 AM UTC-7, Jan wrote:
>
> Hello, 
> I want to do a timeline to organize a course and assign dates to subjects.
>
> I started using the TimelineMacros:
>
> \define dropthisdate()
> {{$currentTiddler$!!$dateField$}}
> \end
>
> \define droppable-date-actions()
> <$wikify name="dd"  text=<<dropthisdate>> >
> <$action-setfield $tiddler=<<actionTiddler>> $field="date" $value=/>
> </$wikify>
> \end
>
> \define dropdate(limit:"100",format:"DD 
> MMM",subfilter:"",dateField:"date",tag:"")
> <div class="tc-timeline">
> <$list 
> filter="[!is[system]$subfilter$tag[$tag$]has[$dateField$]sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
> <div class="tc-menu-list-item">
> <$droppable actions=<<droppable-date-actions>>>
> <$view field="$dateField$" format="date" template="$format$"/>
> </$droppable>
> <$list 
> filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
> <div class="tc-menu-list-subitem">
> <$link to={{!!title}}>
> <<timeline-title>>
> </$link>
> </div>
> </$list>
> </div>
> </$list>
> </div>
> \end
>
> So far this does not work. 
>
> - How can I make <<dropthisdate>> to set the correct date (so far it just 
> sets "true")
>
> - Another approach would be even more practical: How can I generate a list 
> containing all dates of the fridays from october to january (for example)in 
> to put them in a field like this:
> 20180111230000000 20180118230000000
>
> Cheers Jan
>

-- 
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/8de9e34d-39da-4818-b4f9-7c2ddb11bec6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to