Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

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,191

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

Online

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

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

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

Online

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

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

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
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

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
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

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
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

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: Japan
Registered: 2004-02-27
Posts: 1,625
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;
			}

Offline

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

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

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

Online

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

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

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

Online

Board footer

Powered by FluxBB