tips and tricks for movable type

link that stylesheet
March 19, 2003

Here's something I figured out ages ago and never got around to posting.

There's no need to rebuild your stylesheet after making changes to it. Simply use "link this template to a file" instead:

1. Go to Edit Templates and select your Stylesheet.

2. In the Link this template to a file window, type the name of your stylesheet (the same name specified in Output File Path) - example, styles-site.css.

3. Uncheck the option to Rebuild this template automatically when rebuilding index templates.

4. Press Save.

There you go! Any changes you make to your stylesheet will be reflected instantly without a rebuild.

Comments

Oh. My. Goodness. That's so simple that I feel like a complete idiot right now. :) But I guess things like that are like the "rebuild" button that can rebuild just that page... not everyone knows that either.

:) :) :)

by Jennifer | 03.19.03 07:03 PM

Cool. Thanks!!

by say | 03.19.03 09:15 PM

Do you have any idea how much time you've saved me? Now what I am going to do with all that time I used to spend sitting around watching MT rebuild? I'm going to have to find some other meaningless waste of time, that's what!

Gah, you productivity enhancer, you! =)

by Destarius | 03.20.03 10:12 PM

This is the #1 MT tip of all time, really. :D I remember when you told me this, girlie, and I was all "Oh. My. Goodness" also! hee hee. It's great. I also use it for pages I manage within MT that don't have tags in them that need to be built, like php scripts.

by bmk | 03.21.03 08:37 AM

room-a-zoom-zoom!

by bmk | 03.21.03 08:38 AM

Sorry about the double trackback, girlie. The first time I posted it, it said it timed out while pinging.

:)

by iki | 03.22.03 11:16 AM

Hi I got a new domain I am now at iced-glare.org formerly envy-us com
I see I am one of the top 5 people with the most comments [well from my old domain]

by iced glare | 03.23.03 08:14 PM

i wish i'd thought to time my rebuild before i did that, but i'm sure it cut the time in half, at least. you rock.

by tanya | 03.26.03 05:30 PM

That is a great tip. Thank you.

by Manfre | 04.29.03 09:45 AM

I'm confused cuz the file is listed as styles-site.css .. yet when I look on my site, via my ftp interface, i don't see this file .. but rather: stylyes.css. Why am I seeing two different file names.

When I update "styles.css", will "styles-site.css" somehow be automatically updated?

by Rad | 05.25.03 04:21 PM

The file you're seeing, styles.css, is the stylesheet for the MT interface, not for your blog. When you rebuild your blog files for the first time, a file called styles-site.css will be generated in your blog directory.

by girlie | 05.25.03 05:13 PM

Got it. Thank you, kindly.

by Rad | 05.26.03 11:27 AM

GREAT tip - thanks. One question: will this also work with the Main Template?

by David | 06.13.03 09:28 AM

Well, no, not quite.

The Main Index Template has to be rebuilt in order for the MT tags to be processed - the stylesheet contains no MT tags, so rebuilding it is unnecessary.

You can link your Main Index Template to an external file, but you can't link it to itself (i.e., output file and linked file cannot be the same name).

by girlie | 06.13.03 11:30 AM

Why not just hit the rebuild button on the stylesheet template? It only rebuilds the stylesheet. Isn't that more convenient than ftp'ing a new stylesheet over?

ciaran

by ciaran | 06.26.03 01:07 PM

I think you're missing the point of the tip - this doesn't require you to FTP your stylesheet over at all - you make the changes in MT, hit SAVE, and the stylesheet is updated instantly. No REBUILD required.

If you are editing styles-site.css externally and FTPing it, you don't need to rebuild it at all either.

by girlie | 06.26.03 05:39 PM

Ohh... so that's what that does...

Now I can manage all those pesky (non-MT tag) files without whipping out the ftp client. Total control from my browser! haha!!

by Jack | 10.15.03 07:35 PM

I have alway asked me for what the "Link this template to a file" function stands.
Because of this kind of small thinks I like my Movable Type and the Girlie Tips :)

Greetings
Dominik

ps. Why can I not use "freegames24 dot de/internes/onlinespiele_news/" in the URL-Field? The mt-comments.cgi tells me, that it is "questionable content" :(

by Dominik | 03.26.04 03:28 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 6
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/143)

» Stop Stylesheet Rebuilds!
Excerpt: Since I'm learning CSS by playing around with the style sheets and then looking at the results, rebuilding is a pain in the ass. Now, yesterday I was in the groove. I took a site from the default template "Stormy"...
Weblog: The After Hours Pub
Tracked: 03.22.03 11:00 AM

» Good movabletype tips
Excerpt: Good movabletype tips via the girlie matters
Weblog: Stoyan Zhekov's Weblog
Tracked: 05.01.03 02:39 AM

» Good movabletype tips
Excerpt: Good movabletype tips via the girlie matters
Weblog: Stoyan Zhekov's Weblog
Tracked: 05.06.03 03:01 AM

» Transmogrify your blog
Excerpt: Some insight into the construction of this site with a smattering of tips and tricks...
Weblog: the golden path
Tracked: 08.01.03 07:40 PM

» MTSetVar/MTGetVar and MTSetVarBlock Plugin
Excerpt: MT 3.1以降で加わった機能にOn-the-spot Rebuild(と今私が勝手に名前を付けた)機能があります。これは、インデックステンプレートを編集・保存すると、再構築を促す表示がなされ、「その場で...
Weblog: Ogawa::Memoranda
Tracked: 10.14.04 06:39 PM

» Movable Type変更点いろいろ
Excerpt: どこかに引っ越す時用に主な変更点をメモっておく。 カレンダーのリンク先変更 Sillybean: Various tricks with archive calendars How to link to a full day's entries instead of the last one on that day: Turn on daily archiv...
Weblog: Sakae's Monologues
Tracked: 10.18.04 01:17 AM