CMS MADE SIMPLE FORGE

News Module

 

[#7361] News Detail Template Custom Field Display

avatar
Created By: Peter Stubbs (applejack1923)
Date Submitted: Fri Dec 16 10:35:27 -0500 2011

Assigned To: Ted Kulp (wishy)
Version: None
CMSMS Version: 1.10.2
Severity: Major
Resolution: Won't Fix
State: Open
Summary:
News Detail Template Custom Field Display
Detailed Description:
Version 2.12.3

In the detail template it no longer displays custom fields where they are
accessed directly by their name. This is really stupid as it now breaks all the
sites where any custom fields where accessed directly by their name. It still
works in the summary template so why change it in the detail template. This
should have been flagged up in a change log.


History

Comments
avatar
Date: 2012-01-01 14:00
Posted By: Mathieu Muths (airelibre) (airelibre)

I have the same problem because some of my custom fields have spaces and special
chars in their names... and it's hard to work with it in smarty - I have to
first assign the text to a variable, and then to call the
$entry->fieldsbyname.$MyFieldVar->value to display it...


Maybe the keys could be customized or transformed into someting usable in Smarty
?

Thanks
      
avatar
Date: 2012-04-14 18:09
Posted By: Robert Campbell (calguy1000)

sorry for missing this in the changelog.   Removing this stuff was actually a
'fix' for a problem where people were able to create custom fields who's name
was conflicting with a pre-existing field.  And rather than add more complexity
we made this module consistent with every other module.

In 1.11 all custom fields will be available by $entry->fields.  in both the
summary and detail views.
      
Updates

Updated: 2012-04-14 18:09
resolution_id: => 8