Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#229 2011-11-02 12:26:04

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 558

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

Hi redbot. Looking at my sections I’d say so.

Last edited by Algaris (2011-11-02 14:55:00)

Offline

#230 2011-11-02 14:36:56

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

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

Algaris wrote:

Hi redbot. Looking at me sections I’d say so.

Thanks!
I’ll keep it into account for the next version.

Last edited by redbot (2011-11-02 14:37:35)

Offline

#231 2011-11-08 23:28:28

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

Just a quick question here…. I have one Custom Field which only relates to one article (ID=3). What I am trying to do is hide the custom field via bwtc or css, then show it when this article is being edited – I’ve looked in the code and don’t think that this can be done because I can’t see any reference to the article in the code… but thought I’d throw it out to the jquery master :)

Offline

#232 2011-11-09 00:13:49

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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

You should be able to write custom jQuery to do that.

Something like this (untested):

var xxx_article_id = $('input[name="ID"]').val();
if (xxx_article_id==3){
$('#custom-1').show();
}else{
$('#custom-1').hide();
}

Last edited by MattD (2011-11-09 00:19:31)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#233 2011-11-09 00:31:15

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

Thats great Matt :) Thank, works a treat – I just added this to remove the label as well (it wasn’t me, I googled it)

$('#custom-3').parent().hide();

So are you using this to get the ID from the url?

var xxx_article_id = $('input[name="ID"]').val();

Thanks again – txp, and its great community amazes me again

Offline

#234 2011-11-09 17:43:03

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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

Not directly from the url but from a hidden input field that contains the article id.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#235 2011-11-09 21:39:14

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

Thanks MattD – I see it now :)

Offline

#236 2011-11-17 07:38:32

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,093
Website GitHub Mastodon Twitter

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

In my install, there seems to be a conflict between this plugin and upm_image_popper which prevents Mary’s plugin to show in the write tab. Can anybody confirm this issue and suggest a solution for it?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#237 2011-11-17 09:32:43

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

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

colak wrote:

In my install, there seems to be a conflict between this plugin and upm_image_popper which prevents Mary’s plugin to show in the write tab. Can anybody confirm it, and is there a solution for it?

Hi colak,
I don’t see how there can be a conflict just because both plugins are istalled. As a matter of fact bot_wtc doesn’t produce any autput in the ‘write’ tab untill you set some specific rule, so – first of all – can you confirm this? Did you set any rule with bot_wtc? Which rules?
I haven’t used upm_img_popper for a long time so I can tell for sure but I suppose it targets items in the ‘old’ way, when the html markup for the ‘write’ tab was lacking a lot of ids and classes and the only solution was to count items using javascript (i.e. create this item and move it after the third p).
If my assumptions are true you’ll need to amend Mary’s plugin. Unfortunately I can’t install upm_image_popper now so I can’t give a more precise answer. I’ll have a look when I can ok?

Offline

#238 2011-11-17 10:32:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,093
Website GitHub Mastodon Twitter

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

Thank you for your response as it made me re-consider the rules

I think that I found the rule which prevented the plugin from showing.

I had the “advanced options” hidden in all sections. Once i deleted that rule, Mary’s “insert image” link appeared. Strange as the plugin does not load within that part of the page.

Last edited by colak (2011-11-17 10:32:53)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#239 2011-11-17 14:22:43

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

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

colak wrote:

… Strange as the plugin does not load within that part of the page.

Are you sure?
I installed it in a test site (with bot_wtc deactivated) and the “Insert Image” link appears just inside the ‘advanced options’ div, which explains everything.

Offline

#240 2011-11-17 14:32:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,093
Website GitHub Mastodon Twitter

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

redbot wrote:

Are you sure?
I installed it in a test site (with bot_wtc deactivated) and the “Insert Image” link appears just inside the ‘advanced options’ div, which explains everything.

Yep, i’m sure:) Here is a screen shot: http://www.neme.org/images/328.png. I used wet bubble to change keywords into meta just in case anyone is wondering about that part


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB