Page 1 of 1

How to remove text boxes/dropdowns from Edit Content page

Posted: Tue Aug 16, 2005 4:33 pm
by Morlan
I need to hide some items from the Edit Content page. I don't want users changing these settings:
Content Type:
Title:
Menu Text:
Parent:
Page Alias:
Template:
I understand that these are very important fields and that they can't removed, however, is there a way to grey them out or hide them?

I've looked at editcontent.php and understand that the following piece of code generates the HTML that creates these fields:

Code: Select all

?>
<div class="pageoverflow">
	<p class="pagetext"><?php echo $contentarray[$i][0]; ?></p>
	<p class="pageinput"><?php echo $contentarray[$i][1]; ?></p>
</div>
<?php
The above generates the following:
Menu Text:

I want the code to generate input type="hidden" so that the field are invisible.

Could somebody tell me which file generates this code so that I can alter it?

Thanks

Re: How to remove text boxes/dropdowns from Edit Content page

Posted: Thu Aug 18, 2005 9:49 pm
by Morlan
Image

These are the fields I'm talking about. The user doesn't need to change them as Navigation is handled by static HTML in the templates.
They also take up a lot of room on the edit content page.

There must be a way of altering the code so that it's generates input type="hidden"?

edit: I've found the piece of code that generates this. I changed it to hidden but the only problem is that it hides the whole Content box too. Ah well, I give up.

Re: How to remove text boxes/dropdowns from Edit Content page

Posted: Thu Oct 27, 2005 4:29 pm
by simplyworks
I"ve just started working with excellent system, but it seem to me your can set your clients website up with HTML BLOBs. then they would only be able to change the text.

Re: How to remove text boxes/dropdowns from Edit Content page

Posted: Thu Oct 27, 2005 10:00 pm
by calguy1000
It seems to me that a better way to handle this would be to create another permission "change page structure" or "alter content" or some such itellegently phrased permission and if the user doesn't have that permission to just remove these fields all together.

if the fields aren't set on the "commit" side of the code then it just doesn't update those fields in the content table.

Just my $0.02 CDN.