Topic: Include only specific news item
Hi there
I was wondering if it is possible to include only a specific news item by the ID number or some other unique reference?
If so is there sample code?
Kind regards
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → Include only specific news item
Hi there
I was wondering if it is possible to include only a specific news item by the ID number or some other unique reference?
If so is there sample code?
Kind regards
I do this all the time.
Create a new category called e.g. 'Important' and post the 'specific'news item to that category. Use this include where you want the 'important' news to appear. Take it out of the 'important' category when you need to replace it with a different one.
i use this code to include only a specific news:
$output = $_SERVER['QUERY_STRING'];
$category = $_GET["kategorie"];
$page_alias = $_GET["page"];
$template = $_GET["template"];
include("cutenews/show_news.php");
with the link:
[url=yourpage.com?template=yourTemplate&kategorie=yourCategorie&page=specificNews]specific news[/url]
you must use the Page Alias option under the Full-Story field.
CutePHP Forums → Problem Solving / Help & Support → Include only specific news item
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.