Re: [tw] [TW5] - Questions about adding buttons and tabs
Hi Jeremy, I did have a look at the alpha16 prerelease. And yes, it is easier to add things to the PageTemplate. It is not the final alpha16 so I don't know if the following is relevant. By the way, the Javascript error is still there when you want to modify the PageTemplate (not that important anymore). Combined with what I saw at the Hangout yesterday, it looks as if you have to add manually new tabs/PageTemplate parts to the tag list. But when you add a tiddler tagged with $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplatethe content of that tiddler is shown, but the tiddler does not show up in the list of $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplate; you have to add it manually (for reordering). For me it would be logical when the new tiddler tagged with $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplatewas already in the list. Cheers, Ton On Sunday, November 24, 2013 9:01:29 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Thanks for the explanation. I am awaiting alpha16 ;) Cheers, Ton On Sunday, November 24, 2013 8:32:05 PM UTC+1, Jeremy Ruston wrote: Hi Ton The problem lies with the filter expression used to to list the PageControl items in $:/core/ui/PageTemplate/sidebar [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] The two tag filter operators work on the shadow and non-shadow tiddlers with the tag $:/tags/PageControls separately, correctly sorting the tiddlers according to the list field on the tag, but then the results of the two lists are just concatenated, making it impossible to interleave shadow and non-shadow items. The fix is to add a final filter operation that gathers up the results so far and sorts them again: [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] +[tag[$:/tags/PageControls]] This will be fixed in alpha.16 for all the tag-configurable lists. Best wishes Jeremy On Sun, Nov 24, 2013 at 9:19 AM, Ton Gerner ton.g...@gmail.com wrote: Hi all, Customization of TW5 becomes simpler per release and I must say I love it. Adding buttons to my toolbar in the top menu can in many cases now be done by transcluding some code part instead of copying/pasting code from shadow tiddlers. Experimenting with the PageControl buttons, I could rearrange them by rearranging the list in the $:/tags/PageControls shadow tiddler. My top menu contains a Home button $:/Top-home-button. I tagged it with $:/tags/PageControls and the Home button showed up to the right of the PageControl buttons. Inspecting the list in the $:/tags/PageControls shadow tiddler showed: $:/core/ui/PageControls/new-tiddler $:/core/ui/PageControls/control-panel $:/core/ui/PageControls/save-wiki To be honest, I expected my Home button tiddler there as well but that is not the case. Adding $:/Top-home-button at the begining of the list had no effect on the position of the Home button. Adding tabs to the SideBar shows the same behaviour: you can add new tabs only to the right of the More tab and the new tab(s) don't show up in the list of the $:/tags/SideBar shadow tiddler. Adding them to the list has no effect. And the new tabs show up in the order of creation. Am I missing something or is it not possible to rearrange *all* (core and 'home made') buttons and/or tabs? Cheers, Ton -- 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 tiddlywiki+...@googlegroups.com. To post to this group, send email to tiddl...@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out. -- Jeremy Ruston mailto:jeremy...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] [TW5] - Questions about adding buttons and tabs
Hi Ton By the way, the Javascript error is still there when you want to modify the PageTemplate (not that important anymore). It will get fixed eventually but its' going to require some reorganisation to do it. Combined with what I saw at the Hangout yesterday, it looks as if you have to add manually new tabs/PageTemplate parts to the tag list. But when you add a tiddler tagged with $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplatethe content of that tiddler is shown, but the tiddler does not show up in the list of $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplate; you have to add it manually (for reordering). For me it would be logical when the new tiddler tagged with $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplatewas already in the list. I'm not so sure that automatically updating the list field when assigning a tag to a tiddler is a good idea. It also implies that for consistency we'd need to remove the item from the list if the tag is later removed, which is starting to get some serious business logic into the heart of TiddlyWiki; it would mean that we'd have to look at every tiddler modification to see if it involves setting or clearing a tag. Even if we did automatically update the list field the effect to the user would be the same: the newly tagged tiddler would assume a default position in the list until explicitly dragged elsewhere. It should be a bit clearer when we have a drag and drop interface to the list field. Best wishes Jeremy. Cheers, Ton On Sunday, November 24, 2013 9:01:29 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Thanks for the explanation. I am awaiting alpha16 ;) Cheers, Ton On Sunday, November 24, 2013 8:32:05 PM UTC+1, Jeremy Ruston wrote: Hi Ton The problem lies with the filter expression used to to list the PageControl items in $:/core/ui/PageTemplate/sidebar [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] The two tag filter operators work on the shadow and non-shadow tiddlers with the tag $:/tags/PageControls separately, correctly sorting the tiddlers according to the list field on the tag, but then the results of the two lists are just concatenated, making it impossible to interleave shadow and non-shadow items. The fix is to add a final filter operation that gathers up the results so far and sorts them again: [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] +[tag[$:/tags/PageControls]] This will be fixed in alpha.16 for all the tag-configurable lists. Best wishes Jeremy On Sun, Nov 24, 2013 at 9:19 AM, Ton Gerner ton.g...@gmail.com wrote: Hi all, Customization of TW5 becomes simpler per release and I must say I love it. Adding buttons to my toolbar in the top menu can in many cases now be done by transcluding some code part instead of copying/pasting code from shadow tiddlers. Experimenting with the PageControl buttons, I could rearrange them by rearranging the list in the $:/tags/PageControls shadow tiddler. My top menu contains a Home button $:/Top-home-button. I tagged it with $:/tags/PageControls and the Home button showed up to the right of the PageControl buttons. Inspecting the list in the $:/tags/PageControls shadow tiddler showed: $:/core/ui/PageControls/new-tiddler $:/core/ui/PageControls/control-panel $:/core/ui/PageControls/save-wiki To be honest, I expected my Home button tiddler there as well but that is not the case. Adding $:/Top-home-button at the begining of the list had no effect on the position of the Home button. Adding tabs to the SideBar shows the same behaviour: you can add new tabs only to the right of the More tab and the new tab(s) don't show up in the list of the $:/tags/SideBar shadow tiddler. Adding them to the list has no effect. And the new tabs show up in the order of creation. Am I missing something or is it not possible to rearrange *all* (core and 'home made') buttons and/or tabs? Cheers, Ton -- 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 tiddlywiki+...@googlegroups.com. To post to this group, send email to tiddl...@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out. -- Jeremy Ruston mailto:jeremy...@gmail.com -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at
Re: [tw] [TW5] - Questions about adding buttons and tabs
Hi Jeremy, On Wednesday, November 27, 2013 10:56:41 AM UTC+1, Jeremy Ruston wrote: Hi Ton By the way, the Javascript error is still there when you want to modify the PageTemplate (not that important anymore). It will get fixed eventually but its' going to require some reorganisation to do it. Combined with what I saw at the Hangout yesterday, it looks as if you have to add manually new tabs/PageTemplate parts to the tag list. But when you add a tiddler tagged with $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplatethe content of that tiddler is shown, but the tiddler does not show up in the list of $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplate; you have to add it manually (for reordering). For me it would be logical when the new tiddler tagged with $:/tags/PageTemplatehttp://tw5toolbar.tiddlyspot.com/#%24%3A%2Ftags%2FPageTemplatewas already in the list. I'm not so sure that automatically updating the list field when assigning a tag to a tiddler is a good idea. It also implies that for consistency we'd need to remove the item from the list if the tag is later removed, which is starting to get some serious business logic into the heart of TiddlyWiki; it would mean that we'd have to look at every tiddler modification to see if it involves setting or clearing a tag. I didn't thought about these implications. But for the user it is not logical: I did tag it. Why is it not in the list? Lateron I realized that the - manually - applied tags starting with $:/ do show up in the tag list so you can find the tagged tiddler if you forgot the title of the tiddler ;). So it need to be documented. In my guide (Top menu with toolbar buttons) I will add something about customization. Cheers, Ton Even if we did automatically update the list field the effect to the user would be the same: the newly tagged tiddler would assume a default position in the list until explicitly dragged elsewhere. It should be a bit clearer when we have a drag and drop interface to the list field. Best wishes Jeremy. Cheers, Ton On Sunday, November 24, 2013 9:01:29 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Thanks for the explanation. I am awaiting alpha16 ;) Cheers, Ton On Sunday, November 24, 2013 8:32:05 PM UTC+1, Jeremy Ruston wrote: Hi Ton The problem lies with the filter expression used to to list the PageControl items in $:/core/ui/PageTemplate/sidebar [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] The two tag filter operators work on the shadow and non-shadow tiddlers with the tag $:/tags/PageControls separately, correctly sorting the tiddlers according to the list field on the tag, but then the results of the two lists are just concatenated, making it impossible to interleave shadow and non-shadow items. The fix is to add a final filter operation that gathers up the results so far and sorts them again: [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] +[tag[$:/tags/PageControls]] This will be fixed in alpha.16 for all the tag-configurable lists. Best wishes Jeremy On Sun, Nov 24, 2013 at 9:19 AM, Ton Gerner ton.g...@gmail.com wrote: Hi all, Customization of TW5 becomes simpler per release and I must say I love it. Adding buttons to my toolbar in the top menu can in many cases now be done by transcluding some code part instead of copying/pasting code from shadow tiddlers. Experimenting with the PageControl buttons, I could rearrange them by rearranging the list in the $:/tags/PageControls shadow tiddler. My top menu contains a Home button $:/Top-home-button. I tagged it with $:/tags/PageControls and the Home button showed up to the right of the PageControl buttons. Inspecting the list in the $:/tags/PageControls shadow tiddler showed: $:/core/ui/PageControls/new-tiddler $:/core/ui/PageControls/control-panel $:/core/ui/PageControls/save-wiki To be honest, I expected my Home button tiddler there as well but that is not the case. Adding $:/Top-home-button at the begining of the list had no effect on the position of the Home button. Adding tabs to the SideBar shows the same behaviour: you can add new tabs only to the right of the More tab and the new tab(s) don't show up in the list of the $:/tags/SideBar shadow tiddler. Adding them to the list has no effect. And the new tabs show up in the order of creation. Am I missing something or is it not possible to rearrange *all* (core and 'home made') buttons and/or tabs? Cheers, Ton -- 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 tiddlywiki+...@googlegroups.com. To post to this group, send email
Re: [tw] [TW5] - Questions about adding buttons and tabs
Hi Ton The problem lies with the filter expression used to to list the PageControl items in $:/core/ui/PageTemplate/sidebar [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] The two tag filter operators work on the shadow and non-shadow tiddlers with the tag $:/tags/PageControls separately, correctly sorting the tiddlers according to the list field on the tag, but then the results of the two lists are just concatenated, making it impossible to interleave shadow and non-shadow items. The fix is to add a final filter operation that gathers up the results so far and sorts them again: [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] +[tag[$:/tags/PageControls]] This will be fixed in alpha.16 for all the tag-configurable lists. Best wishes Jeremy On Sun, Nov 24, 2013 at 9:19 AM, Ton Gerner ton.ger...@gmail.com wrote: Hi all, Customization of TW5 becomes simpler per release and I must say I love it. Adding buttons to my toolbar in the top menu can in many cases now be done by transcluding some code part instead of copying/pasting code from shadow tiddlers. Experimenting with the PageControl buttons, I could rearrange them by rearranging the list in the $:/tags/PageControls shadow tiddler. My top menu contains a Home button $:/Top-home-button. I tagged it with $:/tags/PageControls and the Home button showed up to the right of the PageControl buttons. Inspecting the list in the $:/tags/PageControls shadow tiddler showed: $:/core/ui/PageControls/new-tiddler $:/core/ui/PageControls/control-panel $:/core/ui/PageControls/save-wiki To be honest, I expected my Home button tiddler there as well but that is not the case. Adding $:/Top-home-button at the begining of the list had no effect on the position of the Home button. Adding tabs to the SideBar shows the same behaviour: you can add new tabs only to the right of the More tab and the new tab(s) don't show up in the list of the $:/tags/SideBar shadow tiddler. Adding them to the list has no effect. And the new tabs show up in the order of creation. Am I missing something or is it not possible to rearrange *all* (core and 'home made') buttons and/or tabs? Cheers, Ton -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out. -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] [TW5] - Questions about adding buttons and tabs
Hi Jeremy, Thanks for the explanation. I am awaiting alpha16 ;) Cheers, Ton On Sunday, November 24, 2013 8:32:05 PM UTC+1, Jeremy Ruston wrote: Hi Ton The problem lies with the filter expression used to to list the PageControl items in $:/core/ui/PageTemplate/sidebar [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] The two tag filter operators work on the shadow and non-shadow tiddlers with the tag $:/tags/PageControls separately, correctly sorting the tiddlers according to the list field on the tag, but then the results of the two lists are just concatenated, making it impossible to interleave shadow and non-shadow items. The fix is to add a final filter operation that gathers up the results so far and sorts them again: [is[shadow]!has[draft.of]tag[$:/tags/PageControls]] [!is[shadow]!has[draft.of]tag[$:/tags/PageControls]] +[tag[$:/tags/PageControls]] This will be fixed in alpha.16 for all the tag-configurable lists. Best wishes Jeremy On Sun, Nov 24, 2013 at 9:19 AM, Ton Gerner ton.g...@gmail.comjavascript: wrote: Hi all, Customization of TW5 becomes simpler per release and I must say I love it. Adding buttons to my toolbar in the top menu can in many cases now be done by transcluding some code part instead of copying/pasting code from shadow tiddlers. Experimenting with the PageControl buttons, I could rearrange them by rearranging the list in the $:/tags/PageControls shadow tiddler. My top menu contains a Home button $:/Top-home-button. I tagged it with $:/tags/PageControls and the Home button showed up to the right of the PageControl buttons. Inspecting the list in the $:/tags/PageControls shadow tiddler showed: $:/core/ui/PageControls/new-tiddler $:/core/ui/PageControls/control-panel $:/core/ui/PageControls/save-wiki To be honest, I expected my Home button tiddler there as well but that is not the case. Adding $:/Top-home-button at the begining of the list had no effect on the position of the Home button. Adding tabs to the SideBar shows the same behaviour: you can add new tabs only to the right of the More tab and the new tab(s) don't show up in the list of the $:/tags/SideBar shadow tiddler. Adding them to the list has no effect. And the new tabs show up in the order of creation. Am I missing something or is it not possible to rearrange *all* (core and 'home made') buttons and/or tabs? Cheers, Ton -- 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 tiddlywiki+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out. -- Jeremy Ruston mailto:jeremy...@gmail.com javascript: -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.