FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Don't understand templates.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Don't understand templates. [message #17163] Thu, 18 March 2004 16:50 Go to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
In thread.tmpl I have
{TEMPLATE-DATA: next_thread_link}

but I can't find next_thread_link

I have the same problem looking for
{TEMPLATE-DATA: mark_all_read}

is this supposed to be under the thread.tmpl or am I misunderstanding?

Regards,
Pais
Re: Don't understand templates. [message #17169 is a reply to message #17163] Thu, 18 March 2004 17:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
TEMPLATE-DATA is the same as VAR, meaning that it references a PHP variable. The only difference is that TEMPLATE-DATA referrers to a PHP variable containing data generated from another template.

FUDforum Core Developer
Re: Don't understand templates. [message #17172 is a reply to message #17169] Thu, 18 March 2004 17:41 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Ilia wrote on Thu, 18 March 2004 12:33

TEMPLATE-DATA is the same as VAR, meaning that it references a PHP variable. The only difference is that TEMPLATE-DATA referrers to a PHP variable containing data generated from another template.


So {TEMPLATE-DATA: next_thread_link} is generated from another template. How can I tell where these templates are?

Pais.
Re: Don't understand templates. [message #17175 is a reply to message #17172] Thu, 18 March 2004 17:57 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Open thread.php.t and find the $next_thread_link variable, that'll allow you to see from which template the data is generated.
Re: Don't understand templates. [message #17177 is a reply to message #17175] Thu, 18 March 2004 18:25 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Ilia wrote on Thu, 18 March 2004 17:57

Open thread.php.t and find the $next_thread_link variable, that'll allow you to see from which template the data is generated.


next_thread_link appears only in msg.php.t th_nav.inc.t and tree.php.t on my install

$next = $n ? '{TEMPLATE: next_thread_link}' : '';


Still missunderstanding. Confused
Pais.
Re: Don't understand templates. [message #17178 is a reply to message #17177] Thu, 18 March 2004 18:59 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If you look inside the files you've mentioned you will see that the section you are looking for is defined inside th_nav.tmpl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: path_info template editing
Next Topic: is it possible to allow anonymous/unregistered users a place for name to post with
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 01 03:27:50 GMT 2024

Total time taken to generate the page: 0.02428 seconds