Skip to main content
Participant
June 25, 2006
Question

Custom Tags starting with <$: lots of problems

  • June 25, 2006
  • 1 reply
  • 438 views
I'm building an extension for MovableType template tags. Those tags can be delimited in several ways: <MTNameOfTheTag> or <$MTNameOfTheTag> or even <$MTNameOfTheTag$>. Since the dollar sign is not allowed as tag name, i put a prefix="&lt;$" in tag definition, but now i have some problems:

1. even if in tag chooser i can see the dollar-prefixed tags, i cannot see them in code hints (I mean "automatic" code hints, those floating menus automatically made for every tag/every attribute/every enumerated attriboption in library).
2. I tried to manually code tags in codehints.xml file with the "&lt;$ pattern (so i can change the icon associated to my custom tags, too. That's will be very elegant) but I loose "child" codehints menus: the first codehints menu (the one i manually made) comes up, but those for attributes and attributes values don't.
3. With the solution in point 2 not only i loose "automatic" codehints, but i have to write THREE files for every tag (taglibrary, codehins, third party tags file). Lot of time :/
4. Dollar signs, in both start and end, are NOT part of the name, but part of the tag, like a prefix or a suffix. With an attribute i should have:

<$MTBlogName donald="goofie"$>

and not:

<$NTBlogName$ donald="goofie">

as actually i have

so, as i said...a lot of problems! i hope someone can help me...its really an hard sunday, today! :/

tnx in advance
This topic has been closed for replies.

1 reply

June 27, 2006
I think you might be moving into creating your own server model.

Just a thought.
TheClueAuthor
Participant
June 27, 2006
uhm...perhaps its the onl solution possible....tnx for answer! :)