tbs creates a syntax like '<opt<option>'Hello!
I've problems with sub-blocks and creating select-option-list-menues.
In the lines with the '?' the 'select name=' and the 'id=' are missing
and in the line with the '??' there is a syntax like this: '<opt<option>'
and the first entry 'All TestB' is missing in the browsers output list menue.
What I only want to do is to create a couple of select lists to learn the how to.
Here is what I've done and was is happening:
Thanks for help
Re: tbs creates a syntax like '<opt<option>'Hello Ronny,
Thank you for your reporting on this bug with useful details.
I've reproduce the bug, it is a TBS that occurs in special cases :
- when you merge a block with parameter p1 (sub-block)
- when some fields of the block are put outside the block.
It has nothing to do with the HTML plug-in.
In your snippet, you have some "showItem" fields outside the "showItem" block. This is allowed for templates, TBS should be able to manage this.
But there is a bug. I'll publish a fix soon, but you can fix it right now by changing the line :
$Delta = $Pos - $OldEnd;
$Delta = $Pos - $OldEnd-1;
(in the TBS file)
Nevertheless your snippet has a mistake:
You do MergeBlock('showItemLabel') before MergeBlock('showItem') so the field [showItemLabel.selectedItem;ope=html;select] cannot select the correct value because those values are marged after, by 'showItem'.
Re: tbs creates a syntax like '<opt<option>'Thanks for helping.
I fixed my TBS file and now it works for every entry. For the selected item I have to look and find a solution.