Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#22 2008-03-30 18:29:39

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

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

#24 2008-06-24 15:42:55

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

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

#25 2008-11-18 20:57:46

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

Re: stm_article_order: Arbitrary sort order for your articles

Does this plugin still have issues with underscores?

Offline

#26 2009-01-23 19:55:08

vaughn-taylor
Member
From: New Orleans
Registered: 2004-08-06
Posts: 17
Website

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

#27 2009-01-23 21:16:35

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

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

#28 2009-02-02 18:42:24

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

Re: stm_article_order: Arbitrary sort order for your articles

Anyone up for a challenge?

Offline

#29 2009-02-02 20:39:49

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

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

#30 2009-02-02 20:54:21

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

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 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”.

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

Board footer

Powered by FluxBB