Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2013-05-10 21:59:10

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

Re: stm_article_order: Arbitrary sort order for your articles

Thanks for paying attention, Jens. I’ll go sprinkling some links across the above posts now ;)


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

Offline

#152 2014-08-05 16:09:52

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

Re: stm_article_order: Arbitrary sort order for your articles

Wouldn’t it be nice if this plugin could do its trick within article categories too .. :))

Offline

#153 2014-08-06 15:14:36

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

Re: stm_article_order: Arbitrary sort order for your articles

Joop, hablablow asked that or similar already (see my reply there) and spoke about a planned attempt to swap categories for sections. You could ask him whether his plans made it into code.


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

Offline

#154 2014-08-06 22:12:09

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: stm_article_order: Arbitrary sort order for your articles

Joop and Uli, isn’t that what esq_sectionsort does?

Offline

#155 2014-08-09 13:18:48

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

Re: stm_article_order: Arbitrary sort order for your articles

Els wrote #282681:

Joop and Uli, isn’t that what esq_sectionsort does?

I don’t think so, Els. I just wondered if it would be possible to rearrange (drag and drop) articles in a specific categorie … and I mean articles from more than one (1) section. Now I have to use the default method by giving each article a specific, new date. It’s a hassle for some clients. Well, for me too … ;-)

Offline

#156 2014-08-09 19:30:04

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

Re: stm_article_order: Arbitrary sort order for your articles

Joop, if you don’t need to assign categories to articles by drag’n‘dropping them, and rather need to have visual dividers, you could use some extra (hidden & expired) articles to create elements, i.e. category placeholders, in the article order page. I’ve done so already for one of my clients and left the necessary CSS in place. You can see two of these dividers in the first screenshot here.
In case that’s sufficient I can advise you how to proceed.

Last edited by uli (2014-08-09 19:31:41)


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

Offline

#157 2014-08-09 23:27:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: stm_article_order: Arbitrary sort order for your articles

RedFox wrote #282769:

I don’t think so, Els. I just wondered if it would be possible to rearrange (drag and drop) articles in a specific categorie …

Ah, misunderstood ;)

Offline

#158 2014-12-15 11:15:56

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

Re: stm_article_order: Arbitrary sort order for your articles

On this site (under contruction) > mariaberkhout.nl/new … the plug-in does its job nicely on ’2006-2014’ (section). There the order of articles is the same as the order of the thumbnails on the landing page.

<txp:if_individual_article>
<section class="row narrow" role="main">
<div class="large-12 columns">
<txp:article form="single_notitle" limit="1" />
</div>
</section>
<txp:else />
<section class="row wide" role="main">
<div class="large-12 columns">
<txp:article form="single_onlyimage" wraptag="ul" class="small-block-grid-2 medium-block-grid-3 large-block-grid-4" break="li" limit="24" sort="position asc" />
</div>
</section>
</txp:if_individual_article>

The strange thing is that the plugin doesn’t work on the other two sections (‘1984-1993’, ’1994-2005’). Same code, same forms, etc. My brains are boiling. Any help is appreciated.

[edit]
Section ’1994-2005’ is now working too … !? … I’ve done nothing … I suppose it’s server/plugin magic.

[edit]
It’s almost Christmas … let it snow … :)

Last edited by RedFox (2014-12-15 21:19:06)

Offline

#159 2014-12-15 22:02:59

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

Re: stm_article_order: Arbitrary sort order for your articles

You will have thought of caches, and you will have checked the “section x uses page y” settings. Have you checked the results of a sorting step in phpmysql or the like? Also think of the cache there, BTW.

Edit: Ah, you seem to have edited several times, and now they’re all working, right?

Last edited by uli (2014-12-15 22:05:56)


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

Offline

#160 2014-12-15 23:24:08

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

Re: stm_article_order: Arbitrary sort order for your articles

uli wrote #286604:

Edit: Ah, you seem to have edited several times, and now they’re all working, right?

