phpns-team team mailing list archive
-
phpns-team team
-
Mailing list archive
-
Message #00131
Re: [Question #42654]: click on title opens article in new template???
Question #42654 on phpns changed:
https://answers.launchpad.net/phpns/+question/42654
Status: Open => Answered
alecwh proposed the following answer:
You'll need, first, to understand static variables. They are documented
in the help.php file.
So, for the 'headlines' inclusion, I would use this:
<?php
$phpns['template'] = HEADLINE_ID;
$phpns['static'] = TRUE;
$phpns['script_link'] = 'news.php';
include("path/to/shownews.php);
?>
The "script_link" pre-include variable is optional. You can leave it
out, and it will just link to the current file.
Now, on news.php (or, just somewhere else on that file if you don't use
script_link), just use your regular include code.
Modify the template you used to:
<div style="border:1px solid black; background-position:center center; background-image: url({image_location}); overflow:hidden; width:50; height:50;"><img width="50" height="50" src="img/blank.gif" border="0"></div><a href="{article_href}">{title}</a>
--
You received this question notification because you are a member of
Phpns-team, which is an answer contact for phpns.