[suggestion] list css_id in admin interface
Posted: Tue Mar 15, 2011 11:32 am
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:
listcssassoc.php:
templates/listcssassoc.tpl
And, while we are at it, it is useful to know which stylesheet ID you are editing, so add this too:
editcss.php
(beware: the last line may be split right in the middle of a '?>' php closing tag -- be sure to re-join it!)
HTH
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";
Code: Select all
204a205
> $tmp['id'] = $row['assoc_css_id'];
Code: Select all
10a11
> <th>ID</th>
20a22
> <td>{$one.id}</td>
editcss.php
Code: Select all
364c364
< <p class="pagetext">*<?php echo lang('name')?>:</p>
---
> <p class="pagetext">[ID: <?php echo $css_id ?>] *<?php echo lang('name')?>:</p>
HTH