Witam,
Mam problem w cmsie na plikach tpl ( DataLife Engine ).Chciałbym przypisać zmiennej {title} taką samą wartość w php. Próbowałem to zrobić takim kodem:
Plik A4EO1pa.php:
<?php
$tpl->set ( '{title}', $title);
?>
Po zapisaniu otrzymuję kompletnie inny tytuł, który za każdym razem jest inny, tak jakby był on losowany z bazy bez reguł a ja potrzebuje tytuł konkretnego ID.Pomocy (IMG:
style_emoticons/default/blinksmiley.gif) jak określić to, że chodzi o tytuł konkretnego artykułu?
Plik fullstory.tpl
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <img src="{THEME}/images/newsn1.jpg" alt="" border="0" /> <td width="100%" class="ntitle"> [full-link]{title}[/full-link] //Tutaj wyświetla tytuł konkretnego artykułu i chcem otrzymać ten sam w pliku php
Premiera:
<br />[xfvalue_premiera] rok
{date}
<td> </td> <tr align="left" valign="top">
<td width="100%" class="downwhite5"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <span style="color: #534d3b;"><br />{link-category}
<br /><hr noshade="noshade" size="1" color="#999999" /><br /> <div class="newsimg"><img src="[xfvalue_image]" /></div> {short-story}
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <td align="left" width="180" valign="center"> {rating}
<td class="newslooks" align="center" valign="center"> Odsłon: {views}
<td class="newscomms" align="center" valign="center"> [com-link]Komentarzy ({comments-num})[/com-link]
<td class="downwhite6"> </td> <?php //*
include "A4EO1pa.php"; //*
?> //*
<tr align="left" valign="top"> <img src="{THEME}/images/transp.gif" alt="" border="0" width="20" height="20" /> <td width="100%" class="downwhite8">
<img src="{THEME}/images/transp.gif" alt="" border="0" width="20" height="20" />
Ten post edytował fxfxfx 5.06.2010, 13:13:41