Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 452213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:03:00+00:00 2026-05-12T22:03:00+00:00

I know this can probably be done with CCK and a view, and maybe

  • 0

I know this can probably be done with CCK and a view, and maybe a logo content type. But I was wondering if anybody knows of the BEST way to do the following (perhaps there is a module that does this already):

I want SEASONAL displays of my logo. I.e. If I create a CHRISTMAS version of my logo, with for example a a christmas hat in the logo, this must be shown on Christmas, or 7 days before christmas. This 7 days must be changeable on a PER LOGO basis. I.e. I might want to show christmas logo for the whole of december, but the holloween one only for one day.

It must automatically choose between the various logos and ALSO, cater for LANGUAGES. I have three languages and therefore three different logos on my site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:03:00+00:00Added an answer on May 12, 2026 at 10:03 pm

    This was a simple but effective solution, using cck and views:

    Create a ‘header pics’ content type. Add fields for images, url, and ‘show when’ select list.

    Images I used image upload with cropping module, constrained to 400px wide by 100px high to fit in header block.

    ‘show when’ select list I populated with summer, winter, fall, Halloween, Christmas, Veteran’s Day, etc.

    url is optional.

    In view, filter by type = header_pic and show_when = whatever you want displayed now, limit = 1.

    Need the Customfield PHP module addon for views, and add:

    <?php
    $temp = node_load($data->nid);
    if ($data->node_data_field_header_pic_url_field_header_pic_url_url) { 
        echo '<a href="' . $data->node_data_field_header_pic_url_field_header_pic_url_url 
    . '" title="' . $data->node_data_field_header_pic_url_field_header_pic_url_title 
    .'"><img src="/' . $temp->field_header_image[0]['filepath'] . '" /></a>';
    } 
    else { 
        echo '<img src="/' . $temp->field_header_image[0]['filepath'] . '" />';
    }
    ?>
    

    Where the fields I’ve noted correlate to your actual fields.

    What this does is wrap the image with that url field only if the url field is populated.

    Then set the view in a block display, and set that block in the header region. Depending on theme, you may need to hack the page.tpl.php a little to move that header block region into the real header area (but once you get in there it’s easy to see what you need to do).

    You can even make a page view of this same view to display all of your great header images at once on a page (/headerpics), with an edit link by each for easy manageability.

    This will work if you just want seasonal images. It’s a simple form for non-technical users to upload and crop images. The only admin need is the occasional season (show when) changes in view filter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is probably a really amateur question, but I can't figure this
So, I know this is probably a FAQ, but I can't seem to unravel
I know this could probably be done without regular expressions, but I'd rather make
I know this is probably on the Internet somewhere but I can't find the
I know this can be done and i have seen it done using some
I know this question can be answered by searching in google. But I have
I know that this can be easily done by using if(i%5 == 0 OR
I know this is an easy question but I can't figure it out or
I know this isn't so complicated but I can't remember how to do. I
i know this is kinda retarded but I just can't figure it out. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.