Categories > TinyButStrong general >

block_alias not woking

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: DevSA
Date: 2016-01-07
Time: 13:09

block_alias not woking

Hi there

I'm trying to use your block_alias function bu it doe not seem to be working this is what what suggested and implemented.

Please advise what I'm doing wrong.

        $TBS = new clsTinyButStrong;
        $TBS->SetOption('block_alias', 'history', 'begin;sub1=duties;sub2=achievements;sub3=reporting_structure'); // Employment history alias




TinyButStrong Error in block's definition [eh...]: at least one tag corresponding to history is not found. Check opening tags, closing tags and embedding levels.
By: Skrol29
Date: 2016-01-07
Time: 23:59

Re: block_alias not woking

Hi DevSA,

Block Alias can only replace value of parameter "block", not other parameter of the block.
Therefore you cannot use a Block Alias with "block=begin", "block=end".
By: DevSA
Date: 2016-01-08
Time: 08:59

Re: block_alias not woking

Thanks Skrol, I Appreciate the quick response.

I'm trying to simplify the use in specific cases to simplify training, any suggestions?
By: Skrol29
Date: 2016-01-11
Time: 17:38

Re: block_alias not woking

What do you mean by « simplify training » ?

What I usually do when the template must be completed with someone which is not of the IT, is to
use simple custom tags in the template such as [block_1_begin] ; [block_1_end] ; ...
and then I replace them with TBS final tags :
$TBS->Source = str_replace('[block_1_begin]', '[block1;block=begin;sub1=duties;sub2=achievements;sub3=reporting_structure]', $TBS->Source);