Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-07-14 09:19:26
- Snerone
- New Member
- From: All over the shop
- Registered: 2008-07-11
- Posts: 2
Javascript linking errors, css path files and css import
Hello,
Fresh newbie here coming from the more complex ExpressionEngine.
I’ve successfully installed and started dabbling txp 4.06 and broadly get it. However I’ve run across a few odd behaviours.
1. Whenever I add any reference to an external JS file (google urchin, or prototype) in my template page and then save it, txp bounces me to the front end page with a 404 Error (“The requested resource was not found.”) message despite the url being http://www.domainame.com/textpattern/index.php. I installed stm_javascript and tried adding my js’s via the styles css panel, but even that bounced me to a front end error message. What’s playing? Is it my htaccess?
2. I’m rather partial to structuring my css in the following way:
i. In the head to all my template pages I have <style type=“text/css” media=“all”>@import “css/feeder.css”;</style> ii. In my feeder.css doc I then reference and import my various stylesheets, eg: @import url(cleareset.css); @import url(default.css); @import url(navigation.css); @import url(whatever.css);How do I go about creating a similar structure using txp tags? I’ve also installed the rvm_css plugin.
3. At the moment, I’ve ditched my preferred above method and created one phat css file with all my various bits in it and simply referenced it to with rvm_css: <txp:rvm_css format=“link” media=“all” n=“default” /> It works, but looking at the code it generates, the url displays the /textpattern/ segment after my domain name, yuck: http://www. domainame.com/textpattern/css/default.css Again, what gives? UPDATE, I’ve solved this little bugbear. The other two above still apply.
Last edited by Snerone (2008-07-14 11:55:48)
Offline
#2 2008-07-14 14:15:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Javascript linking errors, css path files and css import
1. This reminds me of a problem I had years ago. If it is similar, this might be helpful?
2. You don’t have to use TXP tags, you can just go on using your preferred method :)
Offline
#3 2008-07-14 14:29:31
- Snerone
- New Member
- From: All over the shop
- Registered: 2008-07-11
- Posts: 2
Re: Javascript linking errors, css path files and css import
Els,
You hit it in one. A big, smiley thanks.
Offline