Forums
This topic is locked
Adding recordset in template
Posted 29 Mar 2005 14:01:14
1
has voted
29 Mar 2005 14:01:14 Christian Sen posted:
Why is it such a problem adding a recordset to an existing template?I have a template-based site and I experience problems all the time
when adding a new function to a page that requires a recordset.
Is the code outside the HTML supposed to be locked or what?
Anybody have suggestions for me on this matter?
Regards, Christian
Help is only a click away
~~~~~~~~~~~~~~
DWMX | ASP | Access
Edited by - Sarre on 29 Mar 2005 15:38:35
Replies
Replied 29 Mar 2005 21:31:19
29 Mar 2005 21:31:19 Dave Thomas replied:
templates are the spawn of the devil
regards
Dave Thomas
<b>DMX Zone Manager</b>
regards
Dave Thomas
<b>DMX Zone Manager</b>
Replied 29 Mar 2005 21:56:03
29 Mar 2005 21:56:03 Vince Baker replied:
Make your own template using includes.......life seems so much better after
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Replied 30 Mar 2005 00:07:53
30 Mar 2005 00:07:53 Jeremy Conn replied:
I will give the includes party a 3rd "I agree"...
<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB
<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB
Replied 30 Mar 2005 00:35:32
30 Mar 2005 00:35:32 Matt Bailey replied:
Includes are the way to go - sometimes dreamweaver is too helpful for its own good!
___________________________________
* Sorry... how do you do that again?... *
___________________________________
* Sorry... how do you do that again?... *
Replied 30 Mar 2005 19:28:20
30 Mar 2005 19:28:20 Christian Sen replied:
So includes is the way to go?
All right, I'll get on with it right away, Thanks!
Regards, Christian
Help is only a click away...
~~~~~~~~~~~~~~~~~
DWMX2004 | ASP | Access
All right, I'll get on with it right away, Thanks!
Regards, Christian
Help is only a click away...
~~~~~~~~~~~~~~~~~
DWMX2004 | ASP | Access
Replied 31 Mar 2005 21:55:32
31 Mar 2005 21:55:32 Daniel Severns replied:
I dont agree with the others at all. Personally I have had amazing luck with templates and record sets. The only problem you may have is if you add a record set to a template that other pages already use, they may not get updated with the code above the <html> tag. This happens because its considered an editable region. If you plan everything out and set it in stone, it should allow you to do it right the first time so that you can build your entire site off template.
If you have pages that have been created from a tempalate, be sure to "update" the pages when you make changes to the original template. Once you are satisifed and you have updated all the dependent pages, you need to upload all dependent pages and the template to your web server.
What is the exact issue you are having?
Good luck and let me know if I can be of anymore assistance.
Dan
If you have pages that have been created from a tempalate, be sure to "update" the pages when you make changes to the original template. Once you are satisifed and you have updated all the dependent pages, you need to upload all dependent pages and the template to your web server.
What is the exact issue you are having?
Good luck and let me know if I can be of anymore assistance.
Dan
Replied 01 Apr 2005 00:53:32
01 Apr 2005 00:53:32 Christian Sen replied:
Hi Daniel, and thank you for responding! Really appreciated!
My issue with templates is that is seems impossible to please Dreamweaver
with the "codeOutsideHTMLis"true/false"-thingy.
If I set it to "true" I get a problem and if I set it to "false", I still get a problem.
And the problems very often concernes recordsets.
Either the recordset is not added due to the codeOutsideHTML.. or DW can't find
the recordset it needs in order to do certain tasks.
So my main issue, and the answer to your question is that I'm not quite sure if
codeOutsideHTML is suppose to read "true" or "false".
Regards, Christian
Help is only a click away...
~~~~~~~~~~~~~~~~~
DWMX2004 | ASP | Access
My issue with templates is that is seems impossible to please Dreamweaver
with the "codeOutsideHTMLis"true/false"-thingy.
If I set it to "true" I get a problem and if I set it to "false", I still get a problem.
And the problems very often concernes recordsets.
Either the recordset is not added due to the codeOutsideHTML.. or DW can't find
the recordset it needs in order to do certain tasks.
So my main issue, and the answer to your question is that I'm not quite sure if
codeOutsideHTML is suppose to read "true" or "false".
Regards, Christian
Help is only a click away...
~~~~~~~~~~~~~~~~~
DWMX2004 | ASP | Access
Replied 04 Apr 2005 22:45:48
04 Apr 2005 22:45:48 Daniel Severns replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
My issue with templates is that is seems impossible to please Dreamweaver
with the "codeOutsideHTMLis"true/false"-thingy.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Sorry its taken so long to reply....
If you get that error message when adding a record set to a ".dwt" template, don’t worry about it. I would suggest though, that you should only set up record sets on the actual template that will remain constant and will not change. If you complete the process of making a template and still experience problems with that error, open the template page in notepad and change the true to false or visa versa, you might even be able to delete the line all together. You can change them on the page you create for a template but you may run into some problems later on.
The functionality of templates was really intended for a consistent "design" more than back end stuff. That’s not to say it can’t be done, it just takes a little understanding of what’s going on.
When you create a template:
1. Make sure that what you create in a template is the way you want it to be. You can go back and change things but with a degree of difficulty. Still easier than using includes.
2. When you create a template you have several options for your information to be displayed. The most common one is an "editable region". Create your page and determine what will be constant in your design (menus, logos, etc) and what will change. You will then highlight the content that will change from page to page (i.e. <td>blah blah</td>, <tr></tr>, <table></table>, <div>blah blah</div>, etc tags) and on the templates menu, select "new editable region". The information in an editable region will not be updated on pages created from a template. Record sets are considered editable regions and the same applies to them.
3. Once you are satisfied with the design of your template, save it as a template and close it out.
4. Create a new document and select the templates tab, you should see the filename of the template you just created. Select it and repeat this process for all pages you would like to create from this template.
5. If you would like to add a record set to a page created from a template, simply add it through the server behaviors panel. Note, this record set will not be created on any other page other than the one you are working on.
6. If you have created pages from your template and you decide to change a record set that you created on the original template, your change will not be reflected on existing pages. The change will only be reflected on new pages created from the template. This is why it is important to lay out the structure in stone to begin with.
Best thing to do is play around with it, once you understand what is happening, you will be glad to have saved so much time!
I really hope this helps and if anything needs further explanation, please let me know…
Dan
Edited by - MtnManDan on 04 Apr 2005 22:47:58
My issue with templates is that is seems impossible to please Dreamweaver
with the "codeOutsideHTMLis"true/false"-thingy.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Sorry its taken so long to reply....
If you get that error message when adding a record set to a ".dwt" template, don’t worry about it. I would suggest though, that you should only set up record sets on the actual template that will remain constant and will not change. If you complete the process of making a template and still experience problems with that error, open the template page in notepad and change the true to false or visa versa, you might even be able to delete the line all together. You can change them on the page you create for a template but you may run into some problems later on.
The functionality of templates was really intended for a consistent "design" more than back end stuff. That’s not to say it can’t be done, it just takes a little understanding of what’s going on.
When you create a template:
1. Make sure that what you create in a template is the way you want it to be. You can go back and change things but with a degree of difficulty. Still easier than using includes.
2. When you create a template you have several options for your information to be displayed. The most common one is an "editable region". Create your page and determine what will be constant in your design (menus, logos, etc) and what will change. You will then highlight the content that will change from page to page (i.e. <td>blah blah</td>, <tr></tr>, <table></table>, <div>blah blah</div>, etc tags) and on the templates menu, select "new editable region". The information in an editable region will not be updated on pages created from a template. Record sets are considered editable regions and the same applies to them.
3. Once you are satisfied with the design of your template, save it as a template and close it out.
4. Create a new document and select the templates tab, you should see the filename of the template you just created. Select it and repeat this process for all pages you would like to create from this template.
5. If you would like to add a record set to a page created from a template, simply add it through the server behaviors panel. Note, this record set will not be created on any other page other than the one you are working on.
6. If you have created pages from your template and you decide to change a record set that you created on the original template, your change will not be reflected on existing pages. The change will only be reflected on new pages created from the template. This is why it is important to lay out the structure in stone to begin with.
Best thing to do is play around with it, once you understand what is happening, you will be glad to have saved so much time!
I really hope this helps and if anything needs further explanation, please let me know…
Dan
Edited by - MtnManDan on 04 Apr 2005 22:47:58
Replied 04 Apr 2005 23:22:00
04 Apr 2005 23:22:00 Christian Sen replied:
Hi Daniel!
I'm getting more and more understanding around the use of templates now,
thanks to this forum, and your replies off course.
And I agree what you say about saving time.
Guessing that's the whole idea behind templates, and it works well.
Thank you again for your replies, it sure cleared out a few things for me <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Best regards, Christian
Help is only a click away...
~~~~~~~~~~~~~~~~~
DWMX2004 | ASP | Access
I'm getting more and more understanding around the use of templates now,
thanks to this forum, and your replies off course.
And I agree what you say about saving time.
Guessing that's the whole idea behind templates, and it works well.
Thank you again for your replies, it sure cleared out a few things for me <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Best regards, Christian
Help is only a click away...
~~~~~~~~~~~~~~~~~
DWMX2004 | ASP | Access