Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#211 2017-10-25 21:57:32

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: stm_article_order: Arbitrary sort order for your articles

… maybee use an other jquery sort lib as lukasoppermann.github.io/html5sortable/index.html ???

Offline

#212 2017-11-01 20:09:08

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

Re: stm_article_order: Arbitrary sort order for your articles

Hi Jeanpol, somehow I missed your posts, sorry.

My efforts one year ago to make stm_ao work with on-board jQuery UI ended in a draggable surface that didn’t save anything. I think I’ve saved a version of that file. If anybody (you?) wants to fix that attempt of mine I’ll gladly dig in my file cellar and tear a copy out.


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

Offline

#213 2018-01-18 17:32:25

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

Re: stm_article_order: Arbitrary sort order for your articles

I’ve altered stm_article_order to work with the upcoming 4.7. Please try and report back! (Not yet tested for TXPs < 4.7)

Plugin

Available textpacks

English textpack
German textpack
French textpack
Spanish textpack

A heads up re textpacks

The current textpack situation for the coming TXP v4.7 is a little knotty (see here) and not yet decided. As long as Stef/Bloke is mulling over a solution: Please edit the #@language line of the downloaded textpack to match only your currently installed user language, i.e if you’ve installed default English, please change the language line in the textpack for your language to:

#@language en

If you’ve decided to install American English, please change that line to:

#@language en-us

You get the idea. That same situation might as well be valid for other languages with several versions, like e.g. Portuguese, and not only for stm_article_order’s textpacks.

Last edited by uli (2018-01-30 14:07:48)


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

Offline

#214 2018-01-18 17:39:04

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: stm_article_order: Arbitrary sort order for your articles

Great ! I will test as soon as possible. Thank you so much, uli !

Offline

#215 2018-01-18 17:57:47

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: stm_article_order: Arbitrary sort order for your articles

French textpack

#@stm_ao
#@language fr-fr
stm_ao_article_order => Ordre (tri) des articles
stm_ao_article_order_saved => Réorganisation d'article enregistrée.
stm_ao_edit_article => Modifier l'article
stm_ao_edit_image => Modifier l'image
stm_ao_hide_articles => Masquer les articles
stm_ao_hide_images => Cacher les images
stm_ao_hints_for_using => Faites glisser un article vers une nouvelle position et cliquez sur "Enregistrer". <br/> En faisant glisser un article vers une autre section, vous pouvez l'assigner à cette section. <br/> Les articles ne peuvent être déplacés qu'un à la fois.
stm_ao_it_s_the_one_above => C'EST CELUI CI-DESSUS!
stm_ao_oops_push_it_please => OUPS! POUSSEZ-LE, S'IL VOUS PLAÎT! VOUS LE RETROUVEREZ COMME L'ARTICLE LE PLUS HAUT !
stm_ao_optional_warnings => Si vous laissez un article aller sous la liste, faites défiler la page vers le bas pour le retrouver.
stm_ao_prefs_h1 => Sections dans stm_article_order
stm_ao_prefs_hint => Marquez les sections que vous ne souhaitez pas afficher dans le <a href="index.php?event=stm_article_order"> panneau Ordre (tri) des articles </a>, p. ex. ceux qui trient les articles par d'autres critères que manuellement.
stm_ao_prefs_menuitem => stm_ao-sections
stm_ao_prefs_pagetop => Sections dans stm_article_order
stm_ao_save => Sauvegarder
stm_ao_sections_updated => Sélection mise à jour
stm_ao_show_articles => Afficher les articles
stm_ao_show_images => Voir les images
stm_ao_update => Mettre à jour la sélection

Last edited by jpdupont (2018-01-18 18:26:15)

Offline

#216 2018-01-18 18:24:21

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: stm_article_order: Arbitrary sort order for your articles

Some small remarks before a further test …

  • The menu option under “Extensions” is not translated, or it has an error in the title: stm_ao-section (this is what is displayed)
  • Is it possible to have a parameter to not display images: I do not generate thumbnails (I use smd_thumbnail) and I get many error messages in the browser console (images not found)
  • Is it possible to not center the text in columns in the section exclusion menu?

Maybe, more readable :

function spr_section_exclude_style() {
// some style for the admin page
	echo
		'<style type="text/css">
			h2 { font-weight:bold }
			.spr_exclude_form { margin-top:2em; }
			.spr_exclude_form div { margin-top:2em }
#page-spr_section_exclude .txp-list { width: auto;}
		</style>';
}

Last edited by jpdupont (2018-01-18 22:20:06)

Offline

#217 2018-01-18 22:52:56

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: stm_article_order: Arbitrary sort order for your articles

On my Mac, Chrome and FFox, today dev 4.7 and Sandspace theme : impossible to clic on save button. Drag and drop works fine. It’s because the div#messagepane is over the button.

No problem with Hive theme.

Offline

#218 2018-01-19 12:02:00

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,640
Website

Re: stm_article_order: Arbitrary sort order for your articles

jpdupont wrote #308731:

