News Flash Content Type [Updated 2.0.4]
Posted: Thu 15. Sep 2005, 15:17
Hi all,
New update of the newsflash content part available: v2.0.4.
It can be used to display article listings in any block and even inside other articles.
The code can be downloaded from: http://www.ikfrej.se/index.php?downloads
Here's the readme file:
Regards,
Jens
New update of the newsflash content part available: v2.0.4.
It can be used to display article listings in any block and even inside other articles.
The code can be downloaded from: http://www.ikfrej.se/index.php?downloads
Here's the readme file:
Code: Select all
------------------------------------------------------------
Latest changes
------------------------------------------------------------
2005-09-15 Jens Zetterström Version 1.0.0
* Initial write
2005-10-11 Jens Zetterström Version 1.0.1
* Fixed issue where articles was sorted incorrectly.
* Fixed so it also works for default article template.
2005-12-15 Jens Zetterström Version 2.0.0
* Now possible to select whole
categories with articles to be listed.
* Includes new reptag {NEWSFLASH}
* This is a new content type (#90). The reason is that
the enhancements would cause your old newsflash content
parts to stop working.
2006-01-04 Jens Zetterström Version 2.0.1
* Possible to select template as specified in the article
(i.e no overriding template).
2006-09-15 Jens Zetterström Version 2.0.2
* Patched for 1.2.8.
* Added setting for maximum articles to be shown. Leave empty for all.
2007-04-20 Jens Zetterström Version 2.0.3
* Sorting of articles by creation date, title, modified date, etc.
* Fixed broken RT
2007-05-30 Jens Zetterström Version 2.0.4
* Paging of article list
* Max number of words in summary
------------------------------------------------------------
Summary
------------------------------------------------------------
I found the need to be able to display article listings
in any block of my PHPWCMS website. I decided to enhance
the article list content part slightly so that it used the
article list templates to display the selected articles.
In conjunction with Content Part Alias or my {SHOW_CONTENT}-
replacement tag, it permitted a very flexible way of
displaying article listings anywhere, even inside articles.
------------------------------------------------------------
Content
------------------------------------------------------------
1. Installation
2. Usage
3. Known Issues
4. Bugs & Suggestions
5. Credits & License
-------------------------------------------------------------
1. Installation
-------------------------------------------------------------
1. Download from http://www.ikfrej.se/index.php?downloads
2. Unzip the package
3. Backup the following files:
include/inc_lib/article.contenttype.inc.php
include/inc_tmpl/articlecontent.edit.tmpl.php
4. Upload the include folder (and everything in it) to the
website root directory.
5. If you had installed newsflash 2.0.x before, you must
remove the following functions from inc_front/ext.func.inc.php or inc_front/front.func.inc.php:
list_newsflash_summary()
get_newsflash_articles_data()
get_newsflash_article_list()
-------------------------------------------------------------
2. Usage
-------------------------------------------------------------
Newsflash v2 Content Type #90:
1. Choose "News Flash v2" as content part
2. Select the article listing template you want to use (this
will override the article's own article listing template)
3. Select articles and categories.
4. Hit update.
NEWSFLASH reptag:
{NEWSFLASH:art_&_cat[,more_art_&_cat][:art_list_template]}
where
art_&_cat are article IDs (with prefix 'a') and
category IDs (with prefix 'c').
art_list_template is the overriding article listing
template.
Example:
{NEWSFLASH:c29,a167,a143:sample.tmpl}
will list all articles in category 29 and article with IDs
167 and 143.
-------------------------------------------------------------
3. Known Issues
-------------------------------------------------------------
#0001 Removing articles from the top select box will screw
up the bottom one.
-------------------------------------------------------------
4. Bugs & Suggestions
-------------------------------------------------------------
If you find any kind of bugs or you have any suggestions.
Please send an E-Mail to: webmaster@ikfrej.se
-------------------------------------------------------------
5. Credits & License
-------------------------------------------------------------
This script is developed by Jens Zetterström and released under
The GNU General Public License.
Jens