Categories > TinyButStrong general >

frm from php variable?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Dirk
Date: 2005-08-04
Time: 09:47

frm from php variable?

Hi,

1st thank you very much for TinyButStrong, it's great!!

But i have a little problem getting a date format from a php global varialble. My syntax
<input name="m_date_eval[[blk_Profile.tgid]]" type="text" size="11" value="[blk_Profile.m_date_eval;frm='dd.mm.yyyy']"> works but if try it with
<input name="m_date_eval[[blk_Profile.tgid]]" type="text" size="11" value="[blk_Profile.m_date_eval;frm='[var.UserDateFormat]']">

it seems to parse the block before the variable resulting in garbled output.

Is there any way to do change this behaviour or another way to change the format dynamically?

Greetings Dirk
By: Skrol29
Date: 2005-08-04
Time: 10:00

Re: frm from php variable?

hi Dirk,

Var fields are merged automatically for conditional parameter only, or on method Show().

You can force the Var fields merging at any time (in your case before merging block 'blk_Profile')  using methode $TBS->MergeSpecial('var').
You can also merge non Var fields with a varible using MergeField().
By: Dirk
Date: 2005-08-04
Time: 10:08

Re: frm from php variable?

hi,
thank you, that worked.

maybe next time i should read the manual first :(

Greetings Dirk