English 中文(简体)
MODx removing content resource field
原标题:
  • 时间:2009-12-04 20:25:38
  •  标签:
  • modx

How do I hide the content resource field from non-admin users?

最佳回答

Hey, thanks for the answer. I thought I d post what I ended up doing.

With MODx Evo 1+, you have managermanager included. After removing the included file(which is used rather than the default chunk) using the rules in there I can rename hide and sync content.

问题回答

So you d like a user to be able to change document fields such as title, alias etc but not the content?

You can not lock individual fields to admin user (as far as I know). You can either lock the whole page/resource or you could put the content that you want to be locked into the template for that document and lock the template to only the admin user which would achieve the same effect.

Make sure you don t have a reference to [+content+] in the template and even if the user enters document content it won t impact the page.

New answer instead of editing the above as this is a much cleaner solution.

  1. Create different user groups eg. Admin & Editor
  2. Make sure admin is in the admin user group
  3. Create a template variable for your content and in the Access Permissions section only tick the admin group.
  4. Assign the TV to your template.

Now if the user isn t in the admin user group the TV won t even be visible when they are editing the resource.





相关问题
predefine template for new resource/document

I would like to set the new child documents to default to a set template that is different from the parent. I ve looked through managermanager, but looks like it is unable to do this. mm_inherit can ...

Modx css issue not pulling in styles on the form

I m editing a site using Modx cms. I m trying to add a contact form to the contact page. I already have one in the sidebar specified in a template. The code on the contact page form points to the same ...

PHP MODx mysql Parse error? Where do I change the settings?

Hi I m using MODx on a site, but something has gone wrong with the database. Any idea how I can change the PHP to point to my database? « MODx Parse Error » MODx encountered the following error while ...

Print a table in modx to send info for mail by eForm

My question is, how can I create a table with dynamic fields (I will explain this later), and send them values by mail with eform? In the table, on the left, I want to print all the document children ...

Simple PHP CMS as an alternative to hacking Wordpress

For creating common user modifiable site I ve been forcing Wordpress to do the work of a CMS. It s worked and the back-end is purdy but it s just too hacky for my tastes. So I d like a simple CMS that ...

Modx assign default date to template variable

I have a template variable of input type date but I d like to have a default value of the current date at the time the document was first saved. I ve noticed that using the date formatter widget ...

热门标签