Interesting features

1 view
Skip to first unread message

Rudy

unread,
Oct 7, 2008, 7:22:56 PM10/7/08
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

Skrol29

unread,
Oct 8, 2008, 5:51:15 PM10/8/08
to tbs-...@googlegroups.com
Hi Rudy,

Your suggestions are both very good.

I've added your first idea in the todo list, I hope to make it for the
next version.
The second idea is already planed for TBS version 4. This version should
support merging on attributes by several ways.
A plug-in may be available before, perhaps.

---------------------
Skrol29
www.skrol29.com
www.tinybutstrong.com
---------------------



Rudy a écrit :

Rudy

unread,
Oct 10, 2008, 5:31:19 AM10/10/08
to TinyButStrong next version
Hi Skrol29!

You're kidding... that's awesome :) Be sure I'll always recommend TBS
to others.

best regards

ege

unread,
Oct 13, 2008, 7:41:14 PM10/13/08
to TinyButStrong next version
Merging on attributes on several ways! That'd be really nice. May I
ask when we should expect TBS version 4?

Regards,
ege
Reply all
Reply to author
Forward
0 new messages