Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2009-04-23 19:07:19

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: rah_expanding // Dynamically growing textareas

This seems to not play nice with hak_tinymce … it creates a duplicate textarea, the rah_autogrowing_textarea one on top, and the hak_tinymce one below.

Offline

#22 2009-04-23 19:28:45

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

floodfish wrote:

This seems to not play nice with hak_tinymce … it creates a duplicate textarea, the rah_autogrowing_textarea one on top, and the hak_tinymce one below.

Absolutely. hak_tinymce is a WYSIWYG editor and uses it’s own editor area. So they can not work together.

Last edited by Gocom (2009-04-23 19:31:24)

Offline

#23 2009-06-03 06:00:25

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

New version released, rah_autogrowing_textarea 0.3.3. Changelog:

  • Removed useless queries.
  • Improved callbacks.

More info and downloads

Offline

#24 2009-06-26 06:07:49

stever
New Member
Registered: 2009-05-13
Posts: 7

Re: rah_expanding // Dynamically growing textareas

Hi Gocom and Guys,

Looks like a super plugin, I am looking at it on a test install at the moment but need some advice. I can see in the main textpattern.css;

textarea#body, textarea#excerpt, textarea#keywords, textarea#css, textarea#html, textarea#plugin-install

What I would like to do is increase the text area of Custom Field 1, I am using this for my meta_desc tag for each page and it’s not too easy to work with, or more importantly read back being such a short input field. Could you give me some advice as to how I can adjust this field to make it multi-line, autogrow or just bigger.

Thanks
Steve

Offline

#25 2009-06-26 07:06:46

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: rah_expanding // Dynamically growing textareas

Stever, maybe you could try hpw_admincss

Offline

#26 2009-06-26 17:12:31

stever
New Member
Registered: 2009-05-13
Posts: 7

Re: rah_expanding // Dynamically growing textareas

Ultramega, thanks for coming back.

Had a look at hpw_admincss, bit of a newbie at this and not really sure what should be in the admin.css to cover the simple change I want. Sounds good for the future, does it work with 4.08. I only really need to change the one field for the moment, maybe play with full customisation later.

Is there any help anywhere about how to customise the admin side you know of?

Thanks
Steve

Offline

#27 2009-06-26 17:35:36

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

Sorry, but I don’t really understand why you are asking this in this plugin topic, but anyway…

stever wrote:

What I would like to do is increase the text area of Custom Field 1

By default the custom fields are text inputs not textareas. Auto growing won’t work with inputs, because inputs can only handle a one line etc.

But you could change the input into textarea, possibly by hacking the TXP code (article.php), or by transforming it with jQuery etc. Also note that there is a great plugin called glz_custom_fields

stever wrote:

Is there any help anywhere about how to customise the admin side you know of?

Next upcoming TXP 4.2.0 holds admin theming.

Offline

#28 2009-06-26 20:10:09

stever
New Member
Registered: 2009-05-13
Posts: 7

Re: rah_expanding // Dynamically growing textareas

Hi,

Yes sorry about that.

Built one site with TXP, TXP is great. Bigger learning learning curve than others I have used to date and still finding my way around. I actually couldn’t find an answer to increasing the size of the custom fields in the forum anywhere else. On reflection, maybe not the best place to ask this question but auto_growing seemed too good to be true, thank you for your explaination detailing the differences between inputs and textareas.

Hacking TXP is beyond my skill level at the moment. Had a look at glz_custom_fields, looks super and will look a little deeper for my next site.

I actually followed the example from the textpattern solutions book for my meta_desc using custom fields, the book, TXP forum, Textbook etc. have been invaluable. Although the example is good it’s hard to work with and I have been struggling filling the meta descriptions to all my pages using such a small field. I should maybe looking at another method of working with meta data as opposed to trying to change the admin side.

Thanks for your help.
Steve

Offline

#29 2009-06-27 06:15:19

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: rah_expanding // Dynamically growing textareas

Stever, with the admin css plugin you could propably change any parts of admin. Look the source of needed admin page, find the id-hook say for custom field and then style it with new stylesheet named “admin”. But it is true that it won’t help you a lot because custom fields are single line inputs. You can just make it wider with admin css, if you make it taller, text still runs horizontally out of the box.

Could you use expcert field for longer descs?

Offline

#30 2009-06-27 06:37:38

stever
New Member
Registered: 2009-05-13
Posts: 7

Re: rah_expanding // Dynamically growing textareas

Ultramega,

I see a few of the meta plugins have the option of using the excerpt field for the meta description. Thanks for the advice, I will take a look at this option. My only concern about this is what happens to a blog type install when you have used the excerpt field for meta_desc but then you want to start using conventional excerpts for the blog itself?

Offline

Board footer

Powered by FluxBB