Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#157 2010-09-14 16:43:01

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

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

how come i didn’t know that plugin? great stuff, almost indispensable! thx loads …

Offline

#158 2010-09-14 21:17:16

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

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

funtoosh wrote:

how come i didn’t know that plugin? great stuff, almost indispensable! thx loads …

Thanks ;-)

Offline

#159 2010-10-08 12:24:16

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

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

love it!!

Offline

#160 2010-10-09 14:26:36

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

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

jens31 wrote:

love it!!

Thank you

Offline

#161 2010-11-14 15:21:16

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

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

New version 0.6.3 is out. It’s primary aim is to fix a nasty bug I discovered recently: If you are in “advanced” mode and hit update all your previously saved static sections and jquery scripts will be deleted (while all other settings will be correctly saved). This can be really annoying – especially if you wrote a lot of js – so I encourage you to upgrade. Other than that
  • it is now fully compatible with rah_section_titles
  • outputs a lot less js code.
    Note that this will probably be the last version compatible with txp 4.2 (it should work ok with 4.3 as well).
    Next version will be only for 4.3.

Go to first post for download

Last edited by redbot (2010-11-14 15:22:40)

Offline

#162 2011-01-16 16:59:38

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

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

Hi redbot, I just upgraded to 4.3, and noticed that I have several new collapsible areas (“labels”) on the Write tab, a few of which I’m unable to hide, since they aren’t listed in bot_wtc. These are “Custom Fields”, “Article Image”, and “Meta”. I would have guessed these would display as ‘xxxxx (label)’ in bot_wtc, like the other collapsible areas I was able to hide. Have you seen this?

btw, the “Article Image” is something different from the one that refers to bot_image_upload…that one does show up in bot_wtc.

Last edited by aswihart (2011-01-16 17:16:13)

Offline

#163 2011-01-16 20:07:54

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

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

aswihart wrote:

Hi redbot, I just upgraded to 4.3, and noticed that I have several new collapsible areas (“labels”) on the Write tab, a few of which I’m unable to hide, since they aren’t listed in bot_wtc…..

Yes I know, I just need some time to update it. I’ll do asap

Offline

#164 2011-01-20 01:26:54

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

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

Bot_wtc 7.0 is out.

This version works only with txp v.4.3 – for previus versions use v. 0.6.3.

Changes and issues

Textpattern 4.3 brought a lot of cool enhancements to the “write” tab but also a few drawbacks.

On the ‘enhancement’ side almost every item has now an id or a class. This means a snappier jquery execution and, above all, the possibility to hide these elements with simple css. For these reason I highly reccommend – if you want to hide an item in each section – to set a rule directly in your textpattern css file.
For example:

.override-form {display:none;}

is a lot more efficient than hiding the item in each section using this plugin.

Unluckily there are some little drawbacks in the way the page is designed (IMHO). I’m referring to the several collapsible groups which crowd the ‘write’ tab.
The issue here is while you can easily hide a group label (well, actually it isn’t an html label but an h3) with css, this may lead to trouble if the group is already collapsed. In this case a user will not be able to expand it anymore being there nothing to be clicked.

Of course this is nothing dramatic and can be fixed inserting a tiny jquery rule in the js box. Something like:

<script type="text/javascript">
    $(document).ready(function() {
        $(".toggle").show();
    });
</script>

will keep everything expanded so you can safely hide any label with css (in your textpattern.css file).

Naturally you can also choose to apply this rule only to certain groups like:

<script type="text/javascript">
    $(document).ready(function() {
        $("#image.toggle, #custom_field.toggle").show();
    });
</script>

Let me know if you find any issues (download from first post)

Last edited by redbot (2011-01-20 10:14:30)

Offline

#165 2011-01-20 09:41:42

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

Great, thanks redbot. Is there a handy list anywhere of all the IDs used in the write page? Otherwise I’ll just sift through the page source myself.

Offline

#166 2011-01-20 09:51:17

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

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

philwareham wrote:

Great, thanks redbot. Is there a handy list anywhere of all the IDs used in the write page? Otherwise I’ll just sift through the page source myself.

Hi,
actually I thought to include it in the plugin help but I had no time.
I’ll see if I manage to do it. Meanwhile you can easily do it yourself installing some firefox add-on such as the “Web Developer Toolbar” or “Firebug” or “Css viewer” or another of the thousands available.

Offline

#167 2011-01-20 10:18:14

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

OK, I’ve compiled a list of IDs and classes of common elements on the write page, let me know if there are any errors or I’ve missed any important ones (I’ve not included individual custom fields since they are user defined anyway)…

COLUMN 1:

#textile_group

#textile_help

#advanced_group

.markup-body

.markup-excerpt

#custom_field_group

#custom_field

#image_group

.article-image

#meta_group

.keywords

.url-title

#recent_group

#recent

COLUMN 2:

.title

.body

.excerpt

COLUMN 3 (tabs):

#article-tabs

COLUMN 4:

#write-sort

.category-1

.category-2

.section

#more_group

#write-comments

#write-timestamp

#write-expires

Last edited by philwareham (2011-01-20 10:19:03)

Offline

#168 2011-01-20 11:18:58

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

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

philwareham wrote:

OK, I’ve compiled a list of IDs and classes of common elements on the write page, let me know if there are any errors or I’ve missed any important ones (I’ve not included individual custom fields since they are user defined anyway)…

Thank you Phil,
BTW, regarding custom fields, I forgot to mention that there is a difference if you are using glz_custom_fields or not.
With txp 4.3 each paragraph surrounding a cf has his own class (i.e .custom-1, .custom-2 etc.).
This is very handy but sadly, if you are using glz_custom (like me), you can’t benefit from the feature since all generated cfs have only a generic “.glz_custom_field” class. For this reason the plugin still targets cfs the old way, using jquery.

Offline

Board footer

Powered by FluxBB