Note that there are some explanatory texts on larger screens.

plurals
  1. PODrupal 6 CCK Field Not Showing
    primarykey
    data
    text
    <p>In Drupal 6, I added a custom field to a custom content type.</p> <p>The name is: "field_publishedin"</p> <p>I then added data into that field for some sample articles.</p> <p>In the view for it, I added that field as well.</p> <p>On the page that renders it I added the code to show the field as well:</p> <pre><code>&lt;div class="press-content"&gt; &lt;div class="family-news"&gt; &lt;?php foreach($rows as $row): ?&gt; &lt;div class="news"&gt; &lt;div class="data"&gt;Posted on &lt;a href="&lt;?php print url('news/'.$row['created_1']) ?&gt;"&gt; &lt;?php print $row['created'] ?&gt;&lt;/a&gt; &lt;/div&gt;&lt;!--DATA--&gt; &lt;h4&gt;&lt;?php print $row['title'] ?&gt;&lt;span&gt;&lt;?php print $row['field_publishedin_value']; ?&gt;&lt;/span&gt;&lt;/h4&gt; &lt;/div&gt;&lt;!--NEWS--&gt; &lt;?php endforeach ?&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>So the code I added is <code>&lt;span&gt;&lt;?php print $row['field_publishedin_value']; ?&gt;&lt;/span&gt;</code> since according to the view when using in a template you are suppose to add "_value".</p> <p>However, I clicked rescan templates, emptied the drupal cache but that new code still does not render on the page.</p> <p>When I add this to the page: <code>&lt;?php print '&lt;pre&gt;' . htmlentities(print_r($rows, 1)) . '&lt;/pre&gt;'; ?&gt;</code> and it outputs the possible array values it does not show, "field_publishedin_value" so it seems like the template doesnt know that field exists even though its in the view. Help?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload