I would like to customize the edit form for creating new content. For example, I create a new content type named Experiment and I want to change the layout, add text and style the edit form. What is the best approach?
120541
Like it says -- I've got a D7 content type whose editing form needs to be themed.  I did this all the time in D6 by registering theme functions in template.php and writing the associated theming functions, but things seem to have changed in D7, especially regarding what goes into template.php, or if D7 has shifted to using .tpl.php files for this, or whatever.  Is there any advice out there?
50084
Here is what the bottom of my "leaflet" content type edit form (i.e. admin > structure > content types > leaflet > edit) looks like:   Here is what the bottom of my "testimony" content type edit form looks like:   Note that there are no save/delete buttons! Another of my content types has also now picked up this bug. This just happened. I have no idea why. I can't save changes! I tried flushing all caches and it didn't help. I'm an administrator and I have permissions for everything.  Why would this have happened and what can I do? Drupal 7.19.
77735
I've added a few custom user fields which users complete when registering.  What is the simplest approach to show these fields when viewing content that user has created?  For example, when viewing a blog entry I can see the 'submitted by..' and their name. I would like to use my custom user fields to expand that summary.  I've got no problem using views, or creating/modifying the theme etc, but I'd like some guidance on the easiest approach before I start out. (It's too easy to hack away on one approach in Drupal when there's a much easier solution!)
43073
I realized that, 90% of the time, whenever I edit another person's post, my editing summary looks like this:  Improved formatting, spelling mistakes, grammar mistakes, indentation, removed the bloody xcode tag.  I'm pretty sure that I've written the same thing a million times, I was thinking that maybe we could introduce a check-boxed editing questionnaire at the end, instead of the editing summary. Mockup  (Link to the ) The mockup swaps the Summary text input with a series of checkboxes, each checkbox representing a category of change, and having their own custom tooltip detailing what/which changes fall under the category. The &quot;Save Edits&quot; box would need at least one check box to be marked. The &quot;Other&quot; text box auto-marks the checkbox to its left, so the older editing flow is supported. Advantages  Convenience Being able to track individual changes easier, for instance, a user could be black-listed for spelling, but at least he gets the format right. Easier for new users to get accustomed to how the editing works, and what they are expected to do, like &quot;Can I change the grammar? Oh, there's a box about it, then I can&quot;. And users are genuinely asked if they have changed all that they can change with this system. You get accounted for what you've changed.  Suggested Categories  Grammar: The text has been moved around, punctuation was changed, or other changes that don't modify words but the way they are delivered. Spelling: Individual words were modified. Text format: Stylistic changes were made to improve readability. Things like bold, italics, links or code blocks were added or removed. Or removed a link and pasted the contents it held. Code format: Indentation, spacing or comments were modified to ensure that the code is readable. Tags: Gets automatically marked if there are differences between the tags, the user cannot manually check or uncheck this box, this is as a feedback that the tags were changed, in case he forgot. Other: None of the above cut it? Have a text box that can be clicked (checkbox gets marked when doing so) and write away.  Possible Side-Features  Auto-check boxes depending of the nature of the change, if it's mostly whitespace, then add the code format tag, if there's minor changes in a lot of words, then might be spelling. New users could be asked to fill two or more checkboxes of changes, as part of their learning. &quot;Translation&quot;. Mark a checkbox with a drop-down, and marking that the text has been translated from another language, so that users proficient in that language can verify the correctness of the translation in the review queue (or even a custom queue, like &quot;translators queue&quot;). This would be a big feature for SO. Badges for each category, .
23957
I can create a node using the following code:  $node = \Drupal::entityTypeManager()-&gt;getStorage('node')-&gt;create($array);   But if I have the node ID, how can I edit a node?
71354
I have edited a script that creates some nodes, but the only problem is, it always created a new material. I want it to either add the nodes on the existing material, or a pre-defined material. Here is the script base I am using.    Thanks for the help in advance! :D
83482
I'm attempting to make a page for users to edit data for a specific content type, but I only want them to have access to some of the fields not all. To do so I created a custom form display mode for content. I have a custom controller that is meant to display this form with a custom display mode. Here is the code meant to render it.      public function showCustomForm() {         $node = \Drupal::entityTypeManager()-&gt;getStorage('node')-&gt;load('123');         $edit_form = \Drupal::entityTypeManager()-&gt;getFormObject('node', 'my_custom_form_display_mode_id')-&gt;setEntity($node);         return \Drupal::formBuilder()-&gt;getForm($edit_form);     }   And I get the error     Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException:   The "node" entity type did not specify a   "my_custom_form_display_mode_id" form class. in   Drupal\Core\Entity\EntityTypeManager->getFormObject() (line 184 of   /var/www/mydomain/http/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).   I was using this  as an example. But still had no luck.  How would I programmatically load a node edit form with a custom form display mode?
67412
I need to add custom validation to a form, lets says add article form.   I was expecting something like hook_FORM_ID_validate() to handle this, but cannot find anything relavant in the API documentation.  What is the way to add custom validation to a form?
63764
I'm interested to know what would be best the option from a UX perspective. I have a table in which i need to decide if i should edit each row with inline editing where you can click on each item in the row and edit seperately or all at once with a modal popup.
111771
I have the following problem: When I want to edit the content of posts, Wordpress simply opens its standard page editor where I can add and arrange blocks, control the general page design and what not. That page editor comes with tons of controls and in my case also all kinds of additional parameter areas for various plugins (like Yoast SEO and Content Egg etc). Only among others can I edit the post content (text) there. What I would like Wordpress to do is to open a custom page where I can just edit the post content (text) and submit the changed text back to the underlying database. So how would I go about directing Wordpress to opening some custom page I have created where I can simply edit the post content, without all the editing facilities of Wordpress around? The custom post editing page would probably a form with a message field where I can edit and submit the post content. How exactly would I need to build that form so that the (edited) post content is stored back into the database when I click on the form's submit button?
61965
My module provides a configuration form which allows to select a content type and on submit 2 new fields will be added to the selected content types.  I want to add these fields to the content types programmatically and I tried this using hook_entity_bundle_field_info but the fields don't get saved.  How can I save the fields? And how can I delete the fields (if the user changes the content type in the configuration form)?
105763
Here's a screenshot of the editing page as can be seen from far away:        As you can barely see, the side gadget called "How to edit" with formatting tips and such is below the "Save edits" button. This just happened to me right after I posted a question and without refreshing the page pressed "edit".  ()
109317
I am trying to create a custom EDIT ALL list button on OrderItem (Order Product) with content source as Visualforce page and am getting below error. I don't want to use standard EDIT ALL button as I want to add some new custom fields to be editable and some fields to be non editable.      Error: List controllers are not supported for OrderItem      Here is my page:  &lt;apex:page standardController="OrderItem"  recordSetVar="EditAllProducts"&gt;     ... &lt;/apex:page&gt;   Any workaround for this ?
15323
I have a question about editing practices:  Does it look good to edit a question you have just answered?  For example: say I had just answered a question, then saw that the question had some minor formatting issues. Should I edit it? Does it turn up voters off when they see that I am answering a question I changed, possibly to better suit my answer?
114273
I have a search field for the blog posts, but I need an other for a custom post type. How can I create this custom search form with a different search result layout?
115038
I installed the  module and would like to customize the sitemap.  For example, I would like to exclude some nodes that have a certain term reference field. I would also like to be able to create separate sitemaps for each content type.  Is there a way to do that?  Otherwise I could probably generate the xml sitemaps with  module.
102638
I would like to add some additional features/functionality with already available WordPress plugin.  Is it possible to carry over my customization while updating the plugin?