Custom HTML lazy man's "shortcuts/tags" ?
Namour4ever - October 4, 2009 - 07:19
Hi, i'm not really sure if i'm in the right section, but i couldn't find a more appropriated one.
I am asking if there's a way to create custom HTML tags, or php (witch could be more easier to do) shortcuts to them, for usability and lazyness reasons.
i.e:
instead of typing
<div>
<a href="path/to/image.format">
<img width=75% alt=whatever src=path/to/image.format (the same as above) />
</a>
</div>I could use <image alt=whatever>path/to/image.format</image>
Note that this is an example, i would like to be able to create a shortcut for any html bunch of code, as well as <lb i=whatever/image> instead of <a rel=lightbox href=whatever/image></a> and so on...

Have a look at
Have a look at http://drupal.org/project/quicktags, probably in combination with http://drupal.org/project/bbcode.
For the lightbox behavior, I believe http://drupal.org/project/lightbox2 provides that kind of functionality in your input filters.
Oh, Thank you! I'll check
Oh, Thank you! I'll check them out. Yes, i'm using lighbox2 but it's really boring to type a 4-line code each time :) (i use clickable images)
The Pirate Trashland : WoP