I would like to add a banner type image above the footer. I'd like it to be present on every page. Would adding a gallery, and then creating a block using Views be overkill for just a single image? Should I just include it as a block and then add the image via the ckeditor? Or should I add a content type and field specific for this block/image?
2 Answers
If you need a static image, just use a block. If you want a slideshow or something, Views is better.
Unless your site is going to get a huge amount of traffic, I wouldn't worry about the performance differences between these two options. The main concern is how much harder is it going to be for you to set up a view versus setting up a block.
I don't know why you would created a content type and field specific for the image. If you just want to stick a piece of content in the same place on every page, that is one of the things that the blocks system was designed to do.
-
OK I rollback my answer as you are faster than me. One thing - if i was you, I'd definitely consider the difference between a View and a block. at least I can save few hooks, access checks, database calls and memory.– AKSJan 22, 2013 at 23:59
-
Thank you Ayesh. The problem is a am a drupal newbie and not very familiar with hooks yet :(– kine456Jan 23, 2013 at 0:12
If you want a static image above the footer on every page, and it doesn't need content management, consider adding the <img>
HTML directly to page.tpl.php
for a lightweight solution.
-
I was going to say if its totally static then you could put in your CSS file but that's fairly redundant. Jan 23, 2013 at 6:51