Visibility

onid

No avatar

2007-04-22 18:04

Hi,

I am wanting to show whether a page is visible or not in the admin/pages_list.tpl.
Is this easily done?

» Quick.Cms v1.x

Thanks in advance

merci

No avatar

2007-04-23 09:23

onid-
1) firstly you have to edit core/pages-admin.php in functions listPagesAdmin(), listSubPagesAdmin() and find this:

list( $aList['iPage'], $aList['iPageParent'], $aList['sName'], , , $aList['iPosition'], $aList['iType'] ) = $aData[$i];

and replace to

list( $aList['iPage'], $aList['iPageParent'], $aList['sName'], , $aList['iStatus'], $aList['iPosition'], $aList['iType'] ) = $aData[$i];



2) edit file templates/admin/pages_list.php find <td class="name"> and change for
<td class="ls_$aList[iStatus]">

3) edit file templates/admin/style.css and paste:
#list td.ls_0 a{color:gray;}
#list td.ls_1 a{}

onid

No avatar

2007-04-23 13:32

Thankyou very much!

Back to top
about us | contact