Forums Community

These forums are dedicated to the discussion of our DotNetNuke products, such as Ultimate DNN Blog Module - SunBlogNuke & GalleryPlus.

HomeHomeUltimate DNN Bl...Ultimate DNN Bl...Support IssuesSupport IssuesContentSlider - [customfield:xxx] not working in template.ContentSlider - [customfield:xxx] not working in template.
Previous
 
Next
New Post
2/7/2012 12:03 AM
 

All my posts have a custom field on them: 

Key: CastlefordNewsArticleHeadline

Value: This is a test headline.

I have a content slider module on my page and when I navigate to the ContentSlider -> Manage Settings -> Widget Settings -> Item Template  and adjust it to reference my customfield - no values are being returned in generated html.

I'm using the syntax highlighted in the widget settings.

[customfield:xxx] - xxx is the key of the custom field.

which translates to:

[customfield:CastlefordNewsArticleHeadline]


Or with the full template:

<div id="postItem_[POSTID]">   

<h3>

  <a href="[TARGET]">[customfield:CastlefordNewsArticleHeadline]</a>

</h3>    

<p>[EXCERPTTEXT]...</p>

</div>

This produces html like so:

<div id="postItem_47">

<h3>

  <a href="http://localhost/attempt5/HealthNews/tabid/86/entryid/47/Headline-Four-This-is-the-title-of-the-article.aspx"></a>

</h3>

<p>The home secretary is to be quizzed in the Commons regarding border control....</p>

</div>

But I would expect this:

<div id="postItem_47">

<h3>  

  <a href="http://localhost/attempt5/HealthNews/tabid/86/entryid/47/Headline-Four-This-is-the-title-of-the-article.aspx">This is a test headline.</a>

</h3>

<p>The home secretary is to be quizzed in the Commons regarding border control....</p>

</div>


Am I missing a vital step in the process?



 
New Post
2/7/2012 1:21 AM
 
Just make sure that you have saved the custom field value but not only add it in the list. And you can check it out in edit process. Thanks.

Ultimate DNN Blog Module - SunBlogNuke
 
New Post
2/7/2012 1:51 AM
 
Hi there. Definately saved the values. Using latest version of sunblognuke on dnn 6.1 if that helps.
 
New Post
2/7/2012 4:15 AM
 
Got it. Note that it should be use the lowercase key for customfield token. Here the [customfield:castlefordnewsarticleheadline] should work as expected. Hope it helps.

Ultimate DNN Blog Module - SunBlogNuke
 
Previous
 
Next
HomeHomeUltimate DNN Bl...Ultimate DNN Bl...Support IssuesSupport IssuesContentSlider - [customfield:xxx] not working in template.ContentSlider - [customfield:xxx] not working in template.


Forum Guidline

For the benefit of the community and to keep information here helpful to everyone who visits, please observe the following posting guidelines:

  • If you are reporting a bug and strange issue please tell us which version of DNN and SunBlogNuke and share some event logs from "Admin/Event Viewer".
  • Site Moderators have the final word on approving/removing a thread or post or comment.
  • English language posting only, please.