[Solved]News field file upload mystery leading to null value

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

[Solved]News field file upload mystery leading to null value

Post by blackhawk »

I am using cmsms 1.11.11 and I have created a news field definition with the following paramters:

Code: Select all

type = file
public status
From the admin interface, I can see the "file" input box on every article page under the news module. When I choose a file to upload and submit, the file name then reflects on the admin news article page. Great.

The problem is that my news details template is producing "null" for the following values associated to my "files" field definition...

Code: Select all

$field->value
and..

Code: Select all

$field->displayvalue

Bottom line - How is it that I can see the name of my files I uploaded under my article pages in admin, but when I debug my value, and display value, I am getting null? The file images don't appear on the front of my site either....

FYI - the files I upload are not appearing under image manager, so I don't know if that is related to this null issue...

Any advice on debugging this mystery will be greatly appreciated!

Thanks!
Last edited by blackhawk on Fri Oct 03, 2014 1:02 pm, edited 1 time in total.
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: News field file upload mystery leading to null value

Post by blackhawk »

I solved my issue by repeating basic steps on creating a news field definition in a clean version of 1.11.11, and I now see my files and all values. Sorry for the trouble.
Post Reply

Return to “The Lounge”