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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:44:22+00:00 2026-06-09T16:44:22+00:00

I just installed the computed fields module and I’m a little lost as to

  • 0

I just installed the computed fields module and I’m a little lost as to how to use it. I have 2 fields in my content type: field_shortdesc and field_audio_description.

If field_shortdesc is blank I need to display field_audio_description and vice-versa.

What code do I need to place into the computed code and display code areas? Seems like I can’t get even the simplest code to work.

For example if I put $entity_field[0]['value'] = "test"; in the computed area and then put print $entity_field[0]['value']; in the display code area nothing gets printed out. Obviously I’m doing something completely wrong.

  • 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-06-09T16:44:23+00:00Added an answer on June 9, 2026 at 4:44 pm

    Note the help text in the Display Code section states:

    This code should assign a string to the $display_output variable,
    which will be printed when the field is displayed.

    Instead of print $entity_field[0]['value'] try $display_output = $entity_field[0]['value']

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

Sidebar

Related Questions

I have just installed the sqlalchemy module in my computer but when I type
I have MinGW installed on my computer (I just use the one shipped with
I have just installed QAS Pro Web on a computer and I am now
I just recently installed VS 2008 Professional on my computer and I already have
I have just got a new computer and installed Eclipse Indigo and all of
I have just installed xammp in my computer, and to test it, I starte
I guess I'm just not getting it. If I don't have SQLite already installed
So I just installed the python interpreter and wanted to use the help(sys) feature
I have a big problem. I just re-formatted my computer and re-installed Eclipse and
I just started bash shell programming. I have installed Cygwin on my Windows 7

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.