Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-03-26 21:22:32

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

bot_wtc v8 for Textpattern v4.7 (beta)

IMPORTANT: This version is for Textpattern v4.7 only.

See this thread and this repo for bot_wtc v7.5 for Textpattern v4.6.2.

Here’s my next attempt at a 4.7-ready makeover of another vital plugin. I’ve jumped from the 0.x.x. straight to x.x. version numbering for simplicity as the plugin has been around for years.

Download

Download here: Plugin files
Source here: github.com/jools-r/bot_wtc

Changes in this version

  • Write tab area classes and id updates to match Textpattern v4.7’s ‘Write’ panel layout revisions.
  • Revised custom field handling to reflect new UI pattern, including migration of previous settings on installation.
  • Revised ‘Write Tab Customize’ panel using txp’s in-built UI functions.
  • Compatibility with glz_custom_fields v2 for 4.7 (e.g. custom field titles).
  • Translatable UI text (see Textpack).
  • Error notices now use Txp’s own in-built messaging functions.
  • Revised help and examples.

Good to know

  1. Please, please, please … back up your database beforehand so you can revert if necessary.
  2. Reinstalling this version should trigger an update of the custom-field rules (hence having a backup is a good idea) which are now much simpler than before because each custom field has a named wrapper. Practically all of the other classes and ids are unchanged, so I haven’t corrected any other previous rules in the update routine. I suspect/hope that error messages should occur only in isolated cases. If so, simply delete the offending rule and reapply it.
  3. This matches 4.7. beta.
  4. Otherwise the basic handling, concept and UI mechanism is exactly as redbot had it before. I’ve only done some polishing.

Known issues

After saving an article on the write tab, some fields can re-appear (if previously hidden), lose their assigned class, or appear in duplicate when parts of the UI are refreshed by Textpattern. This does not happen in all situations but most commonly when elements have been moved outside their group. [EDIT: A fix for this has been added. Feedback welcome if problems still persist]

Credits

The original author redbot of course, and everyone else who has contributed over the years. I’m just standing on their shoulders.

Feedback

Feedback, improvements, better help examples always welcome. I’ll do what I can within reason.

As with glz_custom_fields, this plugin may become obsolete in future versions when custom fields become part of the core and perhaps acquire some conditional appearance behaviour.


TXP Builders – finely-crafted code, design and txp

Offline

#2 2018-04-01 12:33:21

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

I’ve added a tentative fix for the reappearing/disappearing fields after saving an article on the write tab, and updated the compiled plugins. It seems this problem also existed with the previous version of the plugin but few people noticed it as it’s really only an issue when you re-work and save an article several times without leaving the write pane. It could do with some testing, though, as it’s impossible to anticipate all kinds of articles.

I’ve also updated some of the language strings to match recent UI changes.

This being a beta version, I’ve not updated the version number, so if you’ve already downloaded it, please re-download from the address above.

A German textpack will follow soon. Translations in other languages welcome (here’s the English textpack).


TXP Builders – finely-crafted code, design and txp

Offline

#3 2018-04-07 19:40:05

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

Some small fixes made to this one too:

  • Fix for new grid-cell widths (late-breaking layout change in core)
  • Fix for all / none checkbox field states
  • Make section list checkbox labels clickable everywhere (input/label ids are now unique)

TXP Builders – finely-crafted code, design and txp

Offline

#4 2018-04-17 19:18:46

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 635
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

Seems to work well on TXP 4.7beta3. Just reporting.
I am wondering if “Hide sections in sections” dropdown could allow for separate privs for separate user groups, even including smd_user_manager compatible?
Just asking, or feature request.


a hole turned upside down is a dome, though only when there’s gravity.

Offline

#5 2018-04-17 22:39:06

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

jayrope wrote #311129:

Seems to work well on TXP 4.7beta3. Just reporting.
I am wondering if “Hide sections in sections” dropdown could allow for separate privs for separate user groups, even including smd_user_manager compatible?

I think there was another plugin that did this in a better way than bot_wtc. Have a look for mrd_for_yours_eyes_only – or something similar. As user privilege details don’t change mid-page on the fly, you can have a separate plugin modify the section dropdown widget when it is created instead of afterwards with jQuery.


