Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2009-10-27 13:46:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,234

Re: bot_write_tab_customize: rearrange and style items in the write tab

Thanks, Redbot! :)

Would you please integrate the save button in your next update of bot_wtc? “Update” is comprised but “Save” isn’t.

(Thanks also for the glz_cf update on bot_admin_tooltips!)

more!bot! more!bot! ;)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#22 2009-10-27 13:50:08

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

uli wrote:

;)
Good point Uli! I totally missed it. I’ll add it to the next release (hope soon). thank you!

Offline

#23 2009-10-27 14:01:51

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

Ok. V. 0.3 adds the “save button” to movable items.
See the updated first post for download.

Offline

#24 2009-10-31 14:48:10

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

V 0.4 is out. It adds some useful features:

  • A custom css class can be set for each item. This let’s you define classes for items that normally couldn’t be targeted with simple css (i.e. a p surrounding a specific custom field and his label) so then can be styled adding some rules in your textpattern.css.
  • Javascript code can be set directly throught the plugin interface. Particularly useful for use with an external jquery plugin and in conjunction with the ability to add a css class to any item on the page.

See first post for updated description and download.

Offline

#25 2009-11-01 19:24:47

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

Re: bot_write_tab_customize: rearrange and style items in the write tab

This let’s you define classes for items that normally couldn’t be targeted with simple css

now, that’s powerful ! Thanks!

Last edited by PascalL (2009-11-01 19:25:02)

Offline

#26 2009-11-17 01:13:17

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: bot_write_tab_customize: rearrange and style items in the write tab

Great plugin Redbot!

Feature suggestion: besides “before” and “after” a “hide” option to remove certain items from the write page. Right now, for each item I want to hide, I need to add a class and some extra custom jquery.

Last edited by jelle (2009-11-17 01:16:51)

Offline

#27 2009-11-17 02:05:33

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

jelle wrote:

… Feature suggestion: besides “before” and “after” a “hide” option to remove certain items from the write page. Right now, for each item I want to hide, I need to add a class and some extra custom jquery.

Hi jelle,
To tell the truth I didn’t include this feature on purpose given that I use (and recommend) ied_hide_in_admin which allows for a more granular per-user elements hiding and works also in the “categories” subtab.
Actually sometimes I really don’t need an item and so I use a method similar to yours – i.e. apply a class “hide” – (I have an “hide{display:none;}” rule in my standard txp.css file).
So, thank you for the suggestion but I don’t know if I’m gonna implement this. I’m rather planning to add a more challenging feature IMHO: the ability to hide/show items on section change (essentially I’m trying to incorporate and update my proof-of-concept plugin bot_hide_per_section ).
This – combined with glz_custom_fields and with his ability to add textareas – plus the ability to hide every item, not only cfs (and possibly adding to the mix rah_for_each_section), could allow for a really higher level of customization.

Last edited by redbot (2009-11-17 11:05:54)

Offline

#28 2009-11-17 08:49:23

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: bot_write_tab_customize: rearrange and style items in the write tab

I’m getting the following error when assigning two of my glz custom fields after the body area.

Notice: Undefined index: $("p:has(*[name=custom_2])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302

Notice: Undefined index: $("p:has(*[name=custom_3])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302

Offline

#29 2009-11-17 09:41:13

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

FireFusion wrote:

I’m getting the following error when assigning two of my glz custom fields after the body area.

Notice: Undefined index: $("p:has(*[name=custom_2])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302

Notice: Undefined index: $("p:has(*[name=custom_3])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302

You are perfectly right, my fault. I left an ancient stray line in the plugins code which is causing the bug.
I hope to release a new version shortly, in the meantime you can solve the problem by just editing the plugin and removing line 302.
Thanks.

Offline

#30 2009-12-01 16:06:50

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

Version 0.5 is out.
Main additions:

  • The plugin now incorporates bot_hide_per_section so every item (not only cfs) can be hidden on a per section basis
  • sections can be excluded from the “sections” dropdown
  • some bugs corrected

The plugin has been partly rewritten so if you are using a previous version you must first uninstall it completely (from extensions > bot_wtc > uninstall).

Please report here any bugs or problems.

For download and infos see updated first post

Offline

Board footer

Powered by FluxBB