Page 1 of 1

[suggestion] list css_id in admin interface

Posted: Tue Mar 15, 2011 11:32 am
by backwoodsman
When developing sites, using browser developer tools, the css_id is available, but not the name of the css pages. This makes it very difficult to debug css problems.

I would like to suggest adding the id to the display in listcss.php and listcssassoc.php. as a permanent feature of cmsms.

The changes are obvious and very simple:

listcss.php:

Code: Select all

103a104
>               echo "<th>ID</th>\n";
121a123
>               echo "<td>".$one["css_id"]."</td>\n";
listcssassoc.php:

Code: Select all

204a205
>         $tmp['id'] = $row['assoc_css_id'];
templates/listcssassoc.tpl

Code: Select all

10a11
>     <th>ID</th>
20a22
>       <td>{$one.id}</td>
And, while we are at it, it is useful to know which stylesheet ID you are editing, so add this too:

editcss.php

Code: Select all

364c364
<                       <p class="pagetext">*<?php echo lang('name')?>:</p>
---
>                       <p class="pagetext">[ID: <?php echo $css_id ?>]&nbsp;&nbsp;*<?php echo lang('name')?>:</p>
(beware: the last line may be split right in the middle of a '?>' php closing tag -- be sure to re-join it!)

HTH

Re: [suggestion] list css_id in admin interface

Posted: Thu Mar 17, 2011 9:04 pm
by Dr.CSS
If you really want to have the Devs look into this I would file a FR, feature request, in the forge...

Re: [suggestion] list css_id in admin interface

Posted: Fri Mar 18, 2011 10:33 am
by backwoodsman
I would file a FR, feature request, in the forge...
Good idea. I would have done, but could not see which project to post it against.

Re: [suggestion] list css_id in admin interface

Posted: Fri Mar 18, 2011 1:51 pm
by Wishbone

Re: [suggestion] list css_id in admin interface

Posted: Fri Mar 18, 2011 5:23 pm
by backwoodsman
Thanks for the link. 'Core' wasn't in the list of projects! I've filed the FR now.

Re: [suggestion] list css_id in admin interface

Posted: Fri Mar 18, 2011 6:55 pm
by Wishbone
It is, under 'CMS Made Simple Core'

http://dev.cmsmadesimple.org/project/li ... r=C&page=2