print_layout.css

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Pappnase

print_layout.css

Post by Pappnase »

Hello Oliver

is this an bug!? Cos if i want create an template the print_layout is set to default!?

Pappnase
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

is the fontend.css not in dir?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Pappnase

Post by Pappnase »

it is but the first what would be shown is the printlayout.
it looke like the printlayout would be set as default.

pappnase
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Hm on my server it is frontend.css :?:
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

i think that is Olivers way of saying.. you have been plainyg with it ;)
Pappnase

Post by Pappnase »

funny!

don't understand!
Image

Pappnase
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Confirm this in "include/inc_tmpl/admin.templates.tmpl.php" :

Code: Select all

<?php
// get css file list
if(is_dir(".".$phpwcms["templates"]."inc_css")) {
	$css_handle = opendir( ".".$phpwcms["templates"]."inc_css" );
	while($css_file = readdir( $css_handle )) {
   		if( $css_file != "." && $css_file != ".." && preg_match('/(\.css)$/', strtolower($css_file)) ) {
			echo '<option value="'.$css_file.'"';
			echo ($css_file == $template["css"]) ? " selected" : "";
			echo '>'.$css_file."</option>\n";
		}
	}
	closedir( $css_handle );
}

?>
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

This is maybe on what time the files where created on disk - and that seems to define the order in list.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply