Hi Mark

see my responses in bold below

On Sun, Jul 3, 2016 at 4:02 PM, 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> Hi Dave,
>
> Making a photo gallery has been something in the back of my mind for
> awhile. Unfortunately, I seem to lack much of an aesthetic sense. I bet you
> would come up with something really cool.
>

*​<div class="imggal"><$list
filter="[is[current]tagging[]sort[title]]"><div class="imggal-item"><$link
to={{!!title}}><$transclude/></$link></div></$list></div>​*








* ​ With CSS being/*IMGGAL*/ @media (min-width: 600px) { .imggal {
-moz-column-count: 4; -moz-column-gap: 10px; -webkit-column-count: 4;
-webkit-column-gap: 10px; column-count: 4; column-gap: 10px; } .imggal-item
{ width: 100%; } } .imggal-item { display: inline-block; border: 0px solid
<<colour muted-foreground>>; padding: none; margin-bottom: 0px; background:
#fff; font-size: 0em; line-height: 0; } .imggal-item h1 { font-weight: 500;
font-size: 16px; }This is what I was using. Pretty sure Jeremy did this up
back then in 2014. ​*

>
> Can you explain what you mean by this:
>
> But a lot of the galleries would combine two tags (photos tagged both
>> Spain and Modern). So a conditional viewtemplate would not work for those
>> galleries. I would need to have image galleries based on list filters in at
>> least some of the tiddlers themselves.
>
>
> I don't understand why having two tags would preclude a conditional
> viewtemplate based on those two tags.
>


*I am not sure how having a conditional viewtemplate for each two-tag
combination would be better than just having a tiddler for each combination
with a list filter in the tiddler. I don't understand what you mean.*


> I'm also wondering if you're thinking of different viewtemplates for all
> sorts of combinations (e.g. "Modern" and "Spain", "Medieval" and
> "Spain","Medieval" and "England", etc.)
>

​*​*
*I*
*​ am thinking of galleries​ for all sorts of combinations. Perhaps if I
had a conditional viewtemplate for all tiddlers tagged combomodern, I could
apply that tag to all tiddlers that combine the tag modern with a country
tag. Hadn't thought of that. Perhaps that is what you were imagining when
you asked your first question above? But that would still make ten or so
conditional view templates...*

>
> Thanks,
>

*​No, thank you.​*


> Mark
>
>
> On Sunday, July 3, 2016 at 12:00:33 PM UTC-7, David Gifford wrote:
>>
>> Hi everyone,
>>
>> Don't want you guys to sweat too much over this one...
>>
>> My use case is simply a file where I collect photos from around the
>> world, store them locally, image link to them from my TW, and either tag
>> them or (use backlinks as tags) by country and by topic (e.g. modern
>> architecture, nature, etc).
>>
>> I want to display the photos in galleries by tag. Any given gallery might
>> conceivably get to 50-100 photos? But a lot of the galleries would combine
>> two tags (photos tagged both Spain and Modern). So a conditional
>> viewtemplate would not work for those galleries. I would need to have image
>> galleries based on list filters in at least some of the tiddlers
>> themselves.
>>
>> I remember trying something similar when TW5 was still younger (5.0.10),
>> and found the file getting slower and slower, even though the photos were
>> not in the file but embedded. To be fair, I admit that the image gallery
>> code was in almost every tiddler on that file, so that made the file larger.
>>
>> So I don't have data all ready to test out. I just don't want to waste my
>> time creating a big database of photos only to find that this one slows
>> down like the other one did. I thought maybe doing it as backlinks would be
>> more efficient than by tags, but I am getting the sense from what you all
>> are saying, that if anything it could be slower.
>>
>> Maybe I should experiment with it again as tagging, and see if I can get
>> it to stay lean and fast this time around. Any advice would be appreciated.
>> Blessings,
>>
>> Dave
>>
>> On Sunday, July 3, 2016 at 11:20:11 AM UTC-5, Mark S. wrote:
>>>
>>> Hi Jed,
>>>
>>> I was thinking about this particular use-case. If I knew which call to
>>> make a filter into an array, it would be fairly easy to write a javascript
>>> macro that would return the intersection of the two sets without the
>>> cross-multiplying of the nested <$list> approach.
>>>
>>> I'm guessing that the benefit comes when *n*m* > 400 or so. Since Dave
>>> apparently has some data already, I was curious whether the nested <$list>
>>> approach was creating any difficulty, and with how much data.
>>>
>>> Mark
>>>
>>> On Sunday, July 3, 2016 at 12:32:05 AM UTC-7, Jed Carty wrote:
>>>>
>>>> Mark,
>>>>
>>>> It wouldn't be hard to make something that does that and me and Jeremy
>>>> (and others) have discussed adding something like that. The last I heard
>>>> the problem was getting consistent syntax and then everyone got busy with
>>>> other work, I am going to add some discussion ideas to the meetup later
>>>> this month about extending filtering to include all logical operations,
>>>> which would greatly simplify things like this. .
>>>>
>>> --
> 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/iLswKCGcSCM/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 https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0110b7f0-0f9c-48c2-8f95-4c3a48031cce%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/0110b7f0-0f9c-48c2-8f95-4c3a48031cce%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CANE%3DBFKN1E5YMkmg4_zZaONygCwa%2B-as%2BgSO4xYeBzZ_q-7hHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to