Categories > TinyButStrong general >

possible to rename onshow. to page.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: shashi
Date: 2010-10-18
Time: 10:28

possible to rename onshow. to page.

Hi,

is it possible to rename onshow.  to page. or anything like that ?

so instead of onshow.title, i can write in the template as page.title which looks more presentable i think ?


Thanks,
By: Skrol29
Date: 2010-10-18
Time: 10:59

Re: possible to rename onshow. to page.

Hi Shashi

You can use [var.title] instead. The perfix var is available for fields, not for blocks.

Otherwise, you can merge your own named fields using MergeField():
$TBS->MergeField('page', $_GLOBAL);

Or you can assign this command in order to run it automatically on show:
$TBS->Assigned['page'] = array('page', $_GLOBAL, 'type'=>'mergefield', 'auto'=>'onload');
By: Shashi
Date: 2010-10-19
Time: 14:24

Re: possible to rename onshow. to page.

Hi,

Thank you.

var. is OK with me.

I am a newbie in TBS and trying to move my existing codebase to TBS powered system.

After reading all about 19 template systems, TBS looks the best fit for me.


Cheers,
Shashi
By: Skrol29
Date: 2010-10-19
Time: 17:46

Re: possible to rename onshow. to page.

:-)