Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting nodes to update with content type changes in Drupal 7
    primarykey
    data
    text
    <p>I have a local build of Drupal 7 with Xampp on windows. When I add a field to a node's content type, I see the field appear <em>last</em>, no matter what order I put the field in Content types > [myType] > Manage fields. I would tend to think this is a cache problem... but I've tried Configuration > Performance > Clear all caches, and the order of the fields does not update.</p> <p>For example, I currently have an image field, a display title field, and a body field. In the Manage Fields lightbox, the order of the fields is:</p> <ol> <li><strong>Image</strong></li> <li><strong>Display Title</strong> (New field, I'm not using the default title because Drupal always places is above the image instead of after)</li> <li><strong>Body</strong></li> </ol> <p>However, on the page the order is</p> <ol> <li><strong>Image</strong></li> <li><strong>Body</strong></li> <li><strong>Display Title</strong></li> </ol> <p>This is not just a trick caused by funky CSS—the PHP is actually creating the HTML in the wrong order.</p> <p>I'm guessing that Drupal updates when you add a new field (which appears last by default when created). It <em>does not</em> update when fields are repositioned in Manage Fields, leaving the title last on the page, although it's second in Manage Fields. </p> <p>And yes, I did save the configuration after repositioning the fields in Manage Fields. I've also cleared the browser cache, and restarted the browser.</p> <p>How can I get Drupal to display the fields in the order they appear in Manage Fields?</p> <hr> <p>P.S. I also downloaded Drush to see if it could clear the cache. The Drush command line works, but none of the tutorials I found actually explain how to hook Drush up to a <em>local</em> install, only how to SSH into remote server... I typed in 'drush cc' my drupal folder, but I don't know if Drush actually did anything since I don't know how to make drush connect to my localhost.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload