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

  • Home
  • SEARCH
  • 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 6018315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:15:26+00:00 2026-05-23T03:15:26+00:00

Good Evening, I’m using Drupal 6, CCK Module, and the Link Field Type. All

  • 0

Good Evening,

I’m using Drupal 6, CCK Module, and the Link Field Type. All are installed and activated.

I created a custom content type called Slider. A user can upload an image, a title, and a teaser. I created a custom field for that slider content type as well as one called Link with the field name: “field_link_test”.

I created an entry, filled in all of the data including a URL for that link field type and clicked “Save”. In views-view-table–slider.tpl.php, I added:

 <a href="<?php print $node->field_link_test[0]['url'] ?>">Learn More</a>

but on the front end, everything shows except for that link. I also tried emptying the Drupal cache.

Any ideas?

Update template code below, which all works fine, except for the new link value outputs nothing.

<div id="slider">
<div class="slider-holder">
    <?php foreach($rows as $row): ?>
    <div class="slide">
        <?php print $row['field_image_fid'] ?>
        <div class="info-slide">
            <h2><?php print $row['title'] ?></h2> 
            <p><?php print strip_tags($row['teaser']) ?></p>
            <a href="<?php print $node->field_link_test[0]['url'] ?>">Learn More</a>
        </div><!--INFO-SLIDE-->
    </div><!--SLIDE--> 
    <?php endforeach ?>
</div><!--SLIDER-HOLDER-->
<div id="control">

</div>
</div><!--SLIDER-->
  • 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-23T03:15:27+00:00Added an answer on May 23, 2026 at 3:15 am

    The easy possibilities (which you’ve probably checked, but just to get them out of the way):

    • you need to allow the field to be viewable by anonymous/authenticated users in User Management – Permissions

    Otherwise, it’s hard to tell without some code to analyse. Could you post your entire views-view-table–slide.tpl.php and if possible, your exported view or a link to the exported view?

    EDIT

    Now that I’ve had a chance to look at your view, I’ve made a couple of changes that should help.

    The reason your link URL isn’t showing is that you’re including the “Node: Link” field in your View instead of the “Content: Link (field_link_test)” field. The first one will just link back to the original node rather than your custom link. Also, I don’t think you can call the $node variable from views-view-table (at least, I don’t get anything when I print it. Instead, you can use the $row variable.

    I have a version of your template that prints out the URL in the field “link_test” with the label “Learn More.” I put the “Learn More” text in the View itself as that’ll be easier to edit and works better with the Link CCK type (which by default will want to add a title you add in the node edit screen).

    The view export is here: http://pastebin.me/0ed2942f6953cb00cab1bd5386058a13. You can import this back into your site, but you may want to clone your original View first to make a backup, so that if this isn’t what you want, you can use your old version.

    The updated tpl is:

    <div id="slider">
    <div class="slider-holder">
        <?php foreach($rows as $row): ?>
        <div class="slide">
            <?php print $row['field_image_fid'] ?>
            <div class="info-slide">
                <h2><?php print $row['title'] ?></h2> 
                <p><?php print strip_tags($row['teaser']) ?></p>
                <?php print $row['field_link_test_url'] ?>
                <?php //print_r($row); ?>
    
            </div><!--INFO-SLIDE-->
        </div><!--SLIDE--> 
        <?php endforeach ?>
    </div><!--SLIDER-HOLDER-->
    <div id="control">
    
    </div>
    </div><!--SLIDER-->
    

    Let me know if you have any issues/questions.

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

Sidebar

Related Questions

Good evening/morning/after/noon. I have an ASP.net 3.5 website and I am using vb.net in
Good evening/morning/after/noon. I have an ASP.net 3.5 website and I am using vb.net in
Good evening all, I've been working on an MD5 tool in C# that takes
Good Evening All, A client has asked that I develop a web application as
Good evening everyone, I am using a JavaScript to load/override content from an HTML-File
Good Evening All, I have a textbox that needs to accept 14 digits plus
Good evening all. I'm attempting to dynamically populate a select_tag call in my rails
Good evening all, I'm trying to write a method that creates and returns a
Good evening, I created a class which inherits from UIViewController and i created a
Good evening all, I'm trying to implement jquery table sorter, all seems fine and

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.