Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-24 05:40:36

darock
Member
Registered: 2007-11-23
Posts: 54

Increase the width of custom fields

My biggest complaint about the custom fields is that I feel like the width and height are too small especially the data that goes into it often exceeds the 155pixels that is automatically given to it.

Other than actually editing the stylesheet that controls the width of the custom fields, is there any other solution? And if editing the stylesheet is the only way, are there any possible side effects from this…based on other people’s experiences?

Last edited by darock (2010-04-24 05:41:17)

Offline

#2 2010-04-24 07:48:58

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,000
Website GitHub

Re: Increase the width of custom fields

Hi Darock,

You have a number of options:
  • CSS: if you’re using txp 4.2, you can make your own admin theme and adjust the css for the column widths. All that would mean is that your central column is thinner. You can compensate for that by making the containing table a percentage width of the entire screen so you can use more of your screen real estate. It’s fairly easy to do: make a copy of the folder with the theme you want to base it on, rename the folder, the php file within and the name of the theme in the php file (function manifest at the bottom of the file), then select that as your theme in the admin settings. Modify textpattern.css in that new folder to your heart’s content.
  • Using glz_custom_fields and bot_write_tab_customize I believe you can reposition certain custom fields to sit beneath the excerpt.

TXP Builders – finely-crafted code, design and txp

Offline

#3 2010-04-25 14:45:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: Increase the width of custom fields

jakob wrote:

make a copy of the folder with the theme you want to base it on, rename the folder, the php file within and the name of the theme in the php file (function manifest at the bottom of the file), then select that as your theme in the admin settings.

… or use smd_admin_themes which’ll do all that for you ;-)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2010-04-26 17:30:30

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Increase the width of custom fields

Are you able to move the custom fields below the excerpt? I understand custom fields were designed originally for a few words but it would be great if they expanded to handle large amounts of text.


Art Rogue – Fine Art Photography

Offline

#5 2010-04-26 17:37:49

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,000
Website GitHub

Re: Increase the width of custom fields

Matt, I believe the most recent version of glz_custom_fields is supposed to make this possible. See the screenshots in this post in particular the my_textarea field beneath the excerpt.


TXP Builders – finely-crafted code, design and txp

Offline

#6 2010-04-26 20:47:58

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Increase the width of custom fields

jakob wrote:

…Using glz_custom_fields and bot_write_tab_customize I believe you can reposition certain custom fields to sit beneath the excerpt.

Yes, Jacob is right: using this two plugins together you can completely redesign the “write” tab and even better you can design a different interface for every section.
In other words you can reposition and style every page item and set some fields to show only when choosing certain sections (from the sections dropdown).

Offline

Board footer

Powered by FluxBB