|
|
Re: adding articles at the top. [message #15510 is a reply to message #15502] |
Wed, 17 December 2003 16:53   |
 |
hello-world
 Messages: 47 Registered: December 2003
Karma: 0
|
Member |
|
|
Hi,
Sorry, I was a little vague, I guess.
Can I add dynamic content?
Actually a bunch of html files according to the topic.
FOr instance something like this..
<!-- include {VAR: id->topic}.html>
<!-- include {VAR:id->topic}_right.html>
Then _contents_ of these files will be automatically included inside.
In such a case, FUDforum can work as a full fledged content
management system, I mean, if CMF is what I understand it is.
Thanks in advance.
[Updated on: Wed, 17 December 2003 16:55] Report message to a moderator
|
|
|
Re: adding articles at the top. [message #15511 is a reply to message #15510] |
Wed, 17 December 2003 16:57   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You can use PHP in the header, so if you wanted to include a PHP file you'd do:
<?php readfile("/full/path/to/file.html"); ?>
You can of course embed variables into the path, but you need to be certain those variables will be set or add appropriate checks to check them.
FUDforum Core Developer
|
|
|
Re: adding articles at the top. [message #15514 is a reply to message #15511] |
Wed, 17 December 2003 17:05  |
 |
hello-world
 Messages: 47 Registered: December 2003
Karma: 0
|
Member |
|
|
Hey,
That's damn cool.
Is there a way to embed "IF" statements inside the template file? If
I use php I wont be able to use the template syntax..
if (forum->id == 1) {
// Means it is the article with feedback..
main_section }
else {
main_section }
If that is not possible, could you just point me to the php files
that handles the templates.
Thanks.
[Updated on: Thu, 18 December 2003 06:22] Report message to a moderator
|
|
|