Listing all entries of a specific content type within a panel I've been tasked with adding a page to an existing Drupal (version 7.15) site.  I know next to nothing about Drupal or PHP so I've been struggling a bit.

I've created a page with 2 panels and am trying to use the "custom content" option to display the title field for each entry of a specific content type in one panel. And in the other panel, I would like to display all the fields for each entry.

For instance, the first panel thus far contains:

&lt;div class="open-positions"&gt;
  &lt;h2&gt;Open Positions:&lt;/h2&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;


And I'd like to know what PHP code I'd need to use to make each &lt;li&gt; tag contain the titles for my content type.  The other panel would be somewhat similarly formatted in that there would be markup enclosing each field, but I do not know how to get the entries from the database, and then display specific fields from that entry.

Thanks.
If you can at all avoid it, the direction you've started in is not the solution you want. Panels is not for handling content, but context.

What you want instead is a Views content pane. Explaining Views in detail is beyond the scope of this post, but here's the general outline.


Install Views and Ctools.
Enable "Views UI" and "Views content panes".
Create a new View
Add a filter on node type so you get only the right content type.
Add title as field. Then repeat the View creation above but add the rest of the fields.
Go into Panels and add both Views in their respective regions.


Much much more info about Views in Taming the Beast: Learn Views with NodeOne.