Thanks Mark, this really works fine...for the first part.

Is there a way to add seven days to a date given in a field. All the solutions I found work with the <<now>> macro or something similar. I would like to enter a start date and then generate a list of the further dates tipping on a button...

Thanks Jan



Am 17.08.2017 um 18:13 schrieb 'Mark S.' via TiddlyWiki:
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:HelloTheredateField: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] <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/8de9e34d-39da-4818-b4f9-7c2ddb11bec6%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/8de9e34d-39da-4818-b4f9-7c2ddb11bec6%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/59961B33.6010509%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to