Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: stm_article_order: Arbitrary sort order for your articles
Great plugin, thanks!
I have one question. Could it be somehow possible to make the plugin accesible for ‘Staff writter’ privilege? At the moment user has to have at least ‘Managing editor’ privilege.
I’ve tried to look into the plugin code but didn’t find any part which can specify this (though I’m not PHP programmer at all).
Thanks again ;)
Offline
Re: stm_article_order: Arbitrary sort order for your articles
cube48 wrote:
Great plugin, thanks!
I have one question. Could it be somehow possible to make the plugin accesible for ‘Staff writter’ privilege? At the moment user has to have at least ‘Managing editor’ privilege.
I’ve tried to look into the plugin code but didn’t find any part which can specify this (though I’m not PHP programmer at all).Thanks again ;)
adjust the priv numbers like on the 3rd line in. i don’t remember exactly what number corresponds to staff writer but its in the textbook somewhere.
Last edited by iblastoff (2007-11-19 18:57:42)
Offline
Re: stm_article_order: Arbitrary sort order for your articles
iblastoff wrote:
adjust the priv numbers like on the 3rd line in. i don’t remember exactly what number corresponds to staff writer but its in the textbook somewhere.
Brilliant! Big kudos for fast and accurate response. Works like charm. I’ve also moved the plugin to a different tab which is accessible by Staff writter at default.
T H A N K S i b l a s t o f f ! ! !
Privilege numbers are:
Publisher: 1
Managing editor: 2
Copy editor: 3
Staff writer: 4
Freelancer: 5
Designer: 6
Last edited by cube48 (2007-11-20 21:38:05)
Offline
Re: stm_article_order: Arbitrary sort order for your articles
Its possible to add some SQL query to add the same position in another tables with identical ID of article? On almost every site I need to use MLP plugin and the translation of each language is stored in separated table, e.g. l10n_txp_en_gb, l10n_txp_cs_cz, l10n_txp_de_de …
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: stm_article_order: Arbitrary sort order for your articles
this is just the ticket!
thanks Stanislav
Offline
#21 2008-03-07 11:46:07
- gluteus
- Member
- From: Switzerland
- Registered: 2007-01-20
- Posts: 74
Re: stm_article_order: Arbitrary sort order for your articles
I can’t move the articles in IE6/WIN! In FF/WIN it works without problems. Is it a js-problem?
thanks for helping.
dave
Offline
Re: stm_article_order: Arbitrary sort order for your articles
A client of mine wants a dynamic site that gives them the option to sort articles in a given section — they even used the phrase “drag and drop.”
I figured that this plugin was perfect for this application, but I’m having some serious problems. What am I doing wrong?
My section names are quite long and when I tried to rearrange some articles in a give section, it renamed my section (it changed automatically from ‘virtualizaiton_stories’ to ‘virtualization.’)
I then went and renamed the section to ‘virtualization’ (on the off chance that it was the _), and it actually worked…..ONCE.
What is going on? I read of people in the forum that use it with success, but what am I doing wrong?
Offline
#23 2008-04-24 22:10:20
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: stm_article_order: Arbitrary sort order for your articles
I get the following error….
Plugin decompression is not supported by your server. Contact the plugin author for an uncompressed version.
Offline
Re: stm_article_order: Arbitrary sort order for your articles
sthmtc wrote:
hi stanislav, is it possible to generate a link to the next article that reflects the order from the menu? currently, when i insert
<txp:link_to_next />it gives me the link to the next article chronologically, not based on the order i’ve set up with your plugin.
And the solution to this ‘problem’ is the following plugin: jra_links … :)
Offline
Re: stm_article_order: Arbitrary sort order for your articles
Does this plugin still have issues with underscores?
Offline
Re: stm_article_order: Arbitrary sort order for your articles
I’m not sure if this thread is dead, but I will give this a shot.
I’m trying to use the following: <txp:article_custom form=“link_list_popular” pgonly=“0” limit=“8” sort=“position asc” />
The form “link_list_popular” then weeds out the articles that don’t have a custom field set to “yes” — like this:
<txp:if_custom_field name=“directory_popular” val=“yes”>
<li><txp:permlink><txp:title /></txp:permlink></li>
</txp:if_custom_field>
The problem is that I’m only getting the first 2 out of 8 articles that have the custom field set. However, when I set the article limit to 38, I get all 8 articles — like this.
<txp:article_custom form=“link_list_popular” pgonly=“0” limit=“38” sort=“position asc” />
I initially thought it was because the target articles were not sorted sequentially. In other words, I had them sorted like this:
Article 1 (target)
Article 2
Article 3
Article 4 (target)
etc…
So, I reordered them so they were sequential:
Article 1 (target)
Article 4 (target)
Article 2
Article 3
To no avail. I still need to set the article limit to 38 to see all 8 target articles.
Work until your carpal tunnel makes you cry.
—————————-
My “bloggy” TP site >> liberalrevolt.com
Offline
Re: stm_article_order: Arbitrary sort order for your articles
Hi Vaughn,
It’s a problem with restricting output of <txp:article> or <txp:article_custom> from a form.
When you set limit= in <txp:article_custom> The limit is not on how many times it successfully finds the “directory_popular” value set to “yes”, but the limit of total articles to go through.
So it you set limit="8" that means go through the first 8 articles that meet the criteria you set in your <txp:article_custom> tag.
Your article form is then restricting the display of those 8 articles to only those with the “directory_popular” value set to yes.
So that’s why you only see 2 articles….and why you have to set your limit higher to get output you are after.
I don’t know if you can use custom_fields to accomplish what you’re after.
—
Tom
Offline
Re: stm_article_order: Arbitrary sort order for your articles
Anyone up for a challenge?
Offline
Re: stm_article_order: Arbitrary sort order for your articles
Vaughn -
Might it work to sort the article_custom call by the custom field (for example sort="custom_1") and then the first 8 should be the ones you want? Although since it’s sorting alphabetically, you might need sort="custom_1 desc" since “no” comes before “yes”.
Offline
Re: stm_article_order: Arbitrary sort order for your articles
nabrown78 wrote:
Vaughn -
Might it work to sort the article_custom call by the custom field (for examplesort="custom_1") and then the first 8 should be the ones you want? Although since it’s sorting alphabetically, you might needsort="custom_1 desc"since “no” comes before “yes”.
Nice. I hadn’t thought of that – could be a nice way to provide clients with a “show on homepage” checkbox if it works as expected.
—
Tom
Offline