Drupal 6.x
How do I remove collapsible frames - "Authoring information","Revision information", "Publishing Options" - from content creation page? For what is worth, I'm logging in as a regular user and I don't want these controls to be presented to regular users.
P.S : I also like to remove save/preview buttons as well.
The 'administer nodes' permission deals with most of those, and for anything that's left, an easy point and click interface is provided by the FormFilter module.
Removing the 'save' button, though, might prove a bit self-defeating.
For more control, get acquainted with the FormAPI and hook_form_alter.
You can also use Panels to change the presentation of the node add/edit forms.
Related
I've created a Rules Link (in a View) which shows in a users dashboard using Drupal v.7.27 as CMS for a number of (similar) projects using the same functionality. The Rules Link is set to 'trigger' a rule when the user clicks "Post Content" (the Rules Link). The Rules link works fine and fires the trigger which then follows the simple conditions I've set and only because I've created Variant Panel pages for each User Type, the Rules Link only shows on the ones I've set the Panels Page Access conditions (ie Role: Content Manager).
However, I've noticed that as I'm also using the Support Ticket Module, then "Post Content" Rules Link is also showing on the top of the list of a users Support Tickets list (only for testing here, but it's shows my test comments from both user and Admin user) AND* it also shows on a link on all other Node types.
Clearly I don't want the Rules Link to show at the top or bottom of any other content type other than a Node (ie on the Post New Content Panel Page). At the moment is set within the Rules "Edit Bundle" section to show across 'none' as there is no option to force it to show ONLY on my Dashboard Panel. I'm also using the 'Render' Rules option and tried every option but to no avail after a few hours.
I've had to set the option to 'Nodes' in the Entity type which the Rules Link is attached to (because my Article data is a Node within the Panel Page) and it says quote:
'Bundles to which the link should be attached to. If left empty, the link is not restricted for any bundles' under the Bundles section.'
Furthermore, within the Views entity created (used to set the 'Rules Link' into any Node), there is no option that I can find which enforces the Rules Link to only be limited to a particular node, which in my case is a custom Page Panel. Maybe I lack current Drupal knowledge or simply have over looked an issue.
I know I need to learn PHP (yes, currently working through CodeAcademy!) but in order to get the thing working functionally, can anyone advise on what is going wrong and why the Rules Link is showing n other Node types and for a PHP novice like me at this stage, could I simply put some PHP in somewhere that would ensure the Rules Link only shows on a set Content Panel on my custom Panel Page.
I hope I have been clear enough and help at this stage is most gratefully received. Thanks in advance.
EDIT:
Actually the Rules Link is showing on all other Nodes (see above*). I've noticed that Bundles might be the key here? I've todate not used Bundles if that helps anyone?
RESOLVED
I found the source of the problem.
The answer is to ensure that the "Render Entity" is un-ticked in the option box:
"Show link when entity is rendered
If checked,the link is shown when viewing an entity to which the bundle and the visibility conditions apply. Only applies to displayed entity types and if no addition variables were added."
I hope that helps any future readers.
how can I add a "to the top" link at the end of a collection in plone?
This collection is in a collage. I thought of adding the article type "page" in a new row where I could use the HTML-Editor and use there an internal link to the top of the page.. But it seems inconvenient to me.
Isn't there a better way?
A very simple way could be using the Plone inner feature of the document_actions (a tool still available but not used anymore from Plone 4.0 and up).
Go to ZMI, access the portal_actions tool, the document_actions. Now add a new "CMF Action" from the form on the right.
The important information for you is the "URL (Expression)", that must be something like string:#youranchortarget. To fill every other field copy from existing actions.
If you need this link only for a content type or something like this, just play with the "Condition (Expression)".
Links inside this tool are displayed in the plone.abovecontenttitle.documentactions viewlet.
If you want the link on every "page" item, then you could customize the default view's template.
I am very new to drupal and need some assistance. I created a view for a news blog. I want members to be able to be able to create news blogs, which would have to go through an approval process before being displayed. I wanted to add a button called "create" or whatnot to my view which would allow the user to submit a news blog entry that would go to an approval queue to allow a moderator to edit before publishing. This is not a regular blog (which don't need moderated). It is specific to a "news blog" which is how we are referring to it. What is the best way of accomplishing this work flow and how would I go about creating the button?
In Views, you have the option of adding a header and/or footer to your view. It gives you a textarea which you select what filter you want to use (Full HTML, PHP code, etc). I would suggest utilizing a header/footer and adding an image as a simple HTML link to the blog creation page.
As for your workflow, I would suggest taking a look at:
Workflow
Content Moderation
Revisioning
Rules
Here is an example to get a workflow going with the Rules module: http://drupal.org/node/550716
I have quite a few content types, but I need to change the available menus for a specific one.
No matter what I try, any changes to the available menus do not seem to save.
I have a suggestion for you.
Do you have a multi-site installation ? If you have multiple Domains, check under
Site-Information. (Normally there should be a message box with an info like "You may submit changes to the current domain at admin/structure/domain/view/3/config.")
Click admin/structure/domain/view/3/config
enable the menus for the appropriate content type in the Tabs at the end of the page
Possible solution: Change machine name of this Content Type to something different. This will probably involve updating some views etc. where you use this content type.
Ideally you'll need to find what is causing the lock of available menus so check all modules you've installed
I want to hide these fieldsets in a Drupal 6 site for some content types (not for all of them), because these options are unnecessary and confusing to the end user.
How can I do this?
Thank you!
NodeFormCols sounds like the module your after. As well as hiding fieldsets, you can control the order they will appear in, and whether or not they should be collapsed.
As well as that the "Hide publishing options" module allows you to pick which checkboxes to hide within the publishing options fieldset.
If you are talking about when editing a node, this is related to permissions, so those fieldsets will only be displayed according to the user who is editing the node.
If you want to hide them, you could use hook_form_alter to alter the $form array. You have to be careful about this, so it wont be impossible for users to edit the those sections of the node.
Go to Site Building ->Themes ->Select the particular theme and CLICK "Configure" link. You can see various settings, in which you go to Theme-specific settings ->Node Settings ->Author&Date
Make the changes you need and its done!
(This will be easy if we are using a contributed or custom theme)
Check out the Simplify Node Add module.