[TW5] Image in SideBar

103 views
Skip to first unread message

magev958

unread,
Jul 21, 2015, 5:22:05 PM7/21/15
to TiddlyWiki
Hi all, I'd like to put a image icon.svg infront of the SiteTitle & SubTitle in the SideBar. I tried changing the PageTemplate. It works, sort of, but the image got placed above the title & the Title & SubTitle got dubbled & slightly misaligned. Any ide?

Eric Shulman

unread,
Jul 21, 2015, 5:57:02 PM7/21/15
to TiddlyWiki
On Tuesday, July 21, 2015 at 2:22:05 PM UTC-7, magev958 wrote:
Hi all, I'd like to put a image icon.svg infront of the SiteTitle & SubTitle in the SideBar. I tried changing the PageTemplate. It works, sort of, but the image got placed above the title & the Title & SubTitle got dubbled & slightly misaligned. Any ide?

hmmm... changing "PageTemplate"... and doubled title/subtitle.... sounds like TiddlyWiki *Classic*... not TW5.

Please confirm which version of TiddlyWiki you are using.

Regardless, one possible solution is to add a floating image to the SiteTitle content.

In TW5, you would write:
   @@float:left;[img[http://placekitten.com/40/60]]@@ site title here

In TWClassic, you can use:
   [<img[http://placekitten.com/40/60]] site title here

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:


BJ

unread,
Jul 21, 2015, 6:04:31 PM7/21/15
to TiddlyWiki
When you open the page template tiddler, it is displayed in the story AND as the root template - so there are two copies. Maybe this cis ausing the doubling that you are see?
cheers
BJ

magev958

unread,
Jul 21, 2015, 6:24:44 PM7/21/15
to TiddlyWiki
Yes! Thank you! It worked! When I wrote PageTemplate I really meant $:/core/ui/PageTemplate, it is TW5. 
I experimented and got "@@float:left;[img width=64 [http://placekitten.com/40/60]]@@ site title here" to work like I wanted. 

Many thanks

Reply all
Reply to author
Forward
0 new messages