Currently this field is only a hidden field.
When this possibility is implemented the sitebuilders can still decide to hide this field.
Currently this field is only a hidden field.
When this possibility is implemented the sitebuilders can still decide to hide this field.
Comments
Comment #1
kehan commentedAnd that's why it doesn't show up in a view or an Automatic Entity Label
+1 for this feature.
Comment #2
kehan commentedAnd to do this add the following to machine_name.module
Comment #3
c-logemannThank you kehan for your help.
I set status to "needs review".
I will check this by myself when I have time to.
If you want to do more you can create a patch to make testing easier especially for automated tests:
http://drupal.org/node/332678
Comment #4
kehan commentedI'll work on a patch when I'm on this again later this week. A much simpler workaround is using hook_field_formatter_info_alter to simply associate text_plain with 'machine_name' field types.
Comment #5
bdragon commentedThis is needed for #1549276: Port default issue queue views to views 7.x-3.x.
Comment #6
c-logemannOk, I try to work on this on this weekend.
Comment #7
c-logemannAfter working on #1578454: Undefined index: machine_name_machine_name the code of #2 doesn't work anymore.
I am still working on this problem.
Comment #8
c-logemannI don't know where the problem was but I now it's working well. I've successfully tested the upgrading several times.
There was only a problem with upgrading from alpha version to current code and the new formatter won't appear on "manage display" only on fresh install. Maybe a kind of caching problem with fields? Feel free to reopen this issue if someone have problems like this.
I've cleaned the code of #2 a little bit and committed it:
http://drupalcode.org/project/machine_name.git/commit/e0da251
Comment #9
rogerrogers commentedHi, I've upgraded to the dev version so that I can use this field formatter to render the machine name field. However, the formatter doesn't display, I assume because I already have the machine_name module installed before changing to the --dev version. I don't want to uninstall, because I will lose the machine name fields I've already setup. Is there a way to manually update the database to add the field formatter info?
For now I've added this snippit to the machine name module:
However, I'm concerned that if the module ever gets updated this will be replaced and the field won't render. So, would like to get this sorted properly, since the dev version does register this formatter on install.
Cheers!
Comment #10
c-logemann@RogerRogers: I opened a new Issue to answer your questions.
To show it's related to this issue, I connected it: #2822623: field formatter doesn't work properly