Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-05 04:42:39

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

CSS linking, Image management, best practices, what do you do?

Hi,

I personally would prefer to maintain my CSS outside of the TXP database… same with template images.

What do you folks prefer?

What are the advantages of using the TXP DB for CSS? How does TXP handle the caching of the CSS when it is in the DB?

Would it be ok for me to have a folder inside my TXP images folder (which would house my template images)?

Main reason why I would prefer to have my CSS and images as physical files on the server:

1. Many CSS files
2. Easy to maintain/edit if external via Dreamweaver.
3. Caching issues if stored in DB????

Thoughts, suggestions, input, guidance would all be appreciated. :)

Thanks,
Micky

Offline

#2 2006-07-05 10:21:59

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: CSS linking, Image management, best practices, what do you do?

I prefer to manage article images with Textpatten since it’s easier (bas_img_selector or upm_image helps!), but keep site-design graphics in another directory (_lib or assets/) with FTP.

For CSS, it is more convenient to keep it in the database, if you’re traveling, or make frequent edits on other computers. However, the CSS will load slower. That’s the only real drawback. What I’m starting to use TXP CSS for is managing IE-conditional stylesheets.

Offline

#3 2006-07-05 13:54:34

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: CSS linking, Image management, best practices, what do you do?

For simpler sites, I use textpattern wholy.

It’s when things get more complicated that they diverge.
For instance, I like to use CSS-SSC with my style sheets when I have alot of them and I am doing a company site as it simplifies defining styles and colors ahead of time.

Also, when I created this site, I felt the need to put the actual textpattern index behind /library/. The actual index page you’re seeing is written by myself and then loads in a whole bunch of stuff that I felt, at the time, could not be done in textpattern. I’ve since discovered that maybe I should have just applied myself to researching a little and actually done it from within textpattern.

Best practices…? Ummm…do what helps you do the job right.

Offline

#4 2006-07-06 06:39:50

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

Re: CSS linking, Image management, best practices, what do you do?

Hi Deldindesign and Walker! Thanks for the quick responses, I really appreciate you folks taking the time to help-out a TXP noob like me.

deldindesign wrote:

I prefer to manage article images with Textpatten since it’s easier (bas_img_selector or upm_image helps!), but keep site-design graphics in another directory (_lib or assets/) with FTP. For CSS, it is more convenient to keep it in the database, if you’re traveling, or make frequent edits on other computers. However, the CSS will load slower. That’s the only real drawback. What I’m starting to use TXP CSS for is managing IE-conditional stylesheets.

Ah, yes… for sure. TXP article image management I plan on doing the same, although I have yet to look into those tags you mention.

Oh, so you keep your other graphics (template/site-design) not in your image folder (currently I have a “template” folder in my images folder, but I am concerned about that causing probs with TXP functions and such.)

Oh, I am tempted to use the TXP db for my CSS… Although, I do have many to maintain (IE-specific, Links, Forms, Structure, so on…), I do prefer to use Dreamweaver to download/upload/edit… Maybe once I have my style sheets figured-out I will take advantage of the TXP Database. :)

Walker wrote:

For simpler sites, I use textpattern wholy. It’s when things get more complicated that they diverge. For instance, I like to use CSS-SSC with my style sheets when I have alot of them and I am doing a company site as it simplifies defining styles and colors ahead of time. Also, when I created this site, I felt the need to put the actual textpattern index behind /library/. The actual index page you’re seeing is written by myself and then loads in a whole bunch of stuff that I felt, at the time, could not be done in textpattern. I’ve since discovered that maybe I should have just applied myself to researching a little and actually done it from within textpattern. Best practices…? Ummm…do what helps you do the job right.

Ah, CSS-SSC is interesting… I have not seen this technique before. Sounds very interesting though. :)

Nice site btw, I really like the fusion of fluid-width/Flash.

The index looks like it works to me. I am a big noob to TXP, so I am still struggling (hmm, struggling is not a good word… compared to Expression Engine, TXP is amazingly easy…) to figure out the best way to manage content… I would have to agree with you though “do what helps you do the job right”. Makes perfect sense to me. :)

Once again, many thanks to both of you for helping out and sharing your knowledge and expertise!

Cheers,
Micky

Offline

#5 2006-07-06 14:43:52

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: CSS linking, Image management, best practices, what do you do?

mhulse wrote:

3. Caching issues if stored in DB????

I use other systems that keep the CSS in the file system instead of the database, whenever I make a change to the CSS, I have to refresh the browser window to see the changes.

In Textpattern, the next time I view the site or an article, the changes are there. So storing it in a database is better for you and your visitors if you want your changes to be instant.

Offline

Board footer

Powered by FluxBB