Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-05-18 08:31:51

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

aks_article : Extended article_custom tag

aks_article

v0.2.9 download link / homepage

Change log

v0.1 plugin was writen for testing Feature Idea <txp:else />
v0.2+ plugin is completely rewritten

Changes v0.2.4:

  • added support <txp:else />
  • added attributes category1, category2, where (sql syntax)
  • extend attribute status to status list

Changes v0.2.5:

  • Inside form:
    • zebra-lines feature, useful for zebra-coloring lines
    • active-line feature, useful for set class=“active”
    • get current line number
  • Return txp:variables:
    • displayed articles
    • rest articles (limit – displayed), useful for additional call to aks_article
    • next count for second zebra call

Changes v0.2.6:

  • Prev/Next carousel feature – show nearest articles.
  • Multi-column feature.

Changes v0.2.7

  • Attribute time added new value 'all' equivalent as time="any"' and expired="1" (this remove time check condition from sql query)
  • New experimental attribute list allow to generate a list of articles with minimal impact on mysql. This support ONLY <txp:title /> and <txp:permlink /> tags inside form.
    • New experimental attribute listfield used with list attribute.

Changes v0.2.8

  • Shorthand for list attribute

Changes v0.2.9

  • Added search feature (based on MySQL FULLTEXT search) – useful for get related articles

More documentation and examples

Last edited by makss (2014-03-13 15:11:26)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#2 2012-05-22 08:55:45

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_article : Extended article_custom tag

aks_article v.0.2.4

This plugin is completely rewritten. First post updated.


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#3 2012-05-22 10:47:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,989
Website

Re: aks_article : Extended article_custom tag

Although I was trying to do this using native tags, your plugin would do just nicely :)

Thanks makss.


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#4 2012-05-22 12:10:52

uli
Moderator
From: Cologne/Köln
Registered: 2006-08-15
Posts: 3,119

Re: aks_article : Extended article_custom tag

where="custom_1 > custom_2+custom_3"

status="hidden,5,live"

OMG, thanks! Long live makss!


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

Offline

#5 2012-05-22 13:01:21

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,145
Website

Re: aks_article : Extended article_custom tag

Ah cool now i can use category2 in my website structure!

Thanks makss

Offline

#6 2012-05-23 01:30:33

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 814
Website

Re: aks_article : Extended article_custom tag

Very nice thanks

Offline

#7 2012-08-31 11:07:20

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_article : Extended article_custom tag

Changes aks_article v0.2.5:

  • Inside form:
    • zebra-lines feature, useful for zebra-coloring lines
    • active-line feature, useful for set class=“active”
    • get current line number
  • Return txp:variables:
    • displayed articles
    • rest articles (limit – displayed), useful for additional call to aks_article
    • next count for second zebra call

Example zebra/active/count features

<txp:aks_article category2="mycat" limit="10" sort="title" wraptag="ul" zebra="3">
	<li class="zebra<txp:aks_article_zebra /><txp:if_aks_article_active value=" active" />">
		<txp:aks_article_count  /> <txp:title />
	</li>
</txp:aks_article>
Displayed: <txp:variable name="aks_article_count" /> articles
Limit - Displayed = <txp:variable name="aks_article_rest" /> articles

HTML output:

<ul>
<li class="zebra0"> 1 King</li>
<li class="zebra1"> 2 La Bonne Maison</li>
<li class="zebra2"> 3 Marmaris</li>
<li class="zebra0 active"> 4 Paradise</li>
<li class="zebra1"> 5 Relax</li>
<li class="zebra2"> 6 Sunrise</li>
</ul>
Displayed: 6 articles
Limit - Displayed = 4 articles

and additional call for rest 4 articles with other conditions

<txp:if_variable name="aks_article_rest" />
	<txp:aks_article category2="othercat" zebra="3"
		limit='<txp:variable name="aks_article_rest" />'
		zebra_next='<txp:variable name="aks_article_zebra_next" />'
	 />
</txp:if_variable>

know bug – not stored last zebra color for second call aks_articleFIXED, zebra_next attribute


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#8 2012-09-04 09:35:53

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_article : Extended article_custom tag

Changes aks_article v0.2.6:

New: Prev/Next carousel feature – show nearest articles by sort order.

Sample:

  • prev_article-2
  • prev_article-1
  • prev_article
  • current_article
  • next_article
  • next_article+1
  • next_article+2

New: Multi-column feature.

Sample:

<table><tr>
<td>
	1 article
	2 article
	3 article
</td>
<td>
	4 article
	5 article
	6 article
</td>
<td>
	7 article
	8 article
	9 article
</td>
</tr></table>

Last edited by makss (2012-09-04 09:37:03)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#9 2012-09-04 13:18:31

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

Re: aks_article : Extended article_custom tag

Interesting and usefull for some projects, makss ! Thanks !

Any news on rss_unlimited categories for 4.5 ?

Offline

#10 2012-09-05 14:17:55

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_article : Extended article_custom tag

jpdupont wrote:

Any news on rss_unlimited categories for 4.5 ?

Perhaps now it’s working…


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

Board footer

Powered by FluxBB