Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-05-18 08:31:51
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
- Website
aks_article : Extended article_custom tag
aks_article
v0.3 download link / homepage
Change log
v0.1 plugin was writen for testing Feature Idea <txp:else />
v0.2+ plugin is completely rewritten
- added support
<txp:else />
- added attributes
category1
,category2
,where
(sql syntax) - extend attribute
status
to status list
- 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
- Prev/Next carousel feature – show nearest articles.
- Multi-column feature.
- Attribute
time
added new value'all'
equivalent astime="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 withlist
attribute.
- New experimental attribute
- Shorthand for
list
attribute
- Added
search
feature (based on MySQL FULLTEXT search) – useful for get related articles
More documentation and examples
Last edited by makss (2016-07-02 15:16:24)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#2 2012-05-22 08:55:45
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
- Website
Re: aks_article : Extended article_custom tag
aks_article v.0.2.4
This plugin is completely rewritten. First post updated.
Last edited by makss (2016-01-16 18:58:55)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#3 2012-05-22 10:47:38
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,452
- 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 | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#4 2012-05-22 12:10:52
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,236
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,382
- 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: 858
- 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: 355
- 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 – FIXED, last zebra color
for second call aks_article
zebra_next
attribute
Last edited by makss (2016-01-16 18:59:26)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#8 2012-09-04 09:35:53
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
- 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 (2016-01-16 18:59:49)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#9 2012-09-04 13:18:31
- jpdupont
- Member
- From: Virton (BE)
- Registered: 2004-10-01
- Posts: 752
- Website
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: 355
- Website
Re: aks_article : Extended article_custom tag
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline