[tw] Re: (TW5) how to show list filter results in three columns

2014-09-27 Thread Julio Peña
Hello steve.

This could almost work:


<>



Best regards,

Julio


On Saturday, September 27, 2014 4:09:09 PM UTC-4, steve wrote:
>
> Hi
>
> I am trying to organize the results from a list filter into three columns. 
> I tried
>
> @@.threecolumns
> <>
> @@
>
> whereas the following worked
>
> @@.threecolumns
> * text
> * text 
> * text
> * etc
> @@
>
>
> The result is that the list is in a single column.
>
> I used to be able to do this in TWC  with something like
>
> {{{
>
> {{threecolumns{
> <   etc
>   etc
> >>
> }}}
>
>
> Steve Wharton
>

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread Julio Peña
This also works (sorry double post)

@@.threecolumns <> @@

Just doesn't look quite right.

Take a look at my testing [1]


[1] http://jpentw5.tiddlyspot.com/


Julio

On Sunday, September 28, 2014 2:30:53 AM UTC-4, Julio Peña wrote:
>
> Hello steve.
>
> This could almost work:
>
> 
> <>
> 
>
>
> Best regards,
>
> Julio
>
>
> On Saturday, September 27, 2014 4:09:09 PM UTC-4, steve wrote:
>>
>> Hi
>>
>> I am trying to organize the results from a list filter into three 
>> columns. I tried
>>
>> @@.threecolumns
>> <>
>> @@
>>
>> whereas the following worked
>>
>> @@.threecolumns
>> * text
>> * text 
>> * text
>> * etc
>> @@
>>
>>
>> The result is that the list is in a single column.
>>
>> I used to be able to do this in TWC  with something like
>>
>> {{{
>>
>> {{threecolumns{
>> <>   etc
>>   etc
>> >>
>> }}}
>>
>>
>> Steve Wharton
>>
>>

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread PMario
try:

\define myList-links(filter,type:"ul",subtype:"li", class)
<$type$ class="$class$">
<$list filter="$filter$">
<$subtype$>
<$link to={{!!title}}>
<$view field="title"/>




\end

<>


See the new name:  ... I'll create a pull request. So may be Jeremy pulls 
it into the core (may be!). IMO it is a very common use case and a 100% hit 
for an issue. 
There is an explanation, why your @@ version doesn't work. But explaining 
it will take more time, than creating the pull request. ... So may be later.

-mario

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread PMario
I did a pull request: https://github.com/Jermolene/TiddlyWiki5/pull/918
We will need to wait, what Jeremy says. 

have fun!
mario

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread PMario
I think instead of using tc-three-columns we should use uc-three-columns

The reason is: tc- means TiddlyWiki Class ... so it suggests, to be a core 
class. But it isn't. This will cause support problems in the future. 

uc .. User Class.

so imo use: 

<>

in your Stylesheet tiddler use:

.uc-three-columns {
vertical-align:top;
display:block; 
column-count:3;
-moz-column-count:3; 
-webkit-column-count:3;
}


IMO this should be best practice. ... So we should probably mention it in 
the docs. 

have fun!
mario

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread PMario
On Sunday, September 28, 2014 10:49:56 AM UTC+2, PMario wrote:
>
> I did a pull request: https://github.com/Jermolene/TiddlyWiki5/pull/918
> We will need to wait, what Jeremy says. 
>

@ Steve,

The pull request was merged. So in the next version it will be possible to 
write: 

<>   

Which imo looks much cleaner. 
In the meantime you can use my myList-links workaround. 

have fun!
mario

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread steve
I'm trying out all of the suggestions (with some difficulty as I am new to 
TW5)

Julio: Both of your suggestions worked for me.
Mario: I couldn't get your approach to work. The problem is that I don't 
know where to put (or how to tag) the definition of myList-links.
Jeremy: I'll be on the lookout for the next version.

Thanks to all that responded.  I am a bit awed that my request appears to 
have led to a small change in TW5 (albeit quite unconsciously on my part)
Meanwhile, I'll do more reading.

Steve

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread PMario
On Sunday, September 28, 2014 2:23:57 PM UTC+2, steve wrote:
>
> Mario: I couldn't get your approach to work. The problem is that I don't 
> know where to put (or how to tag) the definition of myList-links.
>

\define myList-links(filter,type:"ul",
  ...code
\end

With TW this is called a macro definition. It needs to be at the start of a 
tiddler. 
If it is in the same tiddler as the macro call eg: <>. It is called 
a local macro

see: http://tiddlywiki.com/#Macros%20in%20WikiText


If you want it to be a "global macro" you'll need to use a tiddler eg: 
MyListMacroDefinition
copy the code into the tiddler
tag it with: $:/tags/Macro

Global macros can be used in every tiddler

-mario

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread Julio Peña
Hello Mario and all,

@Mario: Thanks for the suggestion on the class naming convention.
Once I get a little time I will continue cleaning up my Tiddlywiki and 
rename my classes accordingly.

@steve: Glad I could be of some help.


Best regards,

Julio


On Sunday, September 28, 2014 4:58:24 AM UTC-4, PMario wrote:
>
> I think instead of using tc-three-columns we should use uc-three-columns
>
> The reason is: tc- means TiddlyWiki Class ... so it suggests, to be a core 
> class. But it isn't. This will cause support problems in the future. 
>
> uc .. User Class.
>
> so imo use: 
>
> <>
>
> in your Stylesheet tiddler use:
>
> .uc-three-columns {
> vertical-align:top;
> display:block; 
> column-count:3;
> -moz-column-count:3; 
> -webkit-column-count:3;
> }
>
>
> IMO this should be best practice. ... So we should probably mention it in 
> the docs. 
>
> have fun!
> mario
>

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread steve
Mario:

Thanks for the description of how to use macros.  It will be a big help 
with functions that I want to bring over from my TWC content.

Steve

On Sunday, September 28, 2014 9:05:08 AM UTC-4, PMario wrote:
>
> On Sunday, September 28, 2014 2:23:57 PM UTC+2, steve wrote:
>>
>> Mario: I couldn't get your approach to work. The problem is that I don't 
>> know where to put (or how to tag) the definition of myList-links.
>>
>
> \define myList-links(filter,type:"ul",
>   ...code
> \end
>
> With TW this is called a macro definition. It needs to be at the start of 
> a tiddler. 
> If it is in the same tiddler as the macro call eg: <>. It is called 
> a local macro
>
> see: http://tiddlywiki.com/#Macros%20in%20WikiText
>
>
> If you want it to be a "global macro" you'll need to use a tiddler eg: 
> MyListMacroDefinition
> copy the code into the tiddler
> tag it with: $:/tags/Macro
>
> Global macros can be used in every tiddler
>
> -mario
>

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-29 Thread Danielo Rodríguez


El domingo, 28 de septiembre de 2014 10:58:24 UTC+2, PMario escribió:
>
> I think instead of using tc-three-columns we should use uc-three-columns
>
> The reason is: tc- means TiddlyWiki Class ... so it suggests, to be a core 
> class. But it isn't. This will cause support problems in the future. 
>
> uc .. User Class.
>
>
Following this logic... should we then use pc- for plugin classes?

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-29 Thread PMario
On Monday, September 29, 2014 10:56:51 AM UTC+2, Danielo Rodríguez wrote:
>
> El domingo, 28 de septiembre de 2014 10:58:24 UTC+2, PMario escribió:
>>
>> I think instead of using tc-three-columns we should use uc-three-columns
>> The reason is: tc- means TiddlyWiki Class ... so it suggests, to be a 
>> core class. But it isn't. This will cause support problems in the future. 
>> uc .. User Class.
>>
>
> Following this logic... should we then use pc- for plugin classes?
>

You basically can use, what you want, as long as it is different to the 
core classes. 

Plugins should try to use existing core CSS as much as possible. So that no 
additional stylesheet is needed. and plugins can work with different themes.

If you really need your own styles, you can skip the "pc-" prefix and use 
your plugin-name instead. This was  common practice in TWc and it worked 
well.

eg: TagSearch plugin used ".tagsearch " classes for the wrapper 
element. So there are no side effects to the rest of the UI.

-mario

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-29 Thread Danielo Rodríguez
As you sai Mario, I try to use as many core classes as I can. But 
sometimes, this is not possible (for example , radio buttons in the 
advanced search are "deformed" due to the input core class), that's why I'm 
asking how should we manage this. I'm very very bad at establishing 
procedures and naming conventions, that's why I prefer to ask.

The plugin name seems too long to me, but if it is common (and clear) maybe 
I could stick to it, but I would like some kind of "official naming 
convention".
Regards.

El lunes, 29 de septiembre de 2014 13:47:01 UTC+2, PMario escribió:
>
> On Monday, September 29, 2014 10:56:51 AM UTC+2, Danielo Rodríguez wrote:
>>
>> El domingo, 28 de septiembre de 2014 10:58:24 UTC+2, PMario escribió:
>>>
>>> I think instead of using tc-three-columns we should use uc-three-columns
>>> The reason is: tc- means TiddlyWiki Class ... so it suggests, to be a 
>>> core class. But it isn't. This will cause support problems in the future. 
>>> uc .. User Class.
>>>
>>
>> Following this logic... should we then use pc- for plugin classes?
>>
>
> You basically can use, what you want, as long as it is different to the 
> core classes. 
>
> Plugins should try to use existing core CSS as much as possible. So that 
> no additional stylesheet is needed. and plugins can work with different 
> themes.
>
> If you really need your own styles, you can skip the "pc-" prefix and use 
> your plugin-name instead. This was  common practice in TWc and it worked 
> well.
>
> eg: TagSearch plugin used ".tagsearch " classes for the wrapper 
> element. So there are no side effects to the rest of the UI.
>
> -mario
>
>

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-29 Thread PMario
I had a shor look at one of your styles tiddler [1]. You use 
tw-crypt-something  just remove the tw- and you are good to go.
So some of your classes even get shorter :)

And ... yes ... finding good class names isn't easy but its worth to invest 
a bit of time, because you need to stick with them for a long time :)

-m

[1] 
http://braintest.tiddlyspot.com/#%24%3A%2Fdanielo%2Fencrypt%2Fstyles:%24%3A%2Fdanielo%2Fencrypt%2Fstyles

-- 
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] Re: (TW5) how to show list filter results in three columns

2014-09-28 Thread Jeremy Ruston
Hi Mario

> IMO this should be best practice. ... So we should probably mention it in
the docs.

Good idea; can you do a pull request? I guess we should change the classes
defined in tw5.com to use `uc-*`

Best wishes

Jeremy

On Sun, Sep 28, 2014 at 9:58 AM, PMario  wrote:

> I think instead of using tc-three-columns we should use uc-three-columns
>
> The reason is: tc- means TiddlyWiki Class ... so it suggests, to be a core
> class. But it isn't. This will cause support problems in the future.
>
> uc .. User Class.
>
> so imo use:
>
> <>
>
> in your Stylesheet tiddler use:
>
> .uc-three-columns {
> vertical-align:top;
> display:block;
> column-count:3;
> -moz-column-count:3;
> -webkit-column-count:3;
> }
>
>
> IMO this should be best practice. ... So we should probably mention it in
> the docs.
>
> have fun!
> mario
>
> --
> 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://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.