On my Mac, Chrome and FFox, today dev 4.7 and Sandspace theme : impossible to clic on save button. Drag and drop works fine. It’s because the div#messagepane is over the button.

It is a bug in the plugin, it should not try to style the #messagepane. Edit the plugin, find the following block and delete it:

#messagepane {
			left: 43.8%;
			position: fixed;
			bottom: 0;
			}

Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#219 2018-01-19 16:27:18

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

Re: stm_article_order: Arbitrary sort order for your articles

phiw13 wrote #308745:

It is a bug in the plugin, it should not try to style the #messagepane.

If I remember correctly, it was necessary for 4.6 (Or for making the plugin version for 4.6 backward compatible). I’ve simply commented it out for that reason. Thanks.

jpdupont wrote #308730:

  • The menu option under “Extensions” is not translated, or it has an error in the title: stm_ao-section (this is what is displayed)

That’s not a gTxt-string, I’ve used only understrokes there, see the textpack. Did you type out that string in your post, cause your textpack translation is very similar, just an s more?

  • Is it possible to have a parameter to not display images: I do not generate thumbnails (I use smd_thumbnail) and I get many error messages in the browser console (images not found)

I’m sorry, I’ve no idea how to accomplish that. E.g. all code around image display was done by two or three other forum members, not me. Initially I could “fix” the plugin just by training my CSS skills, that’s all that was necessary at that point in time in order to to drastically improve the plugin’s drag’n‘drop behaviour.

  • Is it possible to not center the text in columns in the section exclusion menu?

I’ve never had centered text on that page. But I’d have altered it, for sure, I hate centered text in tables. Thanks.

Maybe, more readable :

function spr_section_exclude_style() {...

Did so. Thanks, that’s better.


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

Offline

#220 2018-01-19 16:40:25

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

Re: stm_article_order: Arbitrary sort order for your articles

And here comes the new download link: Voilà!


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

Offline

#221 2018-01-19 21:48:04

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: stm_article_order: Arbitrary sort order for your articles

Spanish textpack. It seems to me that there have been no changes.

#@stm_ao
#@language es-es
stm_ao_article_order => Orden de artículos
stm_ao_article_order_saved => Orden de artículos guardado.
stm_ao_edit_article => Editar artículo
stm_ao_edit_image => Editar imagen
stm_ao_hide_articles => Ocultar artículos
stm_ao_hide_images => Ocultar imágenes
stm_ao_hints_for_using => Arrastre un artículo hacia una nueva posición y pulse “guardar”.<br/>Al arrastrar a un artículo hacia una nueva sección lo asigna a esa nueva sección.<br/>Puede arrastrar un sólo artículo a la vez.
stm_ao_it_s_the_one_above => ¡ES EL ARTÍCULO DE ARRIBA!
stm_ao_oops_push_it_please => ¡UPS! ¡EMPÚJELO POR FAVOR! ENCONTRARÁ AL ARTÍCULO AL TOPE DE LA PÁGINA.
stm_ao_optional_warnings => En caso de que deje “caer” a un artículo fuera de la lista, lo encontrará al final de la página, resaltado en color naranja.
stm_ao_prefs_h1 => Secciones en stm_article_order
stm_ao_prefs_hint => Marque las secciones que no quiere alistar en el panel “<a href="index.php?event=stm_article_order">Orden de artículos</a>”,<br />por ejemplo ésas que son ordenados de manera automática de acuerdo a otros criterios y no pueden ser ordenados manualmente.
stm_ao_prefs_menuitem => Secciones en stm_ao
stm_ao_prefs_pagetop => Secciones en stm_article_order
stm_ao_save => Guardar
stm_ao_sections_updated => Selección actualizada
stm_ao_show_articles => Mostrar artículos
stm_ao_show_images => Mostrar imágenes
stm_ao_update => Actualizar selección

Offline

#222 2018-01-19 21:50:01

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: stm_article_order: Arbitrary sort order for your articles

Thank you uli for your updates. I haven’t been able to try the new version yet.

Offline

#223 2018-01-19 23:33:56

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

Re: stm_article_order: Arbitrary sort order for your articles

GugUser wrote #308768:

Spanish textpack. It seems to me that there have been no changes.

Right, but I needed to make a diff to find that out, I didn’t remember after years and some failed and successful attempts to fix. Thanks for the Spanish translation!


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

Offline

#224 2018-01-20 02:28:56

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

Re: stm_article_order: Arbitrary sort order for your articles

Jean-Pol, re your first issue here: do you perhaps have this same issue that I’m having? If so, please try to delete your second (and more) language(s) and report back your results there. Thanks!


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

Offline

#225 2018-01-30 12:32:56

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 816
Website

Re: stm_article_order: Arbitrary sort order for your articles

gTxt strings all over the place … !?

Txp 4.7.0-dev English with textpack plugin … looks like textpack doesn’t load or is corrupt … !?

Plugin does work correctly … :)

Last edited by RedFox (2018-01-30 12:34:44)

Offline

Board footer

Powered by FluxBB