Is there any way to allow users to comment (i.e., have a discussion) on a ploneformgen folder? I have allowed comments for Form Folders under Type Settings, and checked "Allow comments" under the edit>settings tab of the particular Form Folder, but this doesn't work, which is weird, because this is exactly what I do to allow comments on Pages, etc. Any ideas?
I fear that PFG is not including Plone viewlets by its own.
You must probably customize the Form view and enabling the proper viewlet manager.
If you look at the plone.app.discussion source at https://github.com/plone/plone.app.discussion/blob/9a4e3718fc8ae7e6f8f229058a27092b0d121a84/plone/app/discussion/browser/configure.zcml#L108 you'll see that the comment viewlets is defined in the plone.app.layout.viewlets.interfaces.IBelowContent manager.
So you must re-enable this manager in your customized template, this can be enough:
<div tal:replace="structure provider:plone.belowcontentbody" />
Put this after the main content. As side effects, other viewlet in this new manager can be displayed, in that case use CSS to hide them.
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.
In the security control panel one can allow anonymous visitors to see "about" informations on the site pages.
Does anybody know how to only display the last modification date of a page in a Plone (4) site, without displaying the author name ?
Thanks in advance,
phep
No way OOTB. You must customize the plone.belowcontenttitle.documentbyline viewlet or override the existing viewlet and provide a new one where the documentAuthor is omitted.
General viewlet documentation is here: http://developer.plone.org/views/viewlets.html
This tutorial about viewlet override is still valid: http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-viewlet
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
Plone's viewlets appear to be site-wide by default. How can I make a viewlet only appear on a certain page?
This is done with Theme Interface in Plone. Check this documentation:
http://plone.org/documentation/manual/theme-reference/buildingblocks/components/themespecific
If u created your Theme / viewlet with a paster template, all should be in place and ready to use.
In addition to theme-specific viewlets, mentioned by #user276028, you can create browserlayers for non-theme viewlets:
Example taken from collective.atimage.transformtoolbar:
Create a browserlayer (you can create them with paster localcommand addcontent browserlayer):
Add an interface for the layer.
Create a browserlayer.xml file GenericSetup to register it as a layer.
Use the layer in viewlet registration:
Edit your viewlet registration in configure.zcml with a layer attribute pointing to your interface.
In the configure.zcml linked file you can also see how to show the viewlet just for some content types (for property) and just for default view of that content type (view property).
Any other case, I think you should decide when to show/hide your viewlet code or template, like in the available method.
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.