Customizing Theme

sectioni

Joined: 2005-08-15
Posts: 23
Posted: Mon, 2005-08-15 02:02

I've been trying to customize the matrix theme to include my header. I saved the theme.tpl file under ../matrix/local and started working on it. I didn't do too well, as I must have removed some code that I shouldn't have - or something. No problem, I'll delete the 'local' directory and start all over again. Problem is that the entire gallery is messed up in the matrix theme. I completely removed the matrix directory from the web server and uploaded a fresh copy from the installation package. Still messed up. The problem is the pointer to the css file. It looks like this in the generated html code:

<link rel="stylesheet" type="text/css" href="../%7Bg-%3Etheme%20url="theme.css"}"/>

There's got to be something wrong with that. The problem is that I don't even know why it's looking elsewhere. There are no local directories on the web server at all. By the way, that was also my main problem when trying to modify the theme.tpl file - the css pointer was all messed up just like above. Am I doing somehting wrong? Should the local directory be up another level or something? How do I get it to build the css link correctly again? The /matrix directory should be a direct reflection of the installation package.

Here's my very bad looking gallery:

http://www.sectioniiiwrestling.com/gallery2/

Any Ideas?

Thanks very much.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2005-08-15 03:50

When you make changes to your theme, you need to delete the template cache. Go to Site Admin > Maintenance > clear template cache.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-08-15 06:11
 
sectioni

Joined: 2005-08-15
Posts: 23
Posted: Mon, 2005-08-15 12:50

Thank you for your reply. Unfortunately, neither option had any effect. Clearing the template cache reports that it was successful, but nothing happens. As far as the suggestions from the gallery2 faq, there is no documentation on manually clearing the smarty cache. I'm not sure if that means completely removing the templates directory from g2data/cache directory or something in the sql tables (neither worked anyway). There is no /lib/tools/test in the gallery2 directory so I couldn't try that one. And i do not have command line access to my web host, so I couldn't try the touch command.

Is there anything else I can try?

Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2005-08-15 13:52

mindless, I updated the page to reflect the correct location that tool is in now.

sectioni, Give it a try again. Also clear you browser cache.