Hi Folks,
I have a content-type with a taxonomy. I want to display a view of content title and taxonomy in a grid. I want to display the taxonomy as a set of checkboxes so I can review all of the content and make global changes from just the one view. This raises the question about the difference between a field's display and edit characteristics.
If i want to display a node, I can call node_load() and so on... Suppose I want to display a node for edit? How does this internal processing differ, because obviously the result is substantially different. I suspect there is some magic that turns the page into a form, and that becomes the substance of my question. If I have a field, how to I change it from a "display" field to an editable "form" field?
To further qualify the question: I could easily create a custom formater and display the taxonomy field is a set of HTML checkboxes, but how do I discover these display characteristics, like label, colon and position; Alpha or numeric order; and then there are all the styling <div>s, which should be consistent with other fields on the page. These things are all specified in the original content type and I think I should make the effort to recognize and honor these choices, so I need to know how and where they are stored, and I don't currently know, but I think it is probably in the "page" ==> "form" magic.
The only real way to do this is to write code.
There may be some capability for this in Views Bulk Operations project. There’s a relavent stack exchange answer:
http://drupal.stackexchange.com/questions/10861/taxonomy-bulk-edit-in-drupal...
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Chris Miller Sent: Monday, December 09, 2013 8:47 AM To: support@drupal.org Subject: [support] "Editable Fields"
Hi Folks,
I have a content-type with a taxonomy. I want to display a view of content title and taxonomy in a grid. I want to display the taxonomy as a set of checkboxes so I can review all of the content and make global changes from just the one view. This raises the question about the difference between a field's display and edit characteristics.
If i want to display a node, I can call node_load() and so on... Suppose I want to display a node for edit? How does this internal processing differ, because obviously the result is substantially different. I suspect there is some magic that turns the page into a form, and that becomes the substance of my question. If I have a field, how to I change it from a "display" field to an editable "form" field?
To further qualify the question: I could easily create a custom formater and display the taxonomy field is a set of HTML checkboxes, but how do I discover these display characteristics, like label, colon and position; Alpha or numeric order; and then there are all the styling <div>s, which should be consistent with other fields on the page. These things are all specified in the original content type and I think I should make the effort to recognize and honor these choices, so I need to know how and where they are stored, and I don't currently know, but I think it is probably in the "page" ==> "form" magic. -- Chris.
From: "David Metzler" metzlerd@evergreen.edu To: "support@drupal.org" support@drupal.org Sent: Monday, December 9, 2013 10:20:08 AM Subject: Re: [support] "Editable Fields"
The only real way to do this is to write code.
Yes. I thought I indicated that I also believed that this is a coding exercise with my reference to "node_load()". That I will have to write code is undisputed; what I will have to write is still very much an open question that begs clarification.
There may be some capability for this in Views Bulk Operations project. There’s a relavent stack exchange answer:
http://drupal.stackexchange.com/questions/10861/taxonomy-bulk-edit-in-drupal...
I've been to VBO and it doesn't seem to do what I need. It seems to be a two step process -- select the rows of interest, then set the taxonomy; there isn't apparently a more gentle modification. I also looked at Editable Views and found that I couldn't even get an editable view, which is either my incompetence or misfortune to try to use a field that is not supported.
So the core issue is how Drupal treats display fields differently from "form" fields, and where I can find some explanations. We know that I could put this taxonomy field on a content-type and I would get editable values on page creation and page modification, so what calls are made to accomplish this, and where can I read about it?
Thanks for the help,
Chris.
Ok, well then the way you’ve asked the question belies that maybe you haven’t done due diligence in researching custom module development in drupal? I would recommend starting with Drupal Pro Development or some such tome. It is always difficult to gage someone’s development experience from a mailing list, but the way you ask the question:
“How does drupal treat display fields differently than form fields”
doesn’t seem like a relavent question to developing a custom module. Perhaps I’m in error here and I don’t understand the question you’re asking? As you know you can load nodes and save nodes with the appropriate function calls. You can make custom forms that display lists of taxonomy terms in a drupal form. I guess you’re asking how to write a custom module? Or are you asking how get a list of taxonomy terms? Or are you asking how to update a node programmatically?
If you have started development down this road and understand custom module development, perhaps you could post more specifics about the problems you’re having?
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Chris Miller Sent: Monday, December 09, 2013 4:46 PM To: support@drupal.org Subject: Re: [support] "Editable Fields"
From: "David Metzler" <metzlerd@evergreen.edumailto:metzlerd@evergreen.edu> To: "support@drupal.orgmailto:support@drupal.org" <support@drupal.orgmailto:support@drupal.org> Sent: Monday, December 9, 2013 10:20:08 AM Subject: Re: [support] "Editable Fields"
The only real way to do this is to write code. Yes. I thought I indicated that I also believed that this is a coding exercise with my reference to "node_load()". That I will have to write code is undisputed; what I will have to write is still very much an open question that begs clarification.
There may be some capability for this in Views Bulk Operations project. There’s a relavent stack exchange answer:
http://drupal.stackexchange.com/questions/10861/taxonomy-bulk-edit-in-drupal... I've been to VBO and it doesn't seem to do what I need. It seems to be a two step process -- select the rows of interest, then set the taxonomy; there isn't apparently a more gentle modification. I also looked at Editable Views and found that I couldn't even get an editable view, which is either my incompetence or misfortune to try to use a field that is not supported.
So the core issue is how Drupal treats display fields differently from "form" fields, and where I can find some explanations. We know that I could put this taxonomy field on a content-type and I would get editable values on page creation and page modification, so what calls are made to accomplish this, and where can I read about it?
Thanks for the help,
Chris.
Chris, You can try a module - Editable Views - https://drupal.org/project/editableviews Hope this works out for you ...
On Mon, Dec 9, 2013 at 11:50 PM, Metzler, David metzlerd@evergreen.eduwrote:
The only real way to do this is to write code.
There may be some capability for this in Views Bulk Operations project. There’s a relavent stack exchange answer:
http://drupal.stackexchange.com/questions/10861/taxonomy-bulk-edit-in-drupal...
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *Chris Miller *Sent:* Monday, December 09, 2013 8:47 AM *To:* support@drupal.org *Subject:* [support] "Editable Fields"
Hi Folks,
I have a content-type with a taxonomy. I want to display a view of content title and taxonomy in a grid. I want to display the taxonomy as a set of checkboxes so I can review all of the content and make global changes from just the one view. This raises the question about the difference between a field's display and edit characteristics.
If i want to display a node, I can call node_load() and so on... Suppose I want to display a node for edit? How does this internal processing differ, because obviously the result is substantially different. I suspect there is some magic that turns the page into a form, and that becomes the substance of my question. If I have a field, how to I change it from a "display" field to an editable "form" field?
To further qualify the question: I could easily create a custom formater and display the taxonomy field is a set of HTML checkboxes, but how do I discover these display characteristics, like label, colon and position; Alpha or numeric order; and then there are all the styling <div>s, which should be consistent with other fields on the page. These things are all specified in the original content type and I think I should make the effort to recognize and honor these choices, so I need to know how and where they are stored, and I don't currently know, but I think it is probably in the "page" ==> "form" magic.
--
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
There is also the Editable Fields module that works within views and everywhere else you can select a formatter: https://drupal.org/project/editablefields
Tracey
-------------------- Tracey Hummel Web Application Developer tracey@arizona.edu http://tshummel.com ________________________________ From: support-bounces@drupal.org [support-bounces@drupal.org] on behalf of Vaibhav Jain [in.vaibhavjain@gmail.com] Sent: Monday, December 09, 2013 8:18 PM To: support@drupal.org Subject: Re: [support] "Editable Fields"
Chris, You can try a module - Editable Views - https://drupal.org/project/editableviews Hope this works out for you ...
On Mon, Dec 9, 2013 at 11:50 PM, Metzler, David <metzlerd@evergreen.edumailto:metzlerd@evergreen.edu> wrote: The only real way to do this is to write code.
There may be some capability for this in Views Bulk Operations project. There’s a relavent stack exchange answer:
http://drupal.stackexchange.com/questions/10861/taxonomy-bulk-edit-in-drupal...
From: support-bounces@drupal.orgmailto:support-bounces@drupal.org [mailto:support-bounces@drupal.orgmailto:support-bounces@drupal.org] On Behalf Of Chris Miller Sent: Monday, December 09, 2013 8:47 AM To: support@drupal.orgmailto:support@drupal.org Subject: [support] "Editable Fields"
Hi Folks,
I have a content-type with a taxonomy. I want to display a view of content title and taxonomy in a grid. I want to display the taxonomy as a set of checkboxes so I can review all of the content and make global changes from just the one view. This raises the question about the difference between a field's display and edit characteristics.
If i want to display a node, I can call node_load() and so on... Suppose I want to display a node for edit? How does this internal processing differ, because obviously the result is substantially different. I suspect there is some magic that turns the page into a form, and that becomes the substance of my question. If I have a field, how to I change it from a "display" field to an editable "form" field?
To further qualify the question: I could easily create a custom formater and display the taxonomy field is a set of HTML checkboxes, but how do I discover these display characteristics, like label, colon and position; Alpha or numeric order; and then there are all the styling <div>s, which should be consistent with other fields on the page. These things are all specified in the original content type and I think I should make the effort to recognize and honor these choices, so I need to know how and where they are stored, and I don't currently know, but I think it is probably in the "page" ==> "form" magic. -- Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Regards, Vaibhav Jain