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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:00:34+00:00 2026-05-25T18:00:34+00:00

My setup : I’m using Drupal 7 with lots of contrib modules (Chaos Tools,

  • 0

My setup: I’m using Drupal 7 with lots of contrib modules (Chaos Tools, Views, IMCE, etc.) I’m not sure if Views are considered Entities right off the bat, but I’ll be asking this question assuming that they are.

My question: How do I add a field to all Views that asks the admin for an image?

The context: I have a sidebar module that lists every View. I need them all to have thumbnails to the left of them.

What I’ve tried: I’ve tried looking all over the Field/CRUD APIs but I could not find anything that appends a field called “Image” to the end of the views_view table. I also tried watching some conferences e.g. DrupalCon but I couldn’t find anything that was specific to my question.

  • 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-25T18:00:35+00:00Added an answer on May 25, 2026 at 6:00 pm

    Don’t know exactly what you mean by “asks the admin for an image”, but asuming you’d like to add a static image to a view you have the following options:

    1. ( probably easiest) add an image tag to a view block template.
      If you don’t yet have a block template create one in your theme template folder and name it: block–views–{VIEW_BLOCK_DELTA}.tpl.php, copy the contents of the default block.tpl.php into the file and then add the img tag.

    2. Login as admin, go to: structure > views and then click edit on a view you’d like to add image to.
      Go to fields section.
      Now it depends if you want to use the image path from cck field value OR you want to hardcode it, like you would in the 1st example.

    CCK field way: ( first create a cck field of course), add it to your view fields list, go to rewrite result and tick “Rewrite the output of this field” and then add to textarea sometihing like that:

    < img src="[YOUR_FIELD_NAME]">
    

    You can also hardcode it, if you don’t need it to be stored in a cck field in db:
    select a random field, click on it, go to go to rewrite result and tick “Rewrite the output of this field” and then add to textarea sometihing like that:

    < img src="trololo.jpg"> [RANDOM FIELD NAME]
    

    This would just append the image next to an existing filed, so with just a little styling you could achieve your goal quite quickly

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

Sidebar

Related Questions

Setup is following: Drupal project, one svn repo with trunk/qa/production-ready branches, vhosts for every
Setup: Contact database using 4 tables Contacts Cities States Zips Structure: CREATE TABLE `contacts`
Setup I am using Sparx Systems Enterprise Architect Professional edition 7.5 and MS PowerPoint.
Setup: I have two views that I need to respond to the touch event,
Setup using a simple example: I've got 1 table ( Totals ) that holds
Setup: I'm looking for insight into using a ABPersonViewContoller without getting data from the
setup Using Dreamweaver CS 5.5 / Windows 7 I have turned off 'Preview [in
setup A TurboGears2 project using ming as an ORM for mongodb. I'm used to
Setup: I have scaffolded a controller using MvcScaffolding. For a property, Model.IdCurrencyFrom, the scaffolding
I setup a site on a new server using Plesk and I'm using site

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.