No @uli … section “1984-1993” isn’t working properly … I will check tomorrow again … maybe there are some gnomes helping me when I’m asleep … ;-)

Last edited by RedFox (2014-12-15 23:24:57)

Offline

#161 2014-12-16 15:21:34

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

Re: stm_article_order: Arbitrary sort order for your articles

uli wrote #286604:

Have you checked the results of a sorting step in phpmysql or the like? Also think of the cache there, BTW.

I do know how to repair the tables of a (the) database … what I’ve done … but that’s all. ‘Sorting’ … ‘Cache’ … !?

Offline

#162 2014-12-16 15:44:47

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

Re: stm_article_order: Arbitrary sort order for your articles

RedFox wrote #286637:

‘Sorting’

In phpMyAdmin you open the textpattern table in order to see the values for position. Leave it open. Switch over to the stm panel, do some sorting/ordering/arranging there (preferably in the section that doesn’t seem to work), save the altered order. Now open a new browser tab, visit the textpattern table in phpMyAdmin again and compare the values for position of the articles you worked on previously. If they’re still the same you might still look at the cached version of the page.

‘Cache’

Firefox: When you re-visit the textpattern table, press cmd/ctrl/strg-shift-R or, often better, hold down the shift key while clicking the reload button. For browsers other that FF: please google the procedure. If there are still the same values I’m officially out of ideas.

Last edited by uli (2014-12-16 15:47:47)


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

Offline

#163 2014-12-16 18:33:25

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

Re: stm_article_order: Arbitrary sort order for your articles

Thanks @uli. Did everything you’ve suggested (learned a thing or two … :)) … but at the end it didn’t help. The order of the thumbnails (articles) and the database are the same. The individual articles (prev en next) are not. Pitty.

Maybe I (we) have to look at my tag soup …

On page:

<txp:if_individual_article>
<section class="row narrow" role="main">
<div class="large-12 columns">
<txp:article form="single_notitle" limit="1" />
</div>
</section>
<txp:else />
<section class="row wide" role="main">
<div class="large-12 columns">
<txp:article form="single_onlyimage" wraptag="ul" class="small-block-grid-2 medium-block-grid-3 large-block-grid-4" break="li" limit="24" sort="position asc" />
</div>
</section>
</txp:if_individual_article>

Module “single_notitle”:

<article role="article" itemscope itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<txp:body />
<p class="navigatie"><txp:link_to_prev showalways="1">PREV</txp:link_to_prev> <span>|</span> <a href="<txp:site_url /><txp:section />" title=""><txp:section /></a> <span>|</span> <txp:link_to_next showalways="1">NEXT</txp:link_to_next></p>
</div>
</article>

Module “single_onlyimage”:

<article role="article" itemscope itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<!-- Read me > http://txptips.com/using-images-in-adaptive-design -->
<txp:images><txp:permlink><txp:smd_thumbnail type="thumbnail" /></txp:permlink></txp:images>
</div>
</article>

Last edited by RedFox (2014-12-16 19:03:48)

Offline

#164 2014-12-16 18:49:55

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

Re: stm_article_order: Arbitrary sort order for your articles

RedFox wrote #286647:

The individual articles (prev en next) are not.

Wait. Is the faulty behaviour indicated there, in the quote? Then that’s for the first time you do. And then I’ve yet one more idea, as you’ll need the sorting values in your single article tag for the nav to work.


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

Offline

#165 2014-12-16 19:18:01

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

Re: stm_article_order: Arbitrary sort order for your articles

You mean to do this: <txp:article form="single_notitle" limit="1" sort="position asc" />?

Sorry, I indeed didn’t mentioned it because I tried it several times before with no result. Eh … wait … let me show what happens then … a random individual page > mariaberkhout.nl/new/1984-1993/39

All pages (nav’s) are the same … all next’s are unlinked and all prev’s work but they don’t follow the order of the thumbnails.

[edit]
Sorry … now (20:26) it’s working like I mentioned above.

Last edited by RedFox (2014-12-16 19:26:50)

Offline

Board footer

Powered by FluxBB