CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#6281] show css_id in admin interface

avatar
Created By: Richard Lyons (backwoodsman)
Date Submitted: 2011-03-18 12:18

Assigned To:
Resolution: Fixed
State: Closed
Summary:
show css_id in admin interface
Detailed Description:
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 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:
103a104
>               echo "<th>ID</th>\n";
121a123
>               echo "<td>".$one["css_id"]."</td>\n";


listcssassoc.php:
Code:
204a205
>         $tmp['id'] = $row['assoc_css_id'];


templates/listcssassoc.tpl
Code:
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:
364c364
<                       <p class="pagetext">*<?php echo lang('name')?>:</p>
---
>                       <p class="pagetext">[ID: <?php echo $css_id
?>]&nbsp;&nbsp;*<?php echo lang('name')?>:</p>

HTH

History

Comments
avatar
Date: 2013-03-16 23:26
Posted By: Robert Campbell (calguy1000)

The DesignManager in CMSMS 2.0 has this feature.
      
avatar
Date: 2015-09-17 12:47
Posted By: Robert Campbell (calguy1000)

done for 2.0
      
Updates

Updated: 2015-09-17 12:47
resolution_id: 6 => 7
state: Open => Closed

Updated: 2014-03-14 23:22
resolution_id: 7 => 6

Updated: 2013-03-16 23:26
resolution_id: => 7