Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 33

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 12.04.2004, 01:36   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 20
Nick Weavers is on a distinguished road
Default path names for templates?

I am a little confused over the path names I have to use to get a template to work. It is mainly to do with the CSS.

I am on a shared server and my html is all held in the httpdocs folder so normally everything is specified relative to that.

After installing Mambo I now have a folder under httpdocs called Mambo and a directory called templates under that.

Within the templates folder I have a theme folder called midnight and within that I have another sub folder called css which holds a style sheet called template_css.css

Also within midnight I have index.php and templateDetails.xml

So the structure looks like this:

httpdocs/Mambo/templates/midnight/css/template_css.css
httpdocs/Mambo/templates/midnight/index.php
httpdocs/Mambo/templates/midnight/templateDetails.xml

Within index.php I have the line:
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
(It's what Dreamweavers creates when I reference the css using it's file browser to locate it)

Within the templateDetails.xml I have the lines

<files>
<filename>index.php</filename>
<filename>template_thumbnail.png</filename>
</files>
<images>
<filename>images/arrow.png</filename>
</images>
<css>
<filename>css/template_css.css</filename>
</css>

When I publish my template, the css does not seem to be getting picked up... am I sure I'm doing something dumb and just can't see it?

I would be very grateful for any help anyone can give.

Cheers,
Nick.
Nick Weavers is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12.04.2004, 01:41   #2 (permalink)
Senior Mamber
 
MamboHut's Avatar
 
Join Date: Mar 2004
Location: New Jersey, USA
Posts: 143
MamboHut is on a distinguished road
Default Re: path names for templates?

very simple , only change the line in your index.php that reads
<link href="css/template_css.css" rel="stylesheet" type="text/css" />

change it to

<link href="templates/midnight/css/template_css.css" rel="stylesheet" type="text/css" />

Don't change the templateDetails.xml file, it look fine that way
MamboHut is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have the PATH as SITE NAME? alfri Mambo 4.5 'How Do I' Questions 1 24.05.2004 01:18
How to get field names from database, and use pagebreaks too noobnuggets Mambo 4.5 'How Do I' Questions 2 08.04.2004 23:21


All times are GMT +2. The time now is 02:29.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.