当用户是管理员时
设置 已发表 推荐到首页 表单中隐藏关于文章的 各种 Vertical tabs 时,就会是未发布,未置顶
我的办法是 创建一个 rules 让新建或保存文章时 让它已发布 已置顶
Within Pages, I have enabled the "Node add/edit form" and built a new node creation form for a custom content type.
I have added form fields content including "Node form submit buttons" and on my new "Node add/edit form" I see one button: "Save".
Problem: After I click Save, the node is not published. I would like the node to be published.
Settings:
The content type has the correct permissions set to allow me to publish content.
In the content type settings, I have set Publishing options to default = published.
Observation:
If I add the (unwanted) "General Form" item to my custom "node edit/add form" then when I click save on node creation, the content is also published.
Comment
#1
merlinofchaosComment
#2
dambanComment
#3
merlinofchaosYou would need to implement hook_form_alter on that form and set #access = FALSE on the elements you want to hide.
Comment
#4
rogicalComment
#6
fedegfComment
#7
dambanComment
#8
dojorob76Comment
#9
bobgeierComment
#10
fluxlineComment
#11
NWOMComment
#12
fledev