By: powerpop
Date: 2004-07-03
Time: 03:59
|
can you make blocks that will not be used by Merge?
i have a section of my template that i want to show when the user is the owner - i dont have a natural html tag to use as the surrounding block so i made a block in tbs - but it doesnt work - so there must be some other way to do this - here is the code:
[edit;block=begin][tbs_check.controls;block=edit;if [var.isuser]=1]
<a href=http://[var.ping_domain]/user/blog/editpost.php?wid=[var.wid]&pid=[posts.pid]&date=[posts.datecreated]>edit</a>
<a href=http://[var.ping_domain]/user/blog/deletepost.php?wid=[var.wid]&pid=[posts.pid]&date=[posts.datecreated]>delete</a>
[edit;block=end]
|
i dont have a MergeBlock for edit (no sql query) - isuser is set to true if the user is the owner - the result is that the tbs tags do not get replaced
|
By: Skrol29
Date: 2004-07-04
Time: 01:00
|
Re: can you make blocks that will not be used by Merge?
Hi PowerPop,
[tbs_check] blocks can be definied as any TBS blocks:
[tbs_check.controls;block=begin]
...
[tbs_check.controls;block=end]
|
|
By: powerpop
Date: 2004-07-04
Time: 03:39
|
Re: can you make blocks that will not be used by Merge?
perfect, that worked like a charm
but just so i know - if were to make something like this:
<td></td>[user.name;block=td]<td></td>
what would tbs leave behind - just one set of td or two?
|
By: Skrol29
Date: 2004-07-04
Time: 16:39
|
Re: can you make blocks that will not be used by Merge?
The block is defined by the couple of Html tags that embeds the TBS tag. Thus "<td></td>" before and after the TBS tag won't be used for the block bounds because they don't embed the TBS tag.
If your have:
...<td>...<td></td>[user.name;block=td]<td></td>...</td>...
then the block will be:
<td>...<td></td>[user.name;block=td]<td></td>...</td>
|
|
Posting in progress.
Please wait...
|