[suggestion] list css_id in admin interface

Talk about new features for CMSMS and modules.
Post Reply
backwoodsman
Forum Members
Forum Members
Posts: 38
Joined: Tue Dec 30, 2008 1:09 pm

[suggestion] list css_id in admin interface

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: [suggestion] list css_id in admin interface

Post by Dr.CSS »

If you really want to have the Devs look into this I would file a FR, feature request, in the forge...
backwoodsman
Forum Members
Forum Members
Posts: 38
Joined: Tue Dec 30, 2008 1:09 pm

Re: [suggestion] list css_id in admin interface

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1369
Joined: Tue Dec 23, 2008 8:39 pm

Re: [suggestion] list css_id in admin interface

Post by Wishbone »

backwoodsman
Forum Members
Forum Members
Posts: 38
Joined: Tue Dec 30, 2008 1:09 pm

Re: [suggestion] list css_id in admin interface

Post by backwoodsman »

Thanks for the link. 'Core' wasn't in the list of projects! I've filed the FR now.
Wishbone
Power Poster
Power Poster
Posts: 1369
Joined: Tue Dec 23, 2008 8:39 pm

Re: [suggestion] list css_id in admin interface

Post by Wishbone »

It is, under 'CMS Made Simple Core'

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

Return to “Feature ideas”