Tricking RightFields Into Showing Your Extra Fields First
Kevin Shay's RightFields is probably one of my most-used plugins for Movable Type, and thanks to Kevin's help I came up with a unique solution to a problem I was facing.
RightFields lets you rename the standard fields (entry body, extended entry, etc.), but I had a strange situation today where I needed to keep the standard fields untouched and use only extra fields. (The client was migrating from using the entry body for everything to using the extra fields for different types of data, but it's a migration that will take a long time.) Of course, RightFields handles this beautifully, but the client has a unique request: move the extra fields to the top of the edit entry screen.
Unfortunately, RightFields doesn't have the option to place the extra fields before the standard fields. But here's the nifty tweak:
RightFields uses <TMPL_IF NAME=DISP_PREFS_SHOW_TAGS> as an anchor to place the extra fields in the edit_entry.tmpl file. (This is the template that you see when you edit an entry.) So let's fool RightFields into moving the extra fields by moving the anchor.
Edit the /MT_DIR/tmpl/cms/edit_entry.tmpl file.
Look for <div id="body-box"> and put the following code right after it:
<!-- Lets trick RightFields! -->
<TMPL_IF NAME=DISP_PREFS_SHOW_TAGS></TMPL_IF>
<!-- End trick -->
Your edit entry screen should now display extra fields first!
- Comments (1)
- in the chapter, "Movable Type"
- tagged with RightFields hack
InterAction:
YourThoughts?
(Minutia)
- Author:Jesse
- Published:Aug 13, 2007
- Chapters:
- Previous:
- Next:
GetUpdated
ElseWhere
AllChapters
- 2 articles in the chapter Accessibility
- 6 articles in the chapter Announcements
- 2 articles in the chapter Apple
- 5 articles in the chapter Blogging
- 7 articles in the chapter CMS
- 1 articles in the chapter Code
- 3 articles in the chapter CSS
- 16 articles in the chapter Design
- 1 articles in the chapter DIY
- 4 articles in the chapter Downloads
- 1 articles in the chapter Freebies
- 2 articles in the chapter Gadgets
- 5 articles in the chapter Journeys
- 1 articles in the chapter Miscellany
- 1 articles in the chapter Mobile
- 59 articles in the chapter Movable Type
- 2 articles in the chapter Plugins
- 1 articles in the chapter Print
- 3 articles in the chapter Projects
- 1 articles in the chapter Reviews
- 2 articles in the chapter SEO
- 8 articles in the chapter Social Networking
- 1 articles in the chapter Standards
- 4 articles in the chapter Writing
BiteSize.blog
ReaderFavorites
- CSS Image Framing
- Tools of the Web Design Trade, Pt.1: Where to Begin
- Tools of the Web Design Trade, Pt.2: Building Trust
- 10 Tips For Creating Website Mockups In Photoshop
- Movable Type As A Desktop App
- Redesign, Part 1: The Logo
- Redesign, Part 2: Stylesheet Philosophy
- The Social Graph in Plain Language
- Writing Your Own Autobiography: The New Persistence of Information
- Designing eComm 2008


















21 September 20071. salguod:
I have the opposite problem - I've somehow gotten my Rightfields fields at the top of the entry screen I'd like to restore them to the bottom. I think i dragged the entry body box down or something. Anyway, I can't move it back. Any ideas?