Hi FrD

I've noticed a problem in my TW with $:/core/ui/PageStylesheet. It seems
> that the user's stylesheets are loaded first.
>
> So I looked at the filter in this tiddler and found :
>
> <$list filter="[all[tiddlers+shadows]tag[$:/tags/stylesheet]]">
> <$transclude/>
> </$list>
>
> Maybe this should be inverted in shadows+tiddlers ?
>

The 5.0.8 behaviour was to load shadow stylesheets before user stylesheets,
but there wasn't a good way to control the relative ordering of stylesheets.

In 5.0.9, the [all[]] operator doesn't guarantee the order of the list of
tiddlers that it generates. The sorting is being done by the [tag[]
operator, as described here:

http://tiddlywiki.com/static/TiddlerTags.html

If you want your stylesheet to be loaded after a specific stylesheet then
you are best using the `list-after` field. For example, set `list-after` to
"$:/themes/tiddlywiki/vanilla/base".

We could change the filter expression so that shadows are loaded before
user stylesheets:

<$list filter="[all[shadows]tag[$:/tags/stylesheet]]
[all[tiddlers]tag[$:/tags/stylesheet]]">
<$transclude/>
</$list>

But the problem then would be that there wouldn't be any way to interleave
shadow stylesheets with user stylesheets. It would also mean that ordering
would get disrupted whenever a shadow stylesheet were overridden with a
user stylesheet.

Best wishes

Jeremy


> FrD
>
> Le mardi 15 avril 2014 23:34:59 UTC+2, Jeremy Ruston a écrit :
>>
>> I'm pleased to announce that TiddlyWiki 5.0.9-beta is now available from
>> npm and at:
>>
>> http://tiddlywiki.com/
>>
>> There's an extensive list of changes under "Release History" (or click
>> the version ribbon at the top right). Highlights include:
>>
>> * "Hamburger" icon to remove the sidebar and expand the story river
>> * A new "filter" tab in advanced search, with a dropdown of canned
>> searches
>> * New seamless theme that is slightly more dense than the default Snow
>> White theme
>> * Performance improvements, particularly during editing
>>
>> Many thanks to the contributors to this release, including: Stephan
>> Hradek, Mario Pietsch, Danielo Rodríguez, Bram Chen, Xavier Cazin, James
>> Anderson, Michael Fogleman, Maurizio Pollio, Daniel Barrett, Simon Baird,
>> @nameanyone, @TheDiveO, @buggyj and @pekopeko1.
>>
>> As ever, exercise caution when updating existing wikis by making sure you
>> keep a trail of operational backups.
>>
>> Feedback and comments welcomed!
>>
>> Best wishes
>>
>> Jeremy.
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to