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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:41:50+00:00 2026-05-15T18:41:50+00:00

I created a View that gets the title, body and attached image of some

  • 0

I created a View that gets the title, body and attached image of some Story nodes. I need to use the Customfield “PHP code” to customize the output but the problem is that it’s only giving me the id of the image in an array like this: [image_attach_iids] => Array ( [0] => 66 ). So, I it looks like it’s giving me the id but I need the full path of the image also. Is there some function that I need to call to get the path?

thank you

  • 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-15T18:41:50+00:00Added an answer on May 15, 2026 at 6:41 pm
    1. If you are using fields, you can put the image as a field. Put it at the top of your fields (so you can use replacement patterns).
      Setup:
      exclude from display, select ‘path to image’ in the Format option, and then use the replacement pattern in your customField PHP

    2. If you aren’t using fields, you can build up the path in the node-[contenttype].tpl.php .

    3. Pathauto module: use the function drupal_get_path_alias($path) to get the aliased path to the node. $path = 'node/'.$node_id

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

Sidebar

Related Questions

I've created a filtered view for a lookup via javascript that gets it's filter
I have a view that gets all the nodes from a certain type and
I created a view that has a distinct in the select clause. When I
So I've created a view controller that creates a custom view that, if it
I created an indexed view that joined a number of tables to get better
I created a custom view that uses Json.Simple to serialize the model and write
I created a materialized view that refreshed every 5 min but when I do
I have created a list view that displays the names and dates of items
I have a partial view that I have created called noteEditor. That is rendered
i have created one login and register view in that view after login user

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.