Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-06 22:32:49

scdoody
Member
Registered: 2006-10-18
Posts: 129

External CSS and include files

Two Questions:

1. Can I move my CSS to an external CSS files that I can edit in Dreamweaver or something rather than in the Textpattern interface – I would just rather edit it in Dreamweaver because its easier to find things within the file.

2. Can I create include files so that I don’t have to edit the same layout elements in multiple page presentation files? For example, I added a div as a header to the default page – but now I’ll have to go add it to the other pages. If I could make include files, I would only have to do this once.

Sarah

Offline

#2 2007-05-06 22:42:04

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: External CSS and include files

1. Yes, just change the templates to call it from whatever spot you upload it.

2. Create a new form, call it “header.” Put your repeatable code in there. Then in your templates, use:

<txp:output_form form=“header” />


TextPattern user since 04/04/04

Offline

#3 2007-05-07 01:56:00

scdoody
Member
Registered: 2006-10-18
Posts: 129

Re: External CSS and include files

I tried making the header a form and then using output_form – but when I load my site in the browser I get a message that says “form not found” . . . but in my forms, it does exist – it is set the type to “article”.

What else could be causing this?

Offline

#4 2007-05-07 03:27:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: External CSS and include files

Check that you’re using the right spelling. The form type should actually be “misc” but that shouldn’t cause the problem you’re having.

Offline

#5 2007-05-07 03:33:24

scdoody
Member
Registered: 2006-10-18
Posts: 129

Re: External CSS and include files

It is still doing it –

“tag error: form not found”

and I checked spelling – everything is perfect:

Here is what I have in my form:

<div id=“foot”><p>&copy; 2007 All rights reserved.</p></div>

Here is how I call the form in my default page template:
<txp:output_form form=“footer” />

Help!!!!!

Offline

#6 2007-05-07 04:51:20

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: External CSS and include files

Make sure your quotes are correct: <txp:output_form form="footer" />, not <txp:output_form form=“footer” />.


Alex

Offline

#7 2007-05-07 04:59:09

scdoody
Member
Registered: 2006-10-18
Posts: 129

Re: External CSS and include files

YESSSSSSSSSSSSSSSSSSSS – thank you!!!!!

Offline

Board footer

Powered by FluxBB