<<tabs tabID
"tab1 label" "tab1 tooltip" <<tiddler MyMacro with:"parameter">>
"tab2 label" "tab2 tooltip" "tiddler2"
>>
Based on what seemed a promising discussion (http://groups.google.com/
group/tiddlywiki/browse_thread/thread/5aa73a7941df3cf0/
d4f2ed179997e962?lnk=gst&q=tabs+macro#d4f2ed179997e962) [though the
request there was the opposite, to embed the tabs macro within
newTiddler], I tried enclosing the tiddler macro expression in quotes,
breaking up the closing >> into '>' + '>', and enclosing the whole
expression in {{ }}, but nothing has worked. Can anyone help me out?
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
Basically, it consists of a tiddler [[project 1]] which is associated
with links, documents, tasks, meetings, and notes. Links and
documents are defined within [[project 1]], but tasks, meetings, and
notes are independent tiddlers tagged with [[project 1]] and their
type.
I defined a tiddler [[ProjectInfo]] with the "tabs" and "part" macros
that I hoped would bring all related information about a project into
one view. It accepts a parameter which is the project name. But as
you can see in [[TestProjectInfo]], when [[ProjectInfo]] is called
"with:[[project 1]]", the tabs are all empty, instead of displaying
what is intended.
On Mar 25, 12:20 am, Anthony Muscio <anthony.mus...@gmail.com> wrote:
> Try thehttp://tiddlywiki.abego-software.de/#PartTiddlerPluginplugin.
I would do this in tiddler [[ProjectInfo]] - however it doesn't seem
to work in your tw??!! Maybe theres a conflict with the
parttiddlerplugin - or we found a new bug in TW 2.6??
I have an (overly complicated (I know - but it works)) example, where
I use all kinds of macros in tabs here: http://stormp.tiddlyspot.com/#Tr%C3%A6Manager
<<tabs txtProjectInfo
'Tasks' 'Project tasks' [[ProjectInfo##Tasks]]
'Links' 'Project-related links' [[ProjectInfo##Links]]
'Documents' 'Important documents' ProjectInfo##Documents
'Minutes' 'Meeting minutes' ProjectInfo##Minutes
'Notes' 'Project notes' ProjectInfo##Notes
>>
/%
!Tasks
<<matchTags *%0 "" "$1" AND task>>
!end
!Links
<<tiddler [[$1##Links]]>>
!end
!Documents
<<tiddler [[$1##Documents]]>>
!end
!Minutes
<<matchTags *%0 "" "$1" AND meeting>>
!end
!Notes
<<matchTags *%0 "" "$1" AND note>>
!end %/
Regards Måns Mårtensson
I uploaded both versions for people to play with. I removed
PartTiddlerPlugin from the slices example to rule out an interaction
with MatchTagsPlugin. Could there be an issue with MatchTagsPlugin?
http://dl.dropbox.com/u/4462381/example_using_slices.html
http://dl.dropbox.com/u/4462381/example_using_parts.html
Please try it out
Regards Måns Mårtensson
On 25 Mar., 22:33, Saverio <saverio.mavig...@gmail.com> wrote:
> I tried before using PartTiddlerPlugin, but was only partially
> successful, hence my original post. The tabs that reference the
> slices correctly display, but not the tabs that are populated by the
> matchTags macro.
>
> I uploaded both versions for people to play with. I removed
> PartTiddlerPlugin from the slices example to rule out an interaction
> with MatchTagsPlugin. Could there be an issue with MatchTagsPlugin?
>
The 'with-argument' doesn't seem to work inside the tabs macro *but*
it does outside - therefore you can do this*1 - and put it in the
viewtemplate*2 to be shown in tiddlers tagged with project, if you
implement ie HideWhenPlugin:
*1 [[ProjectInfo]]
<<tabs txtFavourite
Tasks 'Project tasks' "ProjectInfo##Tasks"
Links 'Project-related links' "ProjectInfo##Links"
Documents 'Important documents' "ProjectInfo##Documents"
Minutes 'Meeting minutes' "ProjectInfo##Minutes"
Notes 'Project notes' "ProjectInfo##Notes"
>>
/%
!Tasks
<<tiddler ProjectInfo##tasks with: {{tiddler.title}}>>
!end
!tasks
<<matchTags *%0 "" "$1" AND task>>
!end
!Links
<<tiddler ProjectInfo##links with: {{tiddler.title}}>>
!end
!links
<<tiddler [[$1##Links]]>>
!end
!Documents
<<tiddler ProjectInfo##documents with: {{tiddler.title}}>>
!end
!documents
<<tiddler [[$1##Documents]]>>
!end
!Minutes
<<tiddler ProjectInfo##minutes with: {{tiddler.title}}>>
!end
!minutes
<<matchTags *%0 "" "$1" AND meeting>>
!end
!Notes
<<tiddler ProjectInfo##notes with: {{tiddler.title}}>>
!end
!notes
<<matchTags *%0 "" "$1" AND note>>
!end %/
*2
[[ViewTemplate]]
<div class='tab' macro='tiddler ProjectInfo'></div>
It actually works :-)
Regards Måns Mårtensson
Check out the tiddler [[project 1]] and the ViewTemplate
Regards Måns Mårtensson
Regards Måns Mårtensson
On Mar 26, 3:05 am, Anthony Muscio <anthony.mus...@gmail.com> wrote:
> I am doing something very similar.
>
> I achieved this using the inline tabs plugin
On Mar 26, 3:27 am, Måns <humam...@gmail.com> wrote:
> Hi again
>
> The 'with-argument' doesn't seem to work inside the tabs macro *but*
> it does outside - therefore you can do this*1 - and put it in the
> viewtemplate*2 to be shown in tiddlers tagged with project
<<tabs projectInfo
"Tasks" "Project tasks" ProjectInfo##Tasks
"Links" "Project-related links" {{tiddler.title+'##Links'}}
"Documents" "Important documents" {{tiddler.title + '##Documents'}}
"Minutes" "Meeting minutes" ProjectInfo##Minutes
"Notes" "Project notes" ProjectInfo##Notes
>>
/%
!Tasks
<<matchTags *%0 "" {{tiddler.title}} AND task>>
!Minutes
<<matchTags *%0 "" {{tiddler.title}} AND meeting>>
!Notes
<<matchTags *%0 "" {{tiddler.title}} AND note>>
!end
%/