[tw] TOC question

2014-07-22 Thread Shawn Chand
Is there a way to make a drop down menu within a drop down menu? 
I tried doing it this way but it didn't really work out 

!!! <>
">>


Thanks,

Shawn

-- 
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/d/optout.


[tw] TOC question

2014-09-02 Thread David Gifford
Why would both this:


<>


and this


<>


result in this:

Filter error: Syntax error in filter expression

and how do I get it to work? (Make a TOC of all tiddlers that have the tag 
GettingStarted but not the tag $:/Note)

p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I have 
changed the old tc-table-of-contents to suit my tastes here.

-- 
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/d/optout.


Re: [tw] TOC question

2014-09-02 Thread Andreas Hahn

Hi David,

the toc macro does not actually accept a filter expression as its first 
parameter, but instead just a tag that is then filled into a filter 
expression. Within the toc-macro, the list widget is invoked with the 
following filter exp:


<$list filter="[tag[$tag$]$sort$]">

$tag$ is the first parameter, so your

<>

leads to it being filled in like this:

<$list filter="[tag[[tag[GettingStarted]!tag[$:/Note">

And this is obviously not a well-formed filter expression. However this 
is not the end of the line. To make

your filter work, you can do a filter injection by doing

<>

so that it becomes

<$list filter="[tag[GettingStarted]!tag[$:/Note]">

which will work but doesn't make for good end-user experience whatsoever.

/Andreas


Am 03.09.2014 00:46, schrieb David Gifford:

Why would both this:


<>


and this


<>


result in this:

Filter error: Syntax error in filter expression

and how do I get it to work? (Make a TOC of all tiddlers that have the 
tag GettingStarted but not the tag $:/Note)


p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I 
have changed the old tc-table-of-contents to suit my tastes here.

--
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/d/optout.


--
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/d/optout.


Re: [tw] TOC question

2014-09-02 Thread David Gifford
Thanks Andreas,

Your

I am curious why you say it will not make for a good end-user experience
whatsoever, since the end result of the toc will be the same.

Blessings

Dave


On Tue, Sep 2, 2014 at 8:01 PM, Andreas Hahn 
wrote:

>  Hi David,
>
> the toc macro does not actually accept a filter expression as its first
> parameter, but instead just a tag that is then filled into a filter
> expression. Within the toc-macro, the list widget is invoked with the
> following filter exp:
>
> <$list filter="[tag[$tag$]$sort$]">
>
> $tag$ is the first parameter, so your
>
> <>
>
> leads to it being filled in like this:
>
> <$list filter="[tag[[tag[GettingStarted]!tag[$:/Note">
>
> And this is obviously not a well-formed filter expression. However this is
> not the end of the line. To make
> your filter work, you can do a filter injection by doing
>
> <>
>
> so that it becomes
>
> <$list filter="[tag[GettingStarted]!tag[$:/Note]">
>
> which will work but doesn't make for good end-user experience whatsoever.
>
> /Andreas
>
>
> Am 03.09.2014 00:46, schrieb David Gifford:
>
> Why would both this:
>
> 
> <>
> 
>
> and this
>
> 
> <>
> 
>
> result in this:
>
> Filter error: Syntax error in filter expression
>
> and how do I get it to work? (Make a TOC of all tiddlers that have the tag
> GettingStarted but not the tag $:/Note)
>
> p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I have
> changed the old tc-table-of-contents to suit my tastes here.
>  --
> 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/d/optout.
>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/gV-J8Nf_oio/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d/optout.
>



-- 
David Gifford
Christian Reformed World Missions, Mexico City

-- 
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/d/optout.


Re: [tw] TOC question

2014-09-02 Thread Andreas Hahn

Hi David,

for people starting out with TW it is probably pretty confusing since 
the documentation states that the toc macro expects the first parameter 
to be a tag and not some weird half finished filter expression.


Obviously using that trick yourself is totally fine for all practical 
purposes, it was merely a side note for Jeremy (and others) that those 
filter injection tricks are not user-friendly for new TW users but when 
people tend to do this to get more complex behaviour out of a macro, 
they will inevitably get in touch with this and it will be very 
confusing for them.


On the other hand, please don't ruin this beautiful macro by adding 
useless parameters :D


/Andreas


Am 03.09.2014 03:38, schrieb David Gifford:

Thanks Andreas,

Your

I am curious why you say it will not make for a good end-user 
experience whatsoever, since the end result of the toc will be the same.


Blessings

Dave


On Tue, Sep 2, 2014 at 8:01 PM, Andreas Hahn 
mailto:www.gal...@googlemail.com>> wrote:


Hi David,

the toc macro does not actually accept a filter expression as its
first parameter, but instead just a tag that is then filled into a
filter expression. Within the toc-macro, the list widget is
invoked with the following filter exp:

<$list filter="[tag[$tag$]$sort$]">

$tag$ is the first parameter, so your

<>

leads to it being filled in like this:

<$list filter="[tag[[tag[GettingStarted]!tag[$:/Note">

And this is obviously not a well-formed filter expression. However
this is not the end of the line. To make
your filter work, you can do a filter injection by doing

<>

so that it becomes

<$list filter="[tag[GettingStarted]!tag[$:/Note]">

which will work but doesn't make for good end-user experience
whatsoever.

/Andreas


Am 03.09.2014 00:46, schrieb David Gifford:

Why would both this:


<>


and this


<>


result in this:

Filter error: Syntax error in filter expression

and how do I get it to work? (Make a TOC of all tiddlers that
have the tag GettingStarted but not the tag $:/Note)

p.s. I realize the new CSS is tc-toc. I am using a stylesheet
where I have changed the old tc-table-of-contents to suit my
tastes here.
-- 
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/d/optout.


-- 
You received this message because you are subscribed to a topic in

the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/tiddlywiki/gV-J8Nf_oio/unsubscribe.
To unsubscribe from this group and all its topics, 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/d/optout.




--
David Gifford
Christian Reformed World Missions, Mexico City
--
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/d/optout.


--
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/d/optout.


Re: [tw] TOC question

2014-09-02 Thread David Gifford
Thanks for the explanation.

In beginning to explain why I was going to use this parameter, I just
realized I don't need it! My viewtemplate includes two parts to the body,
one governed by tags but with an additional tag, "$:/TOC", and the other
governed by tags but with an additional tag, "$:/Note". The idea of the
parameter was to filter out the second set of tiddlers. But I just
remembered that in GettingStarted I won't have any tiddlers tagged $:/Note.
So this whole question is a moot point. Nevertheless at least I have a hack
for it in case I ever need to do it that way for some reason. Thanks!

Dave


On Tue, Sep 2, 2014 at 8:52 PM, Andreas Hahn 
wrote:

>  Hi David,
>
> for people starting out with TW it is probably pretty confusing since the
> documentation states that the toc macro expects the first parameter to be a
> tag and not some weird half finished filter expression.
>
> Obviously using that trick yourself is totally fine for all practical
> purposes, it was merely a side note for Jeremy (and others) that those
> filter injection tricks are not user-friendly for new TW users but when
> people tend to do this to get more complex behaviour out of a macro, they
> will inevitably get in touch with this and it will be very confusing for
> them.
>
> On the other hand, please don't ruin this beautiful macro by adding
> useless parameters :D
>
> /Andreas
>
>
> Am 03.09.2014 03:38, schrieb David Gifford:
>
>  Thanks Andreas,
>
>  Your
>
>  I am curious why you say it will not make for a good end-user experience
> whatsoever, since the end result of the toc will be the same.
>
>  Blessings
>
> Dave
>
>
> On Tue, Sep 2, 2014 at 8:01 PM, Andreas Hahn 
> wrote:
>
>>  Hi David,
>>
>> the toc macro does not actually accept a filter expression as its first
>> parameter, but instead just a tag that is then filled into a filter
>> expression. Within the toc-macro, the list widget is invoked with the
>> following filter exp:
>>
>> <$list filter="[tag[$tag$]$sort$]">
>>
>> $tag$ is the first parameter, so your
>>
>> <>
>>
>> leads to it being filled in like this:
>>
>> <$list filter="[tag[[tag[GettingStarted]!tag[$:/Note">
>>
>> And this is obviously not a well-formed filter expression. However this
>> is not the end of the line. To make
>> your filter work, you can do a filter injection by doing
>>
>> <>
>>
>> so that it becomes
>>
>> <$list filter="[tag[GettingStarted]!tag[$:/Note]">
>>
>> which will work but doesn't make for good end-user experience whatsoever.
>>
>> /Andreas
>>
>>
>> Am 03.09.2014 00:46, schrieb David Gifford:
>>
>> Why would both this:
>>
>> 
>> <>
>> 
>>
>> and this
>>
>> 
>> <>
>> 
>>
>> result in this:
>>
>> Filter error: Syntax error in filter expression
>>
>> and how do I get it to work? (Make a TOC of all tiddlers that have the
>> tag GettingStarted but not the tag $:/Note)
>>
>> p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I
>> have changed the old tc-table-of-contents to suit my tastes here.
>>  --
>> 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/d/optout.
>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/gV-J8Nf_oio/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/d/optout.
>>
>
>
>
> --
> David Gifford
> Christian Reformed World Missions, Mexico City
>  --
> 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/d/optout.
>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/gV-J8Nf_oio/unsubscribe.
> To unsubscribe from this group and all its topics, 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:

