Name: stickyposts Latest version: 1.1 (for LifeType 1.1.x) Download link: http://sourceforge.net/projects/lifetype/ or http://www.pactofshadow.com/lifetype/2/articleperma/40.html License: GPL Author: lss / EagleKing(1.1 porting) Description This plugin offers features to get all articles from specific article cateogries as announcements and sticky articles. Configuration In ControlCenter: 1. Create two categories for Sticky and Annouce. 2. You can configure this plugin in controlcetner >> StickyPosts . 3. maxStickys and maxAnnouces are numbers of sticky/announce articles for display in blog. The default value is 5. 4. Select category for store sticky/announce articles. In tempalte file, You can use: 1. $stickyposts->isEnabled() to check the plugin is enabled or not. 2. $stickyposts->getArticles( 'sticky' ) to get an array of articles for sticky. This will get max articles you set in controlcenter. 3. $stickyposts->getArticles( 'announce' ) to get an array of articles for announce. This will get max articles you set in controlcenter. 4. $stickyposts->getArticles( 12 ) to get an array of all articles for categoryId = 12. 5. $stickyposts->getCategory( 'sticky' ) to get an category object for sticky articles. 6. $stickyposts->getCategory( 'announce' ) to get an category object for annuonce articles. 7. $stickyposts->getCategory( 12 ) to get an category object for categoryId = 12. Where the 'sticky' and 'announce' are plugin reverse string. Example: Modifies main.template of template 'standard' below {if $category}

{$locale->tr("category")}: {$category->getName()}

{/if} add {if empty($showAll) && $stickyposts->isEnabled()}

Sticky Posts

{assign var=stickys value=$stickyposts->getArticles('sticky')} {foreach from=$stickys item=post}

{$post->getTopic()}

{/foreach} {assign var=stickyCategory value=$stickyposts->getCategory('sticky')}

More Sticky...

Announce Posts

{assign var=stickys value=$stickyposts->getArticles('announce')} {foreach from=$stickys item=post}

{$post->getTopic()}

{/foreach} {assign var=announceCategory value=$stickyposts->getCategory('announce')}

More Announce...

{/if}