Måns hahe you been through >2How do I make the Text(tiddler.title+"sectionname") appear as ><<tiddler tiddler.title##sectionname>>, *NOT* to break the table it is >sucked into?? ?
On Jan 21, 1:09 pm, Måns <[email protected]> wrote: > Two more questions: > 1How do I change title to reflect another value than title *AND* > create a tiddlyLink to tiddler.title > 2How do I make the Text(tiddler.title+"sectionname") appear as > <<tiddler tiddler.title##sectionname>>, *NOT* to break the table it is > sucked into?? > > I managed to change tiddler.title to a custom value like this: > "context.lines[0].push(store.getValue(tiddler.title,"anothervalue")); > context.lines[1].push(store.getTiddlerText(tiddler.title > +"##somesectiontitle"));" > ad1) > I believe I need to get the tiddler.title again to be able to create a > wikilink > context.lines[0].push(tiddler.title); - but how to get this effect: > [[anothervalue|tiddler.title]] is beyond me.... > > ad2) I believe this should be changed > "context.lines[1].push(store.getTiddlerText(tiddler.title > +"##somesectiontitle"));" just to output "tiddler.title > +"##somesectiontitle" and then it should be enclosed in "<<"$1">> > later on?? > > Looking at this code I can't figure out where to insert double > brackets to enclose tiddler.title (or custom value for that matter) OR > enclose tiddler.title+"##somesectiontitle in <<>> ...: > function getTransposedTable() { > var s = ""; > for (var y = 0; y < context.lines.length; y++) { > var line = context.lines[y] > for (var x = 0; x < line.length; x++) { > s += "|"+line[x]; > } > s += "|\n"; > } > return s; > }' > > write > 'addColumn(tiddler)' > begin > 'initColumns()' > end > 'getTransposedTable()' > > Cheers Måns Mårtensson > > On 21 Jan., 09:09, Eric Shulman <[email protected]> wrote: > > > > ... store.getTiddlerSlice(tiddler.title,"SliceA")); > > > ... store.getTiddlerSection(tiddler.title,"SectionB")); > > > store.getTiddlerText("TiddlerTitle","default value"); > > store.getTiddlerText("TiddlerTitle::slicename","default value"); > > store.getTiddlerText("TiddlerTitle::sectionname","default value"); > > > Thus: > > store.getTiddlerText(tiddler.title+"::SliceA"); > > store.getTiddlerText(tiddler.title+"##SectionB"); > > > enjoy, > > -e > > Eric Shulman > > TiddlyTools / ELS Design Studios -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/tiddlywiki?hl=en.

