Download & Extend

Cannot add node content to panel pages

Project:Panels
Version:6.x-3.2
Component:Panel nodes
Category:bug report
Priority:normal
Assigned:honorfield
Status:closed (fixed)

Issue Summary

Hi i have a problem to add a node to a panel page, i read everything about and watched some videos about but i doesnt work.

I built a panel page, got to the pop up "add node content", then i have it inside with title name for example impressum (NID: 7) but on the frontpage there is nothing to see, only blank page.

i have also tryed this with admin/panelpages add context, i choose my context from the node,and then it comes red line "please choose panel context" my nodes and contents wont be accepted ?

perhaps someone could tell me what i make wrong ?

Comments

#1

Title:Cant add node content to panel pages» Cannot add node content to panel pages

#2

I have the same issue. But I guess it is because it is an alpha version of the module. Hope this is cleaned up in the next alpha (or even beta) release. Btw, are there some plans to release the next alpha or beta version?

#3

Yes i hope so, i need this funktion

#4

Category:support request» bug report
Priority:normal» critical
Assigned to:Marcodragons» Anonymous

Confirming this as well.

Robin

#5

Subscribing.

#6

Same isssue here. I can add custom content. But if I try to pull it in from a blog, or some other node via NID the pane just doens't show up.

#7

subscribing

#8

I can insert node content from an existing single node using the node id typed in by hand -- don't use the pulldown menu.

I have not been able to successfully use a context to import node content.

#9

This does not work for me.

#10

Version:6.x-2.0-alpha2» 6.x-2.0-alpha3

I can confirm that this is also a problem in alpha3.
However, I am able to make nodes appear when I just type in the node ID. - thanks, joeredhat

I will describe the behavior once again for the developers:
When configuring the content on a new panel page (or panel node), I click '+' to add a new pane. On the popup, I choose 'Node content'. On the next screen, there are two possible outcomes, depending on what I type under "Enter the title or NID of a post:"
a) I type in words from the title of my node. It is autocompleted. When I submit that form and add this page the pane appears in the layout as "Node loaded from [title] [nid: x]". When I view this panel, this node content does not appear.
b) I just type in the node ID. When I submit that form, the pane appears in the layout, now with the Title of the node as the title of the pane (there is no "node loaded..."). When I view this panel, the node content appears correctly.

#11

Assigned to:Anonymous» sdboyer

#12

subscribing (sorry for the /me too noise)

#13

Status:active» needs review

I've created a patch working for ALPHA3 (and running on Drupal 6.8).

It seems like the values is directly sent to the $form_state array rather then $form_state['values'].

I don't know if this is the intended behavior but please review my first little patch.

The file is panels/panels_node_content/panels_node_content.module.

AttachmentSize
panels_node_content.module.patch 937 bytes

#14

The patch in #13 worked for me

#15

Sorry perhaps a dumb question:

I manually patch modules as I can never seem to get the auto patch programs working; I know a "-" preceeding a line means take it out and a "+" is to put that line in its place, but what does the double "@@" denote?

**EDIT** I ended up using cygwin and it patched fine, however bringing the "Node Content" into the panel is still not bringing in the Node's content.

#16

the patch in #13 works fine for me too...thanks!!

#17

Actually worked perfectly for me too now. Thank you!

#18

Status:needs review» reviewed & tested by the community

Yes, this fixed panels node content for me as well? Commit?

#19

Status:reviewed & tested by the community» needs work

This is plain wrong:

