Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have 50+ panel pages where I would like to include comments possibility.
I was trying to search comments when adding content to "bottom" in "widgets", "activity" and other options, but could not find.
It should be very simple, but I just can't figure it out.
Comments
Comment #1
clashar CreditAttribution: clashar commentedshouldn't be it's simple?
Comment #2
MichelleAre you using the type of pages that are nodes? I've never used that submodule, so don't know anything about it, but just making sure that's what you're doing. If you are using the normal custom pages provided by Page Manager, then you have to add a node context in order to add comments to it. You can't just have comments floating there with no node.
Also, I think this belongs in the CTools queue. Moving it there. I don't know what version, so just setting to dev.
Michelle
Comment #3
clashar CreditAttribution: clashar commentedI use "Panel pages", not "Panel nodes".
"Panels" content type I was talking about - is an error, it was just testing content type.
I try to add a node context in Panel as "Context" -> "Comment"
there I should fill "Enter the title or ID of a comment entity".
I don't understand which comment entity, if I put just a node if of one of the nodes that is used in panels, then I got an error "Invalid entity selected."
So seems it's some other comment entity.
Comment #4
MichelleCustom pages can't have comments just stuck on them. Comments go with a node or some other entity that takes comments. So only pages that have a node (or commenteable entity) context can have comments on them.
I'm not sure what more to say, there... If you don't have a node context, it sounds like maybe you're trying to do something it's not meant to do.
Michelle
Comment #5
clashar CreditAttribution: clashar commentedI tried to install panels on other second site installation and figured out that on my first problematic site,
when I press "add content" on Panel's pane there is no "node" and "node(token)" options, where it should "comment form".
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedPanel pages can't have comments; comments only go on nodes, that's a limitation of Drupal.
Comment #7
clashar CreditAttribution: clashar commentedok, I would agree to add comments on node that is inside of Panel. Still can't find out how.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedTo do that you'd have to add the node as a context; once you've got the node context you'd be able to use the add comment form.
You can add specific nodes as context directly on the context tab, or use arguments to figure out a node from the URL.
Comment #9
clashar CreditAttribution: clashar commentedMichelle, merlinofchaos,
thank you for explanations.
I already got nodes, added by "content" -> "add content" -> "Existing node"
Ok, I can't yet add nodes to context due to an error #1236066: Creating a manual context filter in a variant in the UI does not save on the first time, but will try to do again once it's solved.
Comment #10
clashar CreditAttribution: clashar commentedas I could input context with second time, I am now able to add node-comment to panel. The only problem is that after commenting, page redirects to node and not to panel, but that's another issue.
Comment #11
clashar CreditAttribution: clashar commentedComment #12
makeapage CreditAttribution: makeapage commentedDid you find a fix for that problem? Having the same redirect issue here...
Comment #13
Triumphent CreditAttribution: Triumphent commentedAny update on that redirect issue?
Comment #13.0
Triumphent CreditAttribution: Triumphent commenteddeleted mentioning of "Panels" Content type - it's an error.