Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linking to stylesheet in template
06-19-2013, 06:14 AM
Post: #1
Linking to stylesheet in template
I created a new document site.css and saved it at the root:
http://2cvqld.com/site.css

I then followed the instructions at
http://docs.clearfusioncms.com/user-guid...nd-themes/
and included
<link href="[[~2]]" rel="stylesheet" type="text/css" />
in the head of the template.
But the output ends up being
<link href="/home/site.css" rel="stylesheet" type="text/css">
instead of
<link href="/site.css" rel="stylesheet" type="text/css">

I reset the cache because originally I might have saved the site.css file under th e"Home" file, but then I moved it to the root. But that did not work.
I checked the database and the parentID of both "home" and "site.css" is 0.
Find all posts by this user
Quote this message in a reply
06-19-2013, 09:04 AM
Post: #2
RE: Linking to stylesheet in template
Just looking at this, for some strange reason the data in the database tables are not being written, one column is but the other columns are as if they are readonly, I've never seen anything like it, the queries are only simple updates on the columns.

clearFusionCMS Lead Developer
Find all posts by this user
Quote this message in a reply
06-19-2013, 10:01 AM
Post: #3
RE: Linking to stylesheet in template
It seems that your server is returning a value I don't expect from a set of queries to do with shuffling Document orders, that caused it to think you were moving the document to the root instead of reordering and hence confusion, I've modified the code to compensate for it so it should be working again.

I've got to look into why it's doing that, I suspect it's a difference in the MySQL/MySQLi client that I've not found before, there's so many permutations of configuration out there. Once I've checked everything I'll roll a new point release.

Most installations use MySQLi as from PHP 5.5 on wards MySQL library has been depreciated and will be removed at some future point.

clearFusionCMS Lead Developer
Find all posts by this user
Quote this message in a reply
06-19-2013, 10:18 AM
Post: #4
RE: Linking to stylesheet in template
I guess I will have to look at enabling MySQLi on the server. As far as I know, the server is up to date with all software, but I will check.
Find all posts by this user
Quote this message in a reply
06-19-2013, 07:13 PM
Post: #5
RE: Linking to stylesheet in template
The MySQL server is several versions old, from memory it's running an unsupported version.

clearFusionCMS Lead Developer
Find all posts by this user
Quote this message in a reply
06-20-2013, 09:54 PM
Post: #6
RE: Linking to stylesheet in template
Upgraded MySQLD and PHP and now have MySQLi as well, so I am ready for the 21st century Blush
Find all posts by this user
Quote this message in a reply
06-21-2013, 07:37 AM
Post: #7
RE: Linking to stylesheet in template
Welcome Wink

I've modified the config file system/app/config/appConfig.php so that it's using MySQLi which should solve all the issues until I've finished looking for all the places that it's tripping up with when running on the version of software that you were using.

clearFusionCMS Lead Developer
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)