Rudy
unread,Oct 7, 2008, 7:22:56 PM10/7/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TinyButStrong next version
Hi,
I use TBS for over 2 years now, and every new release brought useful
features, thank you for that. However there are two things that would
make life easier, so I propose them here for a future release,
hopefully you'll find them good ideas too.
The first are automatic blocks. A nice thing, but - as the manual says
right - not merged with block-data. Let's think for example of a
website with different modules using subtemplates, each with different
viewmodes (like list of all entries, detail view of one entry, etc.)
and some blocks in the main-template like a dynamic menu or a
breadcrumb-navigation. Now its like that every module on that page has
to merge the blocks of the main-template in every viewmode. It would
be just awesome if you could simply select the data to merge in
automatic blocks at the beginning somewhere in the script into an
array (or a ressource?) before the main-template gets loaded or shown
and TBS merged the data in onload or onshow, let's say like that:
<ol><li><a
href="[breadcrumbs.href]">[onload_breadcrumbs;block=li;bmagnet=ol]
[breadcrumbs.pagetitle]</a></li></ol>
The second thing, very often used in practise, are attributes. By now,
when you want to have some conditional attributes, you have to use a
syntax like
<ul>
<li[menu.active; if[val]=1;then ' class=active';else
'']>[menu.caption;block=li;bmagnet=ul]</li>
</ul>
Not nearly valid xHTML, long and hard to read. The following would be
easy to read and even WYSIWYG-editable:
<ul>
<li
class="[menu.class;magnet=attr]">[menu.caption;block=li;bmagnet=ul]</
li>
</ul>
obviously this should then produce sth. like
<ul>
<li>first</li>
<li class="active">second</li>
<li>third</li>
</ul>
Even if this features would not be integrated in future versions, I
hope to have given some useful input, and thank you again for this
great lib.
greetings from Italy