Multiple sections on landing page only
I am very new to Drupal but love it to start with.
I was amazed at the point in regards to the conversation.
I have an area called "footer" just above the footer. Its width is 800 pixels. it was divided into 3 columns of equal size. Each column has the following.
- Image size 120x120
- Some teaser texts
- Link to 'read more'
Design requirement - all of the above must be editable by the administrator from the admin interface. If its static I would be hardcoded, but since the requirement is dynamic I don't know how to achieve this. I have configured page.tpl for other sections of the page besides this one.
I'm sure someone else would have encountered this question before and wondered if anyone could point me in the right direction? An example is even better.
RD Cheers
a source to share
When you say that you have a "region" called a "footer", you are talking about a region in Drupal terminology, if so, skip part of the second answer.
Part 1, set up an area for placing content.
in the theme.info file you can define regions, they show up as places but are blocked in the block admin tool. Modify your theme.info file to include something like
regions[footerteaser] = Footer Teaser
you will also need to type $footerteaser
in the appropriate place in your .tpl file.
Check that this works with another existing block before moving on to the second part.
Part 2, fill in the area.
There are many ways to generate code to populate this region. I find it easiest to create editable blocks like in the example block block .
a source to share
-
If you want static content to be edited from the admin interface, you don't need to list the top nodes and sort them. You can create a block from the block interface and put any html in it.
-
If you need to compose lists of content, etc., you can use the views module to create such blocks.
-
Otherwise, you will have to use the custom blocking approach that Jeremy suggests.
a source to share