templates and PHP code again
Posted: Tue Feb 06, 2007 2:02 pm
Hi,
Garvin has given a hint solving this by refering to the FAQ.
http://board.s9y.org/viewtopic.php?t=87 ... p+template
I want to try this using the "The "hackish but even easier way" at the moment. It works fine, but I have trouble assigning the value of a CustomField (TFHUser) to a PHP variable. It doesn't work, the variable is empty.
What goes wrong? Sorry for my simple question...
Juergen
<div class='serendipity_comment'>
{$entry.properties.ep_TFHUser} <--- only for test, it works
{php}
$leiter=$entry.properties.ep_TFHUser; <--- $leiter is still empty
include ('http://www.mydomain.de/foo/bar/proj.php');
{/php}
</div>
Garvin has given a hint solving this by refering to the FAQ.
http://board.s9y.org/viewtopic.php?t=87 ... p+template
I want to try this using the "The "hackish but even easier way" at the moment. It works fine, but I have trouble assigning the value of a CustomField (TFHUser) to a PHP variable. It doesn't work, the variable is empty.
What goes wrong? Sorry for my simple question...
Juergen
<div class='serendipity_comment'>
{$entry.properties.ep_TFHUser} <--- only for test, it works
{php}
$leiter=$entry.properties.ep_TFHUser; <--- $leiter is still empty
include ('http://www.mydomain.de/foo/bar/proj.php');
{/php}
</div>