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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:56:43+00:00 2026-05-22T01:56:43+00:00

Problem I’m doing some maintenance and changes on a Drupal site, but I’m not

  • 0

Problem

I’m doing some maintenance and changes on a Drupal site, but I’m not an expert. My problem is the following. I have a view that produces an HTML table by fetching some field values and putting them into the table columns. One of these field is an image. Unfortunately each image has a different size (images are uploaded by users), and so the overall table looks ugly. I would like to resize/scale images so that they all have the same width. I know I can use CSS to set the image width to a fixed value, and let the height adjust accordingly:

<img src="..." style="width:70px"/>

Unfortunately I don’t know how to make Drupal output this custom HTML when processing my view. Currently the produced HTML looks like this:

<img 
  class="imagefield imagefield-field_imgsmall" 
  width="100" 
  height="39" 
  alt="" 
  src="http://www.mysite.org/sites/default/files/foobar.png?1292948397">

and I guess this is produced by one of the view’s fields (namely field_imgsmall).

First question is: what is that number after the ? in the src URL? And where does it come from? (Each image has a different number in the corresponding src URL)

What I’ve tried

I’ve noticed that in the “edit view” mode, when selecting a field, I can check the option Rewrite the output of this field, and there I can mix HTML and substitution patterns. However, I’ve seen that one of the substitution patterns that’s available to me ([field_imgsmall_fid]) is actually producing the entire HTML above … so I can’t customize it.

What can I do? Am I going in a totally wrong direction?

  • 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-22T01:56:44+00:00Added an answer on May 22, 2026 at 1:56 am

    You should look into the imagecache module, which allows you to resize images (and cache the results, so the resizing process rarely happens).

    Here’s a walkthrough:

    http://2bits.com/articles/drupal-using-imagecache-with-views-and-cck-imagefields.html

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

Sidebar

Related Questions

Problem: I have two spreadsheets that each serve different purposes but contain one particular
Problem: We have a web app that calls some web services asynchronously (from the
I have a French site that I want to parse, but am running into
Problem There is a program file that contains the following code snippet at some
Problem: We have to read from a proprietary binary file at work. It changes
Problem: Trying to create a Mix that is applied to the AVPlayerItem, but it
Problem is that application closes without any error, VS stays opened. I have multiple
Problem: Maybe the CGMutablePathRef has been created and set, but maybe not. What I
Problem I need a key-value store that can store values of the following form:
Problem is simple the tab control shows in design mode but is not getting

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.