Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-24 20:03:02

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

unstyled article page

i’m sure this has been answered in the forums, but my searching has proven fruitless so far, and i did not find this mentioned in the FAQ either. i’m at a loss as to why my articles are unstyled when the permanent link is clicked. i have 2 articles so far, in two different sections and neither of them are styled. here are links to the sections, followed by the permanent links to the articles currently in the sections:

http://inkwire.net/txp/work
http://inkwire.net/txp/work/orgasmic-birth-documentary-film-site

http://inkwire.net/txp/blog
http://inkwire.net/txp/blog/welcome

what i basically want the articles to do is appear in what looks like the same page. for example, the Work page will have an article on the left half of the page and a portfolio consisting of thumbnails on the right. when you click a thumbnail, ie the permanent link to an article, it would look like it gets loaded into the left half of the page.

all of my pages are not using txp’s css – the css file is linked externally to all the different section pages. just to be sure, i copied my css into txp’s default css so that my styling would be used regardless.

i’m sure i’m missing something very basic – i would appreciate any assistance on this.

thank you.


arp laszlo
www.inkwire.net

Offline

#2 2006-04-24 20:08:19

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

Re: unstyled article page

You need to change the url for your CSS file in your page(s) to: /txp/css/main.css.

Offline

#3 2006-04-24 20:14:36

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

Re: unstyled article page

doing that unstyled all of my sections. the css url needs to be ./css/main.css if i keep using the css file in the root. i had wanted to test it in the root, since the splash page is an index.html, but the index.php superceded that for whatever reason, so i have to do the testing in a folder instead. i decided to use the /css/ folder in the root tho – are you saying that i need to move the css into the txp folder (ie my textpattern testing folder)?

Last edited by puthupa (2006-04-24 20:17:03)


arp laszlo
www.inkwire.net

Offline

#4 2006-04-24 20:20:21

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

Re: unstyled article page

What do you mean? That’s where your stylesheet is: /txp/css/main.css (the starting slash is important). You also need to update the urls in your stylesheet. But, since you want to have this in the root of your site…

i had wanted to test it in the root, since the splash page is an index.html, but the index.php superceded that for whatever reason, so i have to do the testing in a folder instead.

Just move all your files and folders out of “txp” and into the root of your site, then add to your .htaccess file: DirectoryIndex index.html index.php.

Offline

#5 2006-04-24 20:32:09

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

Re: unstyled article page

ah – so by editing the .htaccess file i can make sure that the index.html is opened rather than the index.php? excellent! i had been under the impression that index.html automatically, which is what it did when i last set up a txp site about a year ago. thank you.


arp laszlo
www.inkwire.net

Offline

#6 2006-04-24 21:11:57

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

Re: unstyled article page

Yep. It’s a server setting, so it can differ from host to host or change over time. The .htaccess rule overrides whatever the default is.

Offline

#7 2006-04-24 21:29:58

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

Re: unstyled article page

thank you so much for the info!


arp laszlo
www.inkwire.net

Offline

#8 2006-04-24 21:59:12

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

Re: unstyled article page

sorry to bother you again, but the index.php is still taking precedence over the index.html. i edited the .htaccess file like below. it originally started off #DirectoryIndex index.php index.html , so it made logical sense to reverse them as follows:

#DirectoryIndex index.html index.php
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

anything else i should do? also, my host is DreamHost, if that helps. thank you.


arp laszlo
www.inkwire.net

Offline

#9 2006-04-24 22:29:06

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

Re: unstyled article page

You need to remove the # at the start of that line (that’s a comment, which “hides” that line from the server). :)

Offline

#10 2006-04-24 22:33:49

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

Re: unstyled article page

thank you!


arp laszlo
www.inkwire.net

Offline

#11 2006-04-24 22:41:53

puthupa
Member
From: ny
Registered: 2004-10-07
Posts: 27
Website

Re: unstyled article page

man o man o man. working: index.html loads by default, and index.php is accessible directly. not working: sections don’t work, like mydomain.com/contact. thoughts?


arp laszlo
www.inkwire.net

Offline

#12 2006-04-24 22:52:47

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

Re: unstyled article page

Calm down. :)

Your clean urls worked fine before, correct? If so, it means we just need to fix your .htaccess file a little bit. Try changing this:

RewriteRule ^(.*) index.php

to this

RewriteRule ^(.*) /index.php@

(add a slash)

Last edited by Mary (2006-04-24 22:53:53)

Offline

Board footer

Powered by FluxBB