close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

locked/Unlocked code gerneration with Dreamweaver Templates.

Thread began 2/10/2012 10:50 am by Christopher West | Last modified 2/13/2012 2:58 pm by Christopher West | 2235 views | 7 replies |

Christopher WestCommunity Expert

locked/Unlocked code gerneration with Dreamweaver Templates.

Hello there, I have come to a grinding stop on a project.

Im creating an ecommerce website. So I have created a Dreamweaver template with the initial layout of the website. this template also includes webassist functionality (to display dynamic content (such as some menu items from a database and an on-page login box and also going to include ecart shopping basket code inside the template.

now the problem.....if i then go to create a page (using the above template) lets call it "Products" page - so this page will generate a list of products from the database, when I go to create the code, Dreamweaver WONT let me save the document BECAUSE the code is OUTSIDE the HTML area of the initial template and that area is LOCKED.

problem is, its needs to be locked, because if I later decide to make changes to the initial template that involves editing webassist code then those changes wont update all the pages that use the template.

So, is there a solution?

I was thinking that maybe something like Framework Builder, and making sure that all the webassist stuff inside the initial template are all loaded in as plugins rather then hardcoded to the template document. but I am wondering if this is the most optimised method or am I missing something in the login of programming?

Please help

Sign in to reply to this post

Jason ByrnesWebAssist

are you getting this error:

"You have made changes to code that is not marked as editable. If you retain those changes, they will be lost the next time you apply a template update to this file. Do you want to retain the chages until then?"


if so, see this thread for details:
showpost.php?p=18157&postcount=2

Sign in to reply to this post

Christopher WestCommunity Expert

Hi there, yes i have that message displayed...and I did read up on the workaround. My follow up question would be this though. if I do detach it from the template and reattach ("after" I have applied any webassist php functions to that given page)...what if later I then decide to update the original template for what ever reason...if I update the template, and since the template code would be back to its original locked mode, wouldnt then updating the template code overwrite the changed I did to the method you pointed to?

Sign in to reply to this post

Christopher WestCommunity Expert

Samuel efughtst

This post has been deleted.

Christopher WestCommunity Expert

Hi there, after trying out the solution you mentioned, it doesnt work to how I need it to...let me explain...

I did a simple test...
1. in the template file I created a recordset, lets call it recordset1...I then saved and this added the code to my other pages (which was expected)
2. I did the textpad method of detaching one of my pages, then loaded it back into dreamweaver and recreated a second recordset, lets call it recordset2.
3. I then went back into textpad, and put back the "InstanceBegin template....." code, then saved and loaded back into dreamweaver....
4. so all playing nicely...until....
5. I went back into my template file...and lets say I didnt need recordset1 anymore, so I deleted it, then saved and then my other pages were updated to reflect this...
6. HOWEVER when I went back to the page that I had previously detached+added the recordset2 to, this recordset2 has now vanished...because all that code above HTML has been replaced with the code from the template file.

Im trying to work out the workflow for this, because im my project I need a template file with webassist generated code AND I am going to need some of those pages (created from the master template file) to have additional code added...But I need to have the template file flexable so I have the choice to add/edit it at a later date (in case I need extra funtionality etc). But of course I just cannot do this.

Are there any other solutions? I have purchased Webassist Framework. Would I need to create a template (without any php related coded) then create seperate php plugins (such as a plugin to dispaly a login box, a plugin to show a dynamic list) etc and then add those plugins to the template? But If I do this...I am worried the effect of this approach will have, because wouldnt there be many instances of "<?php require_once('../Connections/database.php'); ?>" ?which surely would be bad programming practice? Also If I use Webassist Framework, I have noticed that in some part it takes awat from me the WYSIWYG approach to web design? the CSS links are in the master template file and the file im working on doesnt recongise any of that UNTIL I go to view in the main browser?

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

try converting the Dreamweaver template to a Framework builder theme, this should correct the issue you are having.

Sign in to reply to this post

Christopher WestCommunity Expert

will test more the framebuilder theme concept - its just that when i first tried framebuilder I was a little unearth with how its seperates the main content area I had in the document, - a personal preference is to design using dreamweaver design view as thats what im used to. I do like the plugin concept though.

do you think that framework builder will solve the issue of using 2 DataAssit Repeat Selections on same page? as thats what im more concerned with at the moment.

Sign in to reply to this post

Jason ByrnesWebAssist

no, that is a seperate issue, we will look into that issue with you over the phone.

Sign in to reply to this post

Christopher WestCommunity Expert

ok thank you - very much appriciate your time on this.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...