Mark,
I am not sure why I reverted your example as well, Thanks that works, arghh
TonyM
On Friday, July 28, 2017 at 1:44:43 PM UTC+10, Mark S. wrote:
>
> I'm not sure why you reverted my example. Using macros within macros has
> proven unreliable to me, though I'm sure some of the gurus know exactly
> when it will work if they would ever explain it.
>
> In any event, when I reverted to my example, and used (as the tabs
> template, but it worked just as well pasting into individual tabs), it
> seemed to work fine.
>
> I've attached my sample. After importing, open TabVars and as you'll see
> the contents of the tiddler specified by the concatenated name gets
> transcluded.
>
> Good luck!
> Mark
>
>
> On Thursday, July 27, 2017 at 7:43:27 PM UTC-7, TonyM wrote:
>>
>> Mark s,
>>
>> Thanks for the suggestion, its appreciated. I did go down that path, but
>> I tried again, the template "subTiddlerView" now reads;
>>
>> \define subtiddler() <<currentTiddler>> - <<currentTab>>
>>
>> <$tiddler tiddler=<<subtiddler>>>
>> <$transclude mode="block" />
>> </$tiddler>
>>
>>
>> <<subtiddlertab $(currentTab)$>>
>>
>> Unfortunately this still does not work, both <<subtiddler>> and
>> $(currentTab)$ give the required tiddler name when used/displayed and the
>> latter macro <<subtiddlertab $(currentTab)$>> works as required, but
>> nothing I seem to throw at the transclude seems to work. I have had it
>> working in another case where I use the tab
>> filter "[prefix[$(currentTiddler)$ - ]] +[sort[]]" to display the existing
>> (only) subtiddlers tiddlers.
>>
>>
>>
>>
>> On Friday, July 28, 2017 at 12:01:26 AM UTC+10, Mark S. wrote:
>>>
>>> What you're trying to do is concatenate text and pass it to a
>>> transclusion. Almost always when you want to concatenate you need a macro.
>>> It might be something as simple as:
>>>
>>> \define fulltitle() $(currentTiddler)$-$(currentTab)$
>>>
>>> Good luck,
>>> Mark
>>>
>>> On Thursday, July 27, 2017 at 3:01:48 AM UTC-7, TonyM wrote:
>>>>
>>>> Hi Folks,
>>>>
>>>> Im stumped. Some help would be appreciated.
>>>>
>>>> I have some tabs, generated using the content of a field !!objecttabs
>>>>
>>>> <$set name=objecttablist value={{!!objecttabs}}>
>>>>
>>>> @@.tabsstyle
>>>> <div>
>>>> <<tabs "$(objecttablist)$" "{{!!defaulttab}}" "" "" "subTiddlerView" >>
>>>> </div>
>>>> @@
>>>>
>>>> </$set>
>>>>
>>>> I am using the template parameter in tabs and this is my template
>>>> "subTiddlerView"
>>>>
>>>> !<<currentTiddler>> - <<currentTab>>
>>>>
>>>> <$tiddler tiddler=<<currentTab>>>
>>>> <$transclude mode="block" />
>>>> </$tiddler>
>>>>
>>>> <<subtiddlertab $(currentTab)$>>
>>>>
>>>> Because of the way I generated the Tab list <<currentTab>> does not
>>>> have the full name of the tiddlers I wish to transclude.
>>>> "<<currentTiddler>> - <<currentTab>>" does display the name of the
>>>> tiddlers I wish to Transclude.
>>>> The subsequent macro works with $(currentTab)$ = to the original items
>>>> in the original tiddlers field.
>>>>
>>>> Yet I have no idea how to pass "<<currentTiddler>> - <<currentTab>>" as
>>>> the tiddler name into a transclusion? such that the tiddlers content
>>>> apears
>>>> in the tab.
>>>>
>>>> Thanks in Advance
>>>> TonyM
>>>>
>>>>
>>>>
--
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/a9bb95c2-75bb-4987-81c1-4604e1c9cdff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.