On Dec 25, 10:07 am, Shankar Swamy <[email protected]> wrote: > I am looking for some documentation on "slider" macro to understand > how my sidebars are being generated. > > In particular I am trying to understand how the following macro works: > <<slider chkSliderSidebarTabs SliderSidebarTabs>>
The <<slider>> macro doesn't actually generate the output you seeing. It simply embeds output from another tiddler, similar to the <<tiddler>> macro, except that the content is only displayed when the slider is shown. Based on the above macro, the actual *content* of the slider is contained in [[SliderSidebarTabs]]. Note that the *standard* TWCore shadow tiddler that defines the sidebar tabs is named just [[SidebarTabs]], so it would seem that you are using a customized tabset. In any event, within the standard TWCore SidebarTabs, you will find this macro: <<tabs txtMainTab "Timeline" "Timeline" TabTimeline "All" "All tiddlers" TabAll "Tags" "All tags" TabTags "More" "More lists" TabMore>> Similar to <<slider>> and <<tiddler>>, this macro also pulls it's content from other tiddlers. In this case, [[TabTimeline]], [[TabAll]], [[TabTags]], and [[TabMore]], which are also defined as TWCore shadow tiddlers. Examining [[TabTimeline]], shows a single invocation of a TWCore macro: <<timeline>> This is the macro that generates a time-ordered list of tiddlers as output. To find the handler for this macro in the TWCore code, view your TW file in a text editor, and search for "config.macros.timeline". Examining that code, we can see that the handler() function sets up a DIV and then invokes the macro's refresh() function to loop over all the tiddlers in the document and generate the date-ordered output you see. To make the 'group' headings into links, you will need to re- write some code in the refresh() function. However, the specific changes you need are beyond the scope of this posting. After you've had a look at that code and given a try at making changes, if you have more technical questions, please post them here. enjoy, -e -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
