Hi all!

I am trying to set up a very basic Drupal installation. I like to keep my default frontpage, as it allows me to set the "promote to frontpage" option on nodes that are interesting for a broad audience.

Now I have a lot of text on my front page. I wanted to add a slideshow for illustration of services offered, but found that the slideshow modules are not available yet for Drupal 7. So I tried to keep it simple and created an animated GIF for the time being (file size is still small, 512x160px and very few frames). I would like to embed this on the frontpage, just on top of the teasers that are generated by Drupal for all "promote to frontpage"-enabled nodes.

How can I do this? I do not want to touch the templates (that would mean keeping track of such changes when updating Drupal). I considered embedding a block that is visible only on the front page. However, I could not find a way to create an image block in Drupal 7. The only way would be to embed html-links hard-coded into a text block... not that nice. I would also really love to make this block translateable, thus being able to display EN.gif/DE.gif/TR.gif and so on depending on the language selection...

Is there any chance to implement this? Or should I wait some more for the slideshow modules?

Many thanks, cheers,

Lars.

Comments

nevets’s picture

You could make it a node that is promoted to the front page and sticky (the later should place it at the top of the list).

grobe’s picture

Hi Nevets, I just tried that. The one thing I did not like about this solution is that I get a (in this case meaningless) title displayed for it.

Cheers, Lars

grobe’s picture

OK, I have implemented it now by installing the views module, and creating a views block that lists the most recent posts. The block has a setting to make it appear only one one node, which is a simple page with an image. That node is set to be the default homepage of my site now.

akael’s picture

I hope I understand your request:

You want the image to show up only on the front page, above all content teasers, and have no title.

Heres a way I was able to do this:

  1. Create a new block, and have nothing but the image contained in it.
  2. Set the title to:
  3. Set it to only be visible on the front page
  4. Add it to the content region in your theme, above the 'Main Page Content' block.
  5. That should do it, let me know if you need more help.

meno1max’s picture

Akael, I've been doing exactly what you suggested to Grobe two years ago: the photo block is related to the latest news item (first listed on the homepage). The problem is that - after the first 20 teasers - the list continues with node?page=1, node?page=2 and so on, and every page has the same photo block on to, and it's clearly not connected to those other stories.
Any suggestions to limit the block only to the first instance?