I’ve encountered some similar problems
What I want to achieve:
The website-editor can change some pictures (each picture is placed as TV in a Document under a parent Resource)
now I want to make it easier for the editor, so only things he/she have to change is visible in a new document.
When I create a new document under one parent resource
in tab ’Create/Edit Document’ i want :
to change the "template" (the one default is for the parent documents so I want here a different one to be set as default)
(i can’t find how to change the template and hide it, it seams not to be in the List of FC-Resource (http://rtfm.modx.com/display/revolution20/FC-Resource))
to give the fields ’Hide From Menus’ and ’Published’ a default value of 1
(i have to make 2 different rules - with hidemenu,published (comma-separated) it doesn’t work on 1 rule)
to hide the follow :
(for the hidemenu and published this must be afterwords - looks normal to me)
"Content", "template"
(can’t hide?), "Long Title", "Resource Alias", "Link Attributes", "Summary (introtext)", "Parent Resource"
(can’t hide?),"Published" and "Hide From Menus"
in tab ’Page Settings’ i want:
to give the fields "Rich Text", "Searchable", "Cacheable" and "Empty Cache" a default value of 0
(again this only works when I make separated rules - in stead of one rule using these names as a separated comma)
in tab "Template Variables" I want: to move my TV (under Template Variables) to "Create/Edit Document", but than I have to first change the "Used Template", I still can’t : see above)
and last I want to hide the following tabs : "Page Settings", "Template Variables", "Access Permissions"
(don’t know why, but hiding these tabs doesn’t work - even so if i use different rules for them)
On this way this all works! Great! (except "Parent Resource" & "Uses Template" - can’t hide these, except moving my TV to 1th tab, and ... read on)
But why I see first a normal Document and after a while changing to the Document I want (with fields hided),
can’t this all be done before the new Document has been created?
Why it doesn’t all work with "separated comma"-names (less rules to create, and makes it more easily to make update rules)
Here you can see the
source-view (probably only for the rules that worked):
<script type="text/javascript">Ext.onReady(function() {
Ext.getCmp("modx-panel-resource").getForm().findField("hidemenu").setValue("1");
Ext.getCmp("modx-panel-resource").getForm().findField("published").setValue("1");
Ext.getCmp("modx-panel-resource").getForm().findField("searchable").setValue("0");
Ext.getCmp("modx-panel-resource").getForm().findField("cacheable").setValue("0");
Ext.getCmp("modx-panel-resource").getForm().findField("syncsite").setValue("0");
Ext.getCmp("modx-panel-resource").getForm().findField("richtext").setValue("0");
Ext.getCmp("modx-panel-resource").hideField(["modx-resource-content","longtitle","introtext","alias","link_attributes","published","hidemenu"]);
});</script>
and after all, when I create a new document (right-mouse menu on resource-tree) there is still a "quick-create" menu who gives me again a normal document!
Does somebody know how I can hide this "quick-menu"?