Author Topic: Alternative Tags  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

bumlux

  • Guest
Alternative Tags
on: Thu, 14. October 2004 - 20:46:50
If one opens the template in an editor, the editor is interpreting the <> tags. The consequence is that e.g. in <body bgcolor=<TMPL_VAR name="color"> link=<TMPL_VAR name="link">> the first occurrence of > is closing the body-tag and the rest is interpreted as text showing on the screen something like: link= >>. This makes it not very convenient to edit the templates separate for layout.

Using e.g. <body bgcolor={TMPL_VAR name="color"} link={TMPL_VAR name="link"}> comes with the correct result when opening the template directly.

Is there a way to use { } (or something else) as tag instead of < > for the template variables?

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
Alternative Tags
Reply #1 on: Thu, 14. October 2004 - 23:07:12
Use { } please.

Check out
http://lamp.clausvb.de/examples/tmpl/vlibT...ate_wysiwyg.htm
and
http://lamp.clausvb.de/examples/vlibTemplate_wysiwyg.php

You can use a lot of different things for { }. E.g. you can use "<!--tmpl_var ..." as well.

Regards,
Claus

bumlux

  • Guest
Alternative Tags
Reply #2 on: Sat, 16. October 2004 - 09:44:10
:D Perfect. It works as I need it. However, I guess it is sometimes still better just to try it instead of reading the documentation (where I could found nothing). :roll:

Many thanks
Andreas