-  if (!$form_state['values']['validate_me']) {
+  if (!$form_state['validate_me']) {

#20

sun: $form_state as passed into panels_node_content_edit_validate looks like:

Array
(
    [style] => default
    [override_title] => 0
    [override_title_text] =>
    [css_id] =>
    [css_class] =>
    [nid] => You've been invited... [nid: 25]
    [teaser] => 0
    [links] => 0
    [leave_node_title] => 0
    [identifier] =>
    [validate_me] => 1
)

so the patch is dealing correctly with the data passed. Is the wrong structure being passed?

#21

According to http://doxy.samboyer.org/panels2/panels_api_plugins_content_types.html pane add/edit validate submit handlers should take $form, $form_values not $form, $form_state, so it looks like the validate function has the wrong signature, a regression introduced at line 191 in commit 1.4, which is causing the confusion:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/panels/pane...

#22

essentially the same as #13, but renames $form_state to $form_values as documented in P2 api docs

AttachmentSize
panels_node_content_autocomplete.patch 1.28 KB

#23

Status:needs work» reviewed & tested by the community

i'm rtbcing #13, which #22 is equivalent to, since many people report it working.

#24

For what it's worth, the patch in comment #22 fixed the problem for me.

#25

I have added this patch. But it seems i am doing it wrongly. Can someone please help with line by line interpretattion of the patch. I'll appreciate. Thanks.

#26

Please, this is my first patch. I will like to know what this lines is talking about;

<?php
if (!$match) {
@@ -
210,7 +210,7 @@ function panels_node_content_edit_valida
     $node
= db_fetch_object(db_query(db_rewrite_sql("SELECT n.nid FROM {node} n WHERE LOWER(n.title) = LOWER('%s')"), $nid));
   }
?>

This is from #22 patch. Thanks.

#27

tracking

#28

I don't know if this is being regarded as part of 6.x-2.0 development or for panels in general, but I think the issue has more or less been resolved in 6.x-3.0-beta1.
In 3.0-beta 1:
-you type in the title and Drupal will autocomplete
-the autocomplete option will display the node id
-when you select the option it will say "Invalid node: [Node title]"
-you type in the node id and then you can successfully add the node

This is an improvement over what I was experiencing in Panels 2, where you could select a node based on typing in the title, but the site would never display it unless you entered nid directly.

#29

#30

Status:reviewed & tested by the community» closed (fixed)

No longer relevant.

#31

Version:6.x-2.0-alpha3» 6.x-3.2
Priority:critical» normal
Assigned to:sdboyer» honorfield
Status:closed (fixed)» needs review

Hey there!

I'm sorry that i have to open this topic again, but i still encounter the same issue. I can add node content into a panel, but it doesn't show up when i view the page. I had a read through the whole issue page, and tried to use the patches. But the patch described in #13 doesn't work because the file structure seems to have changed.

"The file is panels/panels_node_content/panels_node_content.module."

There is no such folder anymore. Is there any solution for the latest release of panels?
I have several drupal installations with panels running and all of them have the same problem. If i create a view with the node content and put it into the panel it works. But i would rather prefer to go the direct way.
Please, i would be very happy about some help!

Regards
honorfield

#32

Component:Panel pages» Panel nodes

Confirming.

When adding "Existing node" content to a panel, the node's title is rendered but its content is not. The content does not even get to the theming layer.

I'm changing the component because this happens with any panel (I haven't even tried to create a panel page).

As I understand it, a Panel Page is something you can create with CTools's Page Manager module enabled. But this problem happens when creating a Panel via /node/add/panel/choose-layout .

#33

I figured out the problem, at least for the site I'm working on.

node-page.tpl.php (in the custom theme) was getting called to render the panels_node, and it wasn't printing "$content". It had a bug. (I didn't write this theme!)

Yep, I spent an hour and a half walking through Panels code and Drupal's theme layer to figure that out. I had thought the data wasn't getting to the theme layer because of the devel_themer output. Weird.

Everybody else, check your themes. Carefully.

#34

Status:needs review» fixed

It’s not a Panels bug; I don’t see a reason to keep this open.

#35

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#36

I solve this problem adding argument (%node) and context (Node ID) in Panel page edit form. Then the "Add content / Node" option appear. Maybe it could be useful to you.

#37

I've had this same problem and i've fixed it. I installed Drupal Chat before, that gave me an unending loading animation. I thought those two might be experiencing the same problem. So I disabled the Drupal Chat (and "Chat") and now I can suddenly add content to a panel.