Re: [tw] TOC question

2014-09-04 Thread Jeremy Ruston
Hi Andreas


> Obviously using that trick yourself is totally fine for all practical
> purposes, it was merely a side note for Jeremy (and others) that those
> filter injection tricks are not user-friendly for new TW users but when
> people tend to do this to get more complex behaviour out of a macro, they
> will inevitably get in touch with this and it will be very confusing for
> them.
>

I've found working on the core macros (toc, tabs etc) quite liberating. The
fact that it's so easy for an end user to copy and modify the macros
relieves the normal pressure to try to cater for every edge case. So, in
this case I think it's probably right that the toc macro takes a tag,
rather than a filter. It allows for the trick discussed here, but keeps the
macro itself clean and simple.

Anyhow, one prediction for the future is that I think we'll see an awful
lot of macros in the general area of creating hierarchical views of tiddler
relationships...

Best wishes

Jeremy


>
> On the other hand, please don't ruin this beautiful macro by adding
> useless parameters :D
>
> /Andreas
>
>
> Am 03.09.2014 03:38, schrieb David Gifford:
>
>  Thanks Andreas,
>
>  Your
>
>  I am curious why you say it will not make for a good end-user experience
> whatsoever, since the end result of the toc will be the same.
>
>  Blessings
>
> Dave
>
>
> On Tue, Sep 2, 2014 at 8:01 PM, Andreas Hahn 
> wrote:
>
>>  Hi David,
>>
>> the toc macro does not actually accept a filter expression as its first
>> parameter, but instead just a tag that is then filled into a filter
>> expression. Within the toc-macro, the list widget is invoked with the
>> following filter exp:
>>
>> <$list filter="[tag[$tag$]$sort$]">
>>
>> $tag$ is the first parameter, so your
>>
>> <>
>>
>> leads to it being filled in like this:
>>
>> <$list filter="[tag[[tag[GettingStarted]!tag[$:/Note">
>>
>> And this is obviously not a well-formed filter expression. However this
>> is not the end of the line. To make
>> your filter work, you can do a filter injection by doing
>>
>> <>
>>
>> so that it becomes
>>
>> <$list filter="[tag[GettingStarted]!tag[$:/Note]">
>>
>> which will work but doesn't make for good end-user experience whatsoever.
>>
>> /Andreas
>>
>>
>> Am 03.09.2014 00:46, schrieb David Gifford:
>>
>> Why would both this:
>>
>> 
>> <>
>> 
>>
>> and this
>>
>> 
>> <>
>> 
>>
>> result in this:
>>
>> Filter error: Syntax error in filter expression
>>
>> and how do I get it to work? (Make a TOC of all tiddlers that have the
>> tag GettingStarted but not the tag $:/Note)
>>
>> p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I
>> have changed the old tc-table-of-contents to suit my tastes here.
>>  --
>> 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/d/optout.
>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/gV-J8Nf_oio/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/d/optout.
>>
>
>
>
> --
> David Gifford
> Christian Reformed World Missions, Mexico City
>  --
> 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/d/optout.
>
>
>  --
> 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/d/optout.
>



-- 
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://gro

Re: [tw] TOC question

2016-03-06 Thread Matias Altalef
a way to do the same thing that's a little prettier:

<>



On Tuesday, 2 September 2014 22:01:43 UTC-3, Andreas Hahn wrote:
>
> Hi David,
>
> the toc macro does not actually accept a filter expression as its first 
> parameter, but instead just a tag that is then filled into a filter 
> expression. Within the toc-macro, the list widget is invoked with the 
> following filter exp:
>
> <$list filter="[tag[$tag$]$sort$]">
>
> $tag$ is the first parameter, so your 
>
> <>
>
> leads to it being filled in like this:
>
> <$list filter="[tag[[tag[GettingStarted]!tag[$:/Note">
>
> And this is obviously not a well-formed filter expression. However this is 
> not the end of the line. To make
> your filter work, you can do a filter injection by doing
>
> <>
>
> so that it becomes
>
> <$list filter="[tag[GettingStarted]!tag[$:/Note]">
>
> which will work but doesn't make for good end-user experience whatsoever.
>
> /Andreas
>
>
> Am 03.09.2014 00:46, schrieb David Gifford:
>
> Why would both this:
>
> 
> <>
> 
>
> and this
>
> 
> <>
> 
>
> result in this:
>
> Filter error: Syntax error in filter expression
>
> and how do I get it to work? (Make a TOC of all tiddlers that have the tag 
> GettingStarted but not the tag $:/Note)
>
> p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I have 
> changed the old tc-table-of-contents to suit my tastes here.
> -- 
> 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/d/optout.
>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c36c766-de23-4102-afa7-cd3b53baa6ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.