What to use for a site header, $:/tags/PageTemplate or $:/tags/AboveStory ?

131 views
Skip to first unread message

Danielo Rodríguez

unread,
Jun 1, 2015, 3:13:30 PM6/1/15
to tiddl...@googlegroups.com
Hello

I can remember that in the good old days we usually use $:/tags/PageTemplate to position a tiddler out of the story river. It would need position fixed aditionally. Recently I saw that $:/tags/AboveStory is used for site headers. The problem with this setup is that I can not get rid of the top margin,padding or whatever it is. This only happens on thin windows. On normal ones I can use a css with top: -20 but that does not work when
the breakpoint is reached, even if the sidebar is hidden.

I would be grateful by any advice.

Thanks in advance.

Jeremy Ruston

unread,
Jun 7, 2015, 9:11:26 AM6/7/15
to TiddlyWiki
Hi Danielo

I think you're running into the problem that the Vanilla base theme gives both padding and a minimum height to the .tc-sidebar-header div.

Presumably you can workaround it in this case by using list-after to move your tiddler to the top?

Best wishes

Jeremy.


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7b96b44f-4b6b-443a-b874-004ac878ac66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Danielo Rodríguez

unread,
Jun 7, 2015, 1:21:38 PM6/7/15
to tiddl...@googlegroups.com
Hello Jeremy,

Yes, that was exactly the problem. I fixed it just giving display none to the sidebar. Since it is exactly what I wanted for my purposes I think your solution is much better for all the most common cases.

Do you think that the default behavior should be to not display the sidebar at all when it's hidden? I mean display none.

And what about the other question? Which idea is better for a header? Page template tag or the above story one?

Danielo Rodríguez

unread,
Jun 7, 2015, 6:45:10 PM6/7/15
to tiddl...@googlegroups.com
Hello Jeremy,

Sorry for asking again but,what is the equivalent for a footer?

Jeremy Ruston

unread,
Jun 9, 2015, 1:34:52 PM6/9/15
to TiddlyWiki
Hi Danielo

> Do you think that the default behavior should be to not display the sidebar at all when it's hidden? I mean display none.

Possibly so, yes. But of course there's a backwards compatibility issue.

> Which idea is better for a header? Page template tag or the above story one?

It depends what you want to achieve :)

Basically, $:/tags/PageTemplate is the best option unless you're trying to do something that needs to resize to track the size of the story river.

> Sorry for asking again but,what is the equivalent for a footer?

There's $:/tags/BelowStory to force things underneath the content of the story river.

To control the ordering of $:/tags/PageTemplate tiddlers you can use the usual list-before/list-after.

Best wishes

Jeremy.




On Sun, Jun 7, 2015 at 11:45 PM, Danielo Rodríguez <rdan...@gmail.com> wrote:
Hello Jeremy,

Sorry for asking again but,what is the equivalent for a footer?
--
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.
Reply all
Reply to author
Forward
0 new messages