Categories > TinyButStrong general >

Return single element

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Alex Kadis
Date: 2005-12-31
Time: 07:17

Return single element

How can I return one element of an array? I read the documentation, but I guess I couldn't figure it out.
I want to do something like:

-- PHP --

$page = array ( 'title' => 'ZNews', 'chartset' => 'utf-8' );
-snip-
$TBS->MergeBlock ( 'page', $page );
-snip-

-- HTML --
Page title: [page.title]
By: Tom
Date: 2005-12-31
Time: 15:03

Re: Return single element

Try

Your code works

with HML like

[var.page.title]

Cheers,