Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2010-11-12 20:32:27

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

Re: stm_article_order: Arbitrary sort order for your articles

Thanks … all is well now!

Especially after I put this in the plug-in CCS

em.article_id a {
display: inline-block !important;
float: left;
width: 20px; /* redfox > lining up article titles straight to the left! */
}

:)

Last edited by RedFox (2010-11-12 20:32:51)

Offline

#77 2010-11-12 22:25:16

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

Re: stm_article_order: Arbitrary sort order for your articles

uli wrote:

Oh, Matt (or anybody else as well), in case you know how to cure the image thing: please post here! Like I said in #59 “we should develop stm_article_order in a collaboration”

I can fix it but how do you want me to contribute? Email you the code change or is there a repository or submitting changes?

Edit: Although it sounds like renobird is rewriting it. I assume his would be released as a new plugin with his prefix instead of the stm one?

Last edited by MattD (2010-11-12 22:34:50)


My Plugins

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

Offline

#78 2010-11-12 22:50:03

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

Re: stm_article_order: Arbitrary sort order for your articles

MattD wrote:

Email you the code change

Yes, please do so. Thanks, Matt!
I’m looking forward to dismantling your code :) I looked at the way redbot did it in bot_show_image, but couldn’t get my head around integrating it.


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

Offline

#79 2010-11-12 23:14:44

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

Re: stm_article_order: Arbitrary sort order for your articles

RedFox wrote:

[…] Especially after I put this in the plug-in CCS […]

Thanks for your contribution!
I realized this CSS flaw but didn’t care at the end of the day :)


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

Offline

#80 2010-11-13 16:00:49

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: stm_article_order: Arbitrary sort order for your articles

MattD wrote:

Edit: Although it sounds like renobird is rewriting it. I assume his would be released as a new plugin with his prefix instead of the stm one?

Hey Matt – you are correct – I’m basically rewriting the plugin. I’m a bit buried with other projects at the moment, but I’d like to get back to it shortly. In the meantime I’m sure any progress on stm_article_order would be much appreciated.

Offline

#81 2010-11-13 16:03:48

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

Re: stm_article_order: Arbitrary sort order for your articles

I sent Uli a way to check for an article image. It doesn’t fix the file extension issue since I think that would require another query against the images table but it’s an improvement.


My Plugins

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

Offline

#82 2010-11-16 20:27:43

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

Re: stm_article_order: Arbitrary sort order for your articles

Version 0.2.3 released with some improvements: see #59.


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

Offline

#83 2010-11-16 20:47:13

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

Re: stm_article_order: Arbitrary sort order for your articles

You’re great Uli!

Is it possible to give articles which are ‘hidden’ (draft, etc!) another background-color?

Last edited by RedFox (2010-11-16 20:51:21)

Offline

#84 2010-11-16 21:08:50

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

Re: stm_article_order: Arbitrary sort order for your articles

That’s been an easy one, phew. I left the version number and just re-uploaded the file.


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

Offline

#85 2010-11-16 22:10:34

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

Re: stm_article_order: Arbitrary sort order for your articles

Re-uploaded the file another time: I had forgotten that Matts code required a second article_status injection. Please download once again.


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

Offline

#86 2010-11-18 16:51:42

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

Re: stm_article_order: Arbitrary sort order for your articles

Uli, where in the plug-in CSS do I have to put status_1, status_2, etc … ?

This doesn’t work:

#navigation .section li span .status_4 {
			background: red;
			}

Offline

#87 2010-11-18 17:01:31

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

Re: stm_article_order: Arbitrary sort order for your articles

I think simply .status_4 should work.

And it doesn’t work because of the space after span.

Last edited by uli (2010-11-18 17:02:30)


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

Offline

#88 2011-02-25 21:15:08

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

Re: stm_article_order: Arbitrary sort order for your articles

I always used a customized version of Remora, and just remarked difficulties using the Remora menu on the stm_ao page when created by a vanilla stylesheet: The menu closes before you can reach the second or third list item.

Solution 1: Download the new version:
  • Fixed the CSS-bug with the Vanilla Remora menu
  • Added two links for folding all articles in one go as another means of making the list more manageable. Like before, you can expand single sections by clicking their title bars.

Or, if you don’t want to ruin all your custom stm_ao styles and translations …

Solution 2:
Add the following line to the end of your Remora stylesheet or into the CSS section of the plugin:
#nav li ul {z-index: 999;}

Last edited by uli (2011-03-14 23:14:48)


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

Offline

#89 2011-03-04 12:50:28

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

Re: stm_article_order: Arbitrary sort order for your articles

This one is not rocket science but I never thought of relieving the life of my clients with a front side link to stm_ao, and so might you:

<a href="<txp:site_url />textpattern/index.php?event=stm_article_order#article_<txp:article_id />">Arrange articles</a>

As you see, this will open the stm_ao pane and scroll down to the desired item (if the list is long enough and articles aren’t set to hidden). Goes without saying that it lives in an article form and that I wrapped it in rvm_if_privileged tags. And the following declaration block in textpattern.css for classic marks the clicked item in the list:

#page-stm_article_order .article:target {
	border-right: 20px solid #FFD438;
	}

Last edited by uli (2011-03-04 12:53:00)


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

Offline

#90 2011-03-09 20:27:03

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: stm_article_order: Arbitrary sort order for your articles

This plugin is GREAT! Thanks so much for your work on it Uli. If you have a donation button or email address I will be happy to donate for your efforts!

Offline

Board footer

Powered by FluxBB