17 March 2011 at 12:13am
Been a while since I have posted, but I am having an issue with the Blog module. Basically, when I try and add a Blog Entry in the CMS, the Author field is not pre-populated and has to be manually updated each post.
Is it possible to get this to be pre-populated? Looking at the code it looks like it is supposed to be.
If that fails, is there is a way of removing it, and instead relying on the Author assigned in sitetree_versions?
17 March 2011 at 3:34am
I didn't know you could alter defaults like that. Me neither, I have just discovered it!
It’s really strange… I’ve done some debugging and it seems that you cannot add a default value to that "Author" TextField through getCMSFields(). Just try adding a test TextField with a random default value or the $firstName of the current user, and you’ll see it works.