Categories > TinyButStrong general >

GetBlockSource DefTags not working ??

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: noelan
Date: 2011-07-06
Time: 18:43

GetBlockSource DefTags not working ??

Hi,

it seems that GetBlockSource Deftags option is not working when FALSE:

$template_jsAjax = $TBS->GetBlockSource('BLOCK_test',false,false);

<script>
[BLOCK_test;block=script]
hello
//</script>

then i always get the tags <script>...
an idea ?

i am using TBS version 3.5.3 for PHP 5

Thanks !

By: Skrol29
Date: 2011-07-07
Time: 00:22

Re: GetBlockSource DefTags not working ??

By: noelan
Date: 2011-07-07
Time: 08:14

Re: GetBlockSource DefTags not working ??

Thanks Skrol.
(i looked in the forum first but not in the version history...)

By: noelan
Date: 2011-07-07
Time: 12:02

Re: GetBlockSource DefTags not working ??

hum...

in fact in 3.7.0 it's working the same way...

<div>
<!-- [BLOCK_detail;block=div]-->
...
</div>

$template_detail = $TBS->GetBlockSource('BLOCK_detail',false,false);


then I get the <div> tag into $template_detail ...


By: Skrol29
Date: 2011-07-12
Time: 22:14

Re: GetBlockSource DefTags not working ??

Yes, this is not a bug, this is the expected result.
The <div> tags are part of the block.
By: noelan
Date: 2011-07-12
Time: 23:59

Re: GetBlockSource DefTags not working ??

Then i don't understand the difference between

<div>
<!-- [BLOCK_detail;block=div]-->
...
</div>

$template_detail = $TBS->GetBlockSource('BLOCK_detail',false,FALSE);

and


<div>
<!-- [BLOCK_detail;block=div]-->
...
</div>

$template_detail = $TBS->GetBlockSource('BLOCK_detail',false,TRUE);

??

in the manual:
" If you'd like those tags to be deleted, then force the argument DefTags to False."

Here, DefTags is to False and i still get the div tags...
By: Skrol29
Date: 2011-07-13
Time: 00:01

Re: GetBlockSource DefTags not working ??

the <div> are the bound HTML tags,
[BLOCK_detail;block=div] is the TBS block definition tag