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 622953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:02:25+00:00 2026-05-13T19:02:25+00:00

I would like to have two different displays of a node teaser depending on

  • 0

I would like to have two different displays of a node teaser depending on where it is on the site.

Changing the .tpl of the block alone is not good enough because I need to have a separate imagecache image displayed.

Are there ways to have another display type added? Or change what fields a node display type recieves (ie: the imagecache image displayed)?

  • 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-13T19:02:25+00:00Added an answer on May 13, 2026 at 7:02 pm

    As others have pointed out, it’s a little unclear what you’re doing, but it sounds like your using a node view to create a block and then using the block template to markup the contents of the block. The key contents of such a block will be generated by the node template. The default node template determines its markup based on a $teaser variable set to TRUE or FALSE. The value of $teaser is based on the full node/teaser distinction in views. That’s obviously a boolean variable, so there’s no third option. So the answer to your specific question is no, you can’t do that.

    That said, you can accomplish the goal of 3 (or more) different displays by introducing your own variables in template_preprocess_node based on context indicators such as arg() or $view->name, and then using those variables in your own node template (or more likely node type template) to control output markup. You can then apply different imagecache presets by calling the imagecache theme function, something like:

    <?php print theme('imagecache', 'thumbnail', $node->field_image[0]['filepath']); ?>
    

    That’s a lot to learn if this is all new to you, hopefully not too overwhelming.

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

Sidebar

Related Questions

I have two strings and would like to display the difference between them. For
I have two XmlDocuments and I would like to move an XmlNode selected from
I have two strings and I would like to mix the characters from each
I have two unix partitions under debian which I would like to merge (disk
I have two tables A and B. I would like to delete all the
I have two points (a line segment) and a rectangle. I would like to
Ok, NHibernate question here. I have two objects that I would like to map
I would like a batch file to launch two separate programs then have the
I would like to compare two dates in javascript. I have been doing some
I have several A4 PDF documents which I would like (two into one) glue

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.