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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 250k
  • Answers 250k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer buildr has a plugin to generate IntelliJ IDEA projects. It's… May 13, 2026 at 9:20 am
  • Editorial Team
    Editorial Team added an answer There is no official documentation on the PowerBuilder syntax language… May 13, 2026 at 9:20 am
  • Editorial Team
    Editorial Team added an answer Let me answer my own question: I add the validator… May 13, 2026 at 9:20 am

Related Questions

Recently I had a problem in a costumer's computer. Our installer would hang during
Given a 2d picture of a rectangle distorted by perspective: I know that the
I'm trying to convert a proprietary string mask to the .net equivalent of it.
The question is simple really, when is it time to finally pull the plug

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.