ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Custom Fields Not Rendering

August 15, 2008 6:19pm

Subscribe [2]
  • #1 / Aug 15, 2008 6:19pm

    Chris Ediger

    46 posts

    I’ve been banging my head against the desk for the last hour trying to figure this out. For some reason my template is not rendering/parsing the custom fields I have. Here’s the code:

    (This is part of an RSS podcast template)

    {exp:weblog:entries weblog="catalyst_vodcast" rdf="off" limit="15"}
    <item>
        <title>{title}</title>
        <itunes:author>Catalyst</itunes:author>
        <description>{catalyst_vodcast_description}</description>
        <itunes:subtitle >
        <itunes:summary>{catalyst_vodcast_description}</itunes:summary>
    
        <enclosure type="video/mp4" url="{catalyst_vodcast_dlurl}" length="{catalyst_vodcast_size}" >
        <link>{catalyst_vodcast_dlurl}</link>
        <guid isPermaLink="false" >
        {gmt_entry_date format="{DATE_RFC2822}"}</pubDate>
        <category>Religion & Spirituality</category>
        <itunes:explicit>no</itunes:explicit>
        <itunes:duration>00:00:00</itunes:duration>
    
        <itunes:keywords >
        <media:content url="{catalyst_vodcast_dlurl}" fileSize="{catalyst_vodcast_size}" type="video/mp4" >
    </item>
    
    {/exp:weblog:entries}
  • #2 / Aug 15, 2008 6:23pm

    Chris Ediger

    46 posts

    You can view the rendered template here: http://www.catalystspace.com/vodcast/rss_2.0

    Full RSS Template below:

    {exp:rss:feed weblog="catalyst_vodcast" rdf="off" show_future_entries="no"}<br /> <?xml version=“1.0” encoding=“UTF-8”?><br /> <rss xmlns:itunes=“http://www.itunes.com/dtds/podcast-1.0.dtd” xmlns:atom=“http://www.w3.org/2005/Atom” xmlns:media=“http://search.yahoo.com/mrss/” xmlns:feedburner=“http://rssnamespace.org/feedburner/ext/1.0” version=“2.0”><br />   <channel><br />       <br />       {exp:weblog:entries weblog="catalyst_vodcast" limit="1" sort="date" order="DESC" rdf="off" show_future_entries="no"}<lastBuildDate>{gmt_entry_date format="{DATE_RFC2822}”}</lastBuildDate>{/exp:weblog:entries}<br />       <title>Catalyst Vodcast</title><br />       <itunes:author>Catalyst</itunes:author><br />       <link>http://www.catalystspace.com</link><br />       <generator>ExpressionEngine - <a href="http://www.expressionengine.com&lt/generator&gt">http://www.expressionengine.com</generator&gt</a>;</p> <p>      <description><![CDATA[The Catalyst Vodcast features a countdown of the top five news items for next generation church leaders. Hosted by Sally Heffner and Jen Hundley, these five-minute episodes give you a run-down of what iss happening this week in the ministry world. Catalyst is the filter for what is next in the church.]]></description><br />       <itunes:subtitle>The Top Five News Items for Next Generation Church Leaders</itunes:subtitle><br />       <itunes:summary>The Catalyst Vodcast features a countdown of the top five news items for next generation church leaders. Hosted by Sally Heffner and Jen Hundley, these five-minute episodes give you a run-down of what iss happening this week in the ministry world. Catalyst is the filter for what is next in the church.</itunes:summary><br />       <language>en-us</language><br />       <copyright>2008 Catalyst</copyright><br />       <itunes:owner><br />         <itunes:name>Catalyst</itunes:name><br />         <itunes:email>[email protected]</itunes:email><br />       </itunes:owner><br />       <image><br />         <url>http://www.catalystspace.com/images/vodcast/vodcast_rsslg.jpg</url><br />         <title>Catalyst Vodcast</title><br />         <link>http://www.catalystspace.com</link></p> <p>        <width>350</width><br />         <height>350</height><br />       </image><br />       <itunes:image href=“http://www.catalystspace.com/images/vodcast/vodcast_rsslg.jpg” ><br />       <category>Religion & Spirituality</category><br />       <itunes:category text=“Religion & Spirituality”><br />         <itunes:category text=“Christianity” ><br />       </itunes:category><br />       <itunes:keywords ><br />       <itunes:explicit>no</itunes:explicit><br />       <media:copyright>2008 Catalyst</media:copyright><br />       <media:thumbnail url=“http://www.catalystspace.com/images/vodcast/vodcast_rsslg.jpg” ><br />       <media:keywords></media:keywords><br />       <media:category scheme=“http://www.itunes.com/dtds/podcast-1.0.dtd”>Religion & Spirituality</media:category><br />       <atom10:link xmlns:atom10=“http://www.w3.org/2005/Atom” rel=“self” href=“http://feeds.feedburner.com/giantimpact/sites/catalyst/vodcast” type=“application/rss+xml” ></p> <p>      {exp:weblog:entries weblog="catalyst_vodcast" rdf="off" limit="15"}<br />       <item><br />         <title>{title}</title><br />         <itunes:author>Catalyst</itunes:author><br />         <description>{catalyst_vodcast_description}</description><br />         <itunes:subtitle ><br />         <itunes:summary>{catalyst_vodcast_description}</itunes:summary><br />       <br />         <enclosure type=“video/mp4” url=”{catalyst_vodcast_dlurl}” length=”{catalyst_vodcast_size}” ><br />         <link>{catalyst_vodcast_dlurl}</link><br />         <guid isPermaLink=“false” ><br />         {gmt_entry_date format="{DATE_RFC2822}”}</pubDate><br />         <category>Religion & Spirituality</category><br />         <itunes:explicit>no</itunes:explicit><br />         <itunes:duration>00:00:00</itunes:duration><br />       <br />         <itunes:keywords ><br />         <media:content url=”{catalyst_vodcast_dlurl}” fileSize=”{catalyst_vodcast_size}” type=“video/mp4” ><br />       </item><br />       {/exp:weblog:entries}<br />         <br />       <media:credit role=“author”>Catalyst</media:credit><br />       <media:rating>nonadult</media:rating><br />       <media:description type=“plain”>The Top Five News Items for Next Generation Church Leaders</media:description><br />   </channel><br /> </rss><br /> {/exp:rss:feed}

  • #3 / Aug 15, 2008 6:38pm

    Chris Ediger

    46 posts

    Looks like it is rendering one custom field, but none of the others. The custom field that works is {catalyst_vodcast_size}. All others don’t work.

    View the link in the previous post & view source to see what I’m talking about.

    Weird.

  • #4 / Aug 15, 2008 6:45pm

    Chris Ediger

    46 posts

    One more progression - Created the template below to test exactly which fields were not rendering. You can view the output here: http://www.catalystspace.com/vodcast/index.php

    {exp:weblog:entries weblog="catalyst_vodcast" rdf="off" limit="15"}<br /> {title}<br /> {catalyst_vodcast_description}<br /> {catalyst_vodcast_fileurl}<br /> {catalyst_vodcast_dlyn}<br /> {catalyst_vodcast_durl}<br /> {catalyst_vodcast_hdyn}<br /> {catalyst_vodcast_hdurl}<br /> {catalyst_vodcast_width}<br /> {catalyst_vodcast_height}<br /> {catalyst_vodcast_hdwidth}<br /> {catalyst_vodcast_hdheight}<br /> {catalyst_vodcast_coverimg}<br /> {catalyst_vodcast_size}<br /> {catalyst_vodcast_hdsize}<br /> {/exp:weblog:entries}

  • #5 / Aug 15, 2008 6:53pm

    Derek Jones

    7561 posts

    Can you double check the field short names in your custom field settings?  The names are case sensitive, too, so keep that in mind.

  • #6 / Aug 15, 2008 9:02pm

    Chris Ediger

    46 posts

    They’re correct. I cut and pasted all of them to the templates.

  • #7 / Aug 15, 2008 9:27pm

    Derek Jones

    7561 posts

    Do you have any extensions installed Chris?  Also what version and build of ExpressionEngine are you running?

  • #8 / Aug 15, 2008 10:12pm

    Chris Ediger

    46 posts

    ExpressionEngine v1.6.4 with MSM

    These extensions are installed…
    Edit Tab AJAX
    LG Polls
    LG TinyMCE
    Register Birthday
    LG Image Manager
    Akismet Check

  • #9 / Aug 15, 2008 10:18pm

    Derek Jones

    7561 posts

    I don’t believe any of those would be affecting the weblog entries output.  Can you email me login access to edit this test template and examine the settings first hand?  I cannot think of anything that would cause this except perhaps invisible characters in the template preventing it from being able to match the variable, but with cut and paste that doesn’t seem likely at all.

  • #10 / Aug 15, 2008 10:21pm

    Chris Ediger

    46 posts

    Email is on its way. Thanks for your help.

  • #11 / Aug 15, 2008 10:58pm

    Derek Jones

    7561 posts

    Was this field group originally in a different Site and then manually moved?  The fields that aren’t rendering have the incorrect site_id in exp_weblog_fields.

  • #12 / Aug 16, 2008 12:35am

    Chris Ediger

    46 posts

    Hmmm… I copied the template over from another one of our sites, so I had two tabs open in my browser at one time with one site in each template. It’s possible that EE got convoluted in the process.

    I went into the tables & switched the site_ids & everything is working right now. Thanks so much for your help!

  • #13 / Aug 16, 2008 12:56am

    Derek Jones

    7561 posts

    There aren’t any actions in ExpressionEngine’s control panel that would modify that information, certainly not in the template editor.  Just so it’s clear before I close this out, were you copying via a MySQL utility?

  • #14 / Aug 16, 2008 1:40am

    Chris Ediger

    46 posts

    No. I meant that when I was setting up the section/template I did two things (each with each site open in a separate tab at the time):

    1 - I copied & pasted the template from one site to the other after I had created it in Catalyst.

    2 - Keeping the previous section’s custom field group open in one tab, I manually created new fields/field group that matched.

    Both of these were manually done.

  • #15 / Aug 19, 2008 12:14pm

    Robin Sowell

    13255 posts

    Just to update you- we’re poking on this attempting to replicate it.  So, still digging into how the site id got off.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases