Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: rah_expanding // Dynamically growing textareas
Wonderful plugin, Gocom! Just stumbled on this gem.
I haven’t actually used it yet outside of running some Lorum ipsum text to see the behavior so I have one question…when you save the article does it save the height of the adjusted text areas or does it collapste back to the default heights? (Ed. — Looks like it stays. Nice!)
Last edited by Destry (2009-02-21 11:41:42)
Offline
Re: rah_expanding // Dynamically growing textareas
Ah, I see. There’s a max character point where if passed then Txp’s default behavior returns for that article. That’s a bit of a bummer as my articles tend to be long and will break that limit frequently. Any way to extend that, or make it possible to configure as a preference?
Offline
Re: rah_expanding // Dynamically growing textareas
New version, 0.3, released. It’s a major update which changes rah_autogrowing_textarea a lot, and makes some tasty additions.
Changelog:
- Added: Admin panel (interface) under Extensions.
- Added: Able to define which textareas autogrow.
- Added: Max. height limit, line height and other optional style settings are now adjustable.
- Improved code.
And now some forum post replies. Battime.
Destry wrote:
Wonderful plugin, Gocom! Just stumbled on this gem.
Thanks :)
Destry wrote:
There’s a max character point where if passed then Txp’s default behavior returns for that article.
Not character limit, but height limit of 3000px. Starting from version 0.3, it’s adjustable via interface.
Destry wrote:
Looks like it stays. Nice!
It stays. It’s activately calculated from line count, upon page load.
Destry wrote:
The reason I ask is because it does not appear to be recursive with articles I’ve already written
It is.
Offline
#19 2009-02-21 21:23:42
- gerhard01
- Plugin Author
- Registered: 2006-12-07
- Posts: 108
Re: rah_expanding // Dynamically growing textareas
New version, 0.3, released […]
Changelog:
- Added: Admin panel (interface) under Extensions.
Thanks a lot for the update. Plugin works for me, however, clicking on the admin panel just leads to the following error message in my case:
Fatal error: Call to undefined function rah_plugin_download_install() in [PATH]/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 190
Last edited by gerhard01 (2009-02-21 21:24:25)
Offline
Re: rah_expanding // Dynamically growing textareas
gerhard01 wrote:
Thanks a lot for the update. Plugin works for me, however, clicking on the admin panel just leads to the following error message in my case:
Thank you for reporting. Accidently left a one development template function there. Fixed.
Released version 0.3.2. Changelog:
- Fixed: Removed lost child sceleton function; Fixes error:
Fatal error: Call to undefined function rah_plugin_download_install().
Offline
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
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
Re: rah_expanding // Dynamically growing textareas
New version released, rah_autogrowing_textarea 0.3.3. Changelog:
- Removed useless queries.
- Improved callbacks.
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
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