Categories > TBS next version >

Making 'magnet=#' more flexible

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Rudy
Date: 2012-02-29
Time: 09:58

Making 'magnet=#' more flexible

Hello,

I have a tiny improvement suggestion. I use attribute magnets quite a lot within my projects, like:

<li>[menu.class;att=class;magnet=#]</li>

I wonder if you could make it possible to use the magnet=# without "att", just within an attribute:

<li class="[menu.class;magnet=#]"></li>

At the moment this results in the error "parameter 'magnet=#' cannot be processed because parameter 'att' is not set or the attribute is not found".
Since the field is within an attribute it would be more intuitive if this worked as expected without "att".

thanks for everything
Rudy
By: Skrol29
Date: 2012-03-02
Time: 00:28

Re: Making 'magnet=#' more flexible

Hi Rudy,

It would be quite consistent, but not so simple to do.
Parameter "att" does an attribute analysis, while parameter magnet doesn't.

I'll study that.
Regards
By: Skrol29
Date: 2012-03-04
Time: 00:47

Re: Making 'magnet=#' more flexible

Hi Rudy,

After a study, it was not that hard.
It is implemented in TBS 3.8.0 which is released since few hours.

Enjoy,
By: Rudy
Date: 2012-03-04
Time: 15:03

Re: Making 'magnet=#' more flexible

Hi Skrol,

Big thanks, once again, for making life easier! TBS 3.8 is awesome :) I really like assigning custom formats and the set/getOption handling. Great work.

Cheers!
Rudy
By: Skrol29
Date: 2012-03-06
Time: 23:56

Re: Making 'magnet=#' more flexible

Thanks :-)