Drupal 7 - Wanting content (of certain content-type) to appear in block -


I recently started on Drupal (v7) to create a small company's website.

After watching more reading and tutorials, I have started making my new theme with scratch. I have defined the Regions and the page.tpl.php file to place them in the template (and node.tpl.php etc.) Customized. All these changes are working and the layout looks good, and the items I add are visible in the main content output.

In my footer area, I have created a block in which I should see links. I have a content-type designated footer link (contextual) Areas) and I have created some things for this material.

The block looks fine (the title and block body is visible). However, despite the documentation handcrafted, I'm not sure what to do to create the contents of the material (footer link) in this block.

Any help appreciated, thanks

information file snippet for an area

  regions [footer_one] = Footer A   

... and the code in page.tpl.php

  & lt; Div class = "one" & gt; & Lt ;? Php if ($ page ['footer_one']):? & Gt; & Lt ;? Php print render ($ page ['footer_on']); ? & Gt; & Lt ;? Php endif; ? & Gt; & Lt; / Div & gt;  

The view is really powerful and it looks like it will do exactly what you need. Otherwise, you can create a menu for your items and also place that menu in your area.

Regarding your original code, you will probably need to get information about the nodes from the database, prepare a list of your own, but basically sees it for you :)

Comments