TXP Builders – finely-crafted code, design and txp

Offline

#6 2018-04-18 05:40:27

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,205
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

#@admin
#@language fr
article_image_group => Groupe d´images d´article
writetab_main_content => Contenu principal
writetab_sidebar => Colonne latérale
writetab_view_modes => Commutateur du mode d´affichage
writetab_article_actions => Actions sur les articles
bot_wtc_tab_name => Personnalisation de la page «Rédiger»
bot_wtc_advanced => Basculer les options avancées
bot_wtc_item => Élément
bot_wtc_position => Position
bot_wtc_destination => Destination
bot_wtc_hide => Masqué dans
bot_wtc_class => Classe
bot_wtc_before => Avant
bot_wtc_after => Après
bot_wtc_section_list => Liste des sections
bot_wtc_update_button => Actualiser
bot_wtc_advanced_multiple_group => Paramètres Avancés / Sélection Multiple
bot_wtc_items => Éléments
bot_wtc_hide_in_section => Masquer dans la section
bot_wtc_set_css_class => Déclarer une classe CSS
bot_wtc_static_sections_group => Masquer les sections dans la liste déroulante «Section»
bot_wtc_add_javascript_group => Ajouter du javascript à la page «Rédiger»
bot_wtc_add_external_script => Ajouter un script externe
bot_wtc_add_inline_code => Ajouter du code jQuery incorporé
bot_wtc_region_warning => La colonne entière ou des zones de la colonne latérale ne peuvent être déplacées relativement à un élément individuel et vice-versa.
bot_wtc_same_item_warning => Oups. Vous cherchez à déplacer un élément par rapport à lui-même !
bot_wtc_combo_warning => Oups. Vous cherchez à inclure une règle incomplète !
bot_wtc_no_items_warning => Attention : au moins un élément doit être sélectionné !

Patrick.
G+
Github | CodePen

Offline

#7 2018-04-19 12:36:33

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 471
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

Hi Julian,

I tested your last github code.
I notice some use case where the plugin still does not work.

Exemple :
Move a categorie field inside txp-image-group block (I know it’s not very logical, but it’s theoretically possible and need work).
After save, Txp rewite/reset HTML content of image-group. Result: categorie field disappears.

Actually, I don’t find a good JS solution for make btw working in all possibilities.

I don’t understand why Txp rewrite some DOM element and not just inject values in existing elements.
i will ask to core devs if it’s not possible to do something more clean and flexible.

Offline

#8 2018-04-19 22:25:24

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

Pat64 wrote #311164:

#admin…@

Big thanks Patrick, I’ll incorporate that a.s.a.p.

sacripant wrote #311209:

I notice some use case where the plugin still does not work.

Example: Move a category field inside txp-image-group block (I know it’s not very logical, but it’s theoretically possible and need work). After save, Txp rewite/reset HTML content of image-group. Result: category field disappears.

When I get some time, I’ll see if I can resolve that too. As you say that is a highly unlikely, or even nonsensical situation. Was that just an example, or are there others so that one could tackle it in a more systematic way.


TXP Builders – finely-crafted code, design and txp

Offline

#9 2018-04-21 15:29:15

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: bot_wtc v8 for Textpattern v4.7 (beta)

German and French textpacks now added. Big thanks to Uli and Patrick!

And a minor fix:

  • CTRL-S functionality restored for the main pane. Note that the advanced pane needs clicking manually (the problem was that there were two buttons with class ‘publish’ in different forms, confusing the keyboard shortcut). Thanks for spotting that Uli!

TXP Builders – finely-crafted code, design and txp

Offline

#10 2018-05-16 09:34:02

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

Re: bot_wtc v8 for Textpattern v4.7 (beta)

Mhm, I could not install the 0.8 version form github on a fresh 4.7 upgrade … would I need PHP7 for this to work?

Installation des Plugins bot_write_tab_customize ist fehlgeschlagen.

I tried both the zipped and unzipped versions …
0.7.5 appears to work fine though ,-)

Offline

Board footer

Powered by FluxBB