Forums

This topic is locked

How to add RS to template in DWMX (figured it out)

Posted 14 Nov 2002 17:02:51
1
has voted
14 Nov 2002 17:02:51 Peter Kutschmann posted:
Ever had problems trying to add recordsets to DWMX templates? Well, I figured out a way. And I want all of you to know (cause I know it's hell if you don't).

Add the code <b>!-- TemplateInfo codeOutsideHTMLIsLocked="false" -- </b> into BOTH the HTML and HEAD tag of your template. If you apply the code to only one of the two tags, it won't work. Hope this little info helps.

Replies

Replied 15 Nov 2002 02:50:54
15 Nov 2002 02:50:54 Dennis van Galen replied:
oh, is that new ?

i learned that the first thing to do after i make a template is make sure that the beginning looks like:

&lt;mm:editable&gt;
&lt;SCRIPT&gt;
&lt;/SCRIPT&gt;
&lt;/mm:editable&gt;

With kind regards,

Dennis van Galen
Webmaster KPN Services
Financial and Information Services
Replied 15 Nov 2002 03:31:42
15 Nov 2002 03:31:42 Peter Kutschmann replied:
Well, I've seem quite a few people having the same problem. They also didn't seem to find a solution in this forum.

The code !-- TemplateInfo codeOutsideHTMLIsLocked="false" -- is commonly placed only in the head tag. This allows Javascripts and CSS to work on a template but not recordsets. By applying the code in BOTH the head and html tag, you can add as many recordsets as you like both in the editable region and within other parts of the template without having to handcode (an error sign appears when applying the recordset within non-editable regions, but it worked).

The only problem I faced is when applying behaviours. With this method, you'll have to delete the !-- TemplateInfo codeOutsideHTMLIsLocked="false" -- in the html tag (leave the same code in the head tag as it is), make the changes with the behaviour, save (update), then place the code back where it was and save again.

I tried your suggestion after checking the macromedia website, but it didn't work for me. In anycase, just trying to help <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Replied 15 Nov 2002 03:43:49
15 Nov 2002 03:43:49 Dennis van Galen replied:
well, we all keep learning !
i've been playing with MX since june and it worked for me, i used my UDev4 templates and adding application objects worked like a charm, no loss of code.
and when i tried nested templates the above trick i mentioned also worked when i pulled up a database table.

With kind regards,

Dennis van Galen
Webmaster KPN Services
Financial and Information Services

Reply to this topic