logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 08-09-2010, 11:16 AM   #1
Abbica
 
Join Date: Aug 2010
Posts: 98
Default Spry tabs in a template

Hi, I have created a site with numerous templates, the body of which is an editable region, the rest not. I went to insert my tabbed Panel in the template page and it said, "you can not insert this widget into an editable region. Please insert the widget in a locked region and create editable regions inside the widget". Does anyone know how I insert tabbed, accordian, etc widgets into a template with only the body editable.

I even detatched a new page from the template, inserted the tabbed panel and saved it but I need this large tabbed table on 9 different pages, and I tried even to attach the style .css and .js page and it came over all over the place, no order. Is there a clear way of having a widget in templage?
All I seem to get when I go to update the template page is inconsistent region names, "some regions in this document have no corresponding regions in the new template. Document Body <not resolved> Document head <not resolved>. I don't understand this?
Any help with this would be much appreciated as I am going crazy trying to figure this out.
Abbica is offline   Reply With Quote
Old 08-09-2010, 02:35 PM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

It sounds like you're doing something wrong either when creating the templates or when creating new pages based upon the templates. What procedure do you use.

When you create a page based upon a template you always want to use the menu: File>New… option. NEVER use the menu:File>Save As… option to create a page from a template.

One reason you might be unable to insert a Spry object is if you don't have an editable region in the head of your document (which is needed to insert the links to the Spry CSS and JS files.

If you created the template correctly Dreamweaver should have automatically inserted this code in the head of the document:

Code:
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 08-09-2010, 02:45 PM   #3
Abbica
 
Join Date: Aug 2010
Posts: 98
Default

Hi, I have it set up properly, I think, but because everything is non-editable bar the body of the page, it wont let me insert widgets.
I eventually found this piece of advice on google and this seems to have fixed my problem, although I have to create a new page from the Template everytime I may change the template.
Once I open the template page, I detach it from my template, insert my tabbed widget table and save as, then do this for the other territories. So I copy that code from the spry tabbed panel, then copy and paste the code into code view where you want it to go,
Then you must link to the files in the Spry Assets folder manually.
Go to your CSS Styles panel, go to the top right drop down arrow, selecting the 'Attach style sheet'.
The script link can be made using Insert > HTML > Script Objects > Script. The easiest way to include the JavaScript function call from the bottom of the page is to copy those lines of code into the code on your new page.
It works, but it is seriously the only way for this to work for me and it does work, which is the main thing. Now I can use this method for my Q&A collapsible panel section which is great. If you can find an easier way, as in, keeping it attached to the template, I would be very grateful. Thanks for the advice.
Abbica is offline   Reply With Quote
Old 08-09-2010, 03:01 PM   #4
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

Glad you got it working. All I know is that Dreamweaver does allow you to insert tabbed panels into editable regions of pages based upon templates without all those extra steps. so you're doing something incorrectly. If you post a page made from the template which is still attached to the template and give us a link, I'll take a look.
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 08-09-2010, 03:18 PM   #5
Abbica
 
Join Date: Aug 2010
Posts: 98
Default

I don't know how to do that, I have it on our own network here??

The thing is, even if I place a spry tabbed panel into the editable region that works fine but when I go to copy and paste it into my other country territory templates, and try to attach the style sheet, it says, "a request to create a new Style, link or import failed. If you are working with an instance of a template, make certain that there is an editable region with the Head tag. So, what does that mean, how do I do this, because it is only the body of my text I want editable, the rest stays stagnent?
Abbica is offline   Reply With Quote
Old 08-09-2010, 04:26 PM   #6
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

This is possibly one of the drawbacks with templates. If you are feeling brave then SSI (php includes) might be better for you; http://www.dreamweaverclub.com/php-includes.php
Corrosive is offline   Reply With Quote
Old 08-10-2010, 08:17 AM   #7
Abbica
 
Join Date: Aug 2010
Posts: 98
Default

Thanks Corrosive, at least I know there is nothing else I can do with this except for this php include which does sound great but read that link there and I am in a panic already, I am self teaching myself this stuff so coding etc., definitely not my strong point, more of a design view worker but will get there in the end.

So, are you saying with this php include that I can create a tabbed table (huge amount of info on it) on a seperate page and link this to all my other pages to be placed where I want it to appear on my template page?
Abbica is offline   Reply With Quote
Old 08-10-2010, 10:04 AM   #8
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

I wouldn't say there is nothing else you can do as some persistance with templates usually works out. I just find includes is a much more economical way of doing the same job. Particularly where you make a change and only have to upload one file rather all the pages again.

You seem to have grasped the concept fine though. Maybe have a practice with it and see how you get on.
Corrosive is offline   Reply With Quote
Old 08-10-2010, 10:51 PM   #9
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

if you do use an include for the tabbed panel remember you'll still need to link the page to the Spry CSS and JavaScript files and include the "activator" script in the page code.
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 09-01-2010, 09:04 AM   #10
Finland Blue
Finland Blue's Avatar
 
Join Date: Mar 2005
Posts: 143
Default

I am having the exact same problem. I have a main template, which has everything uneditable except for the main content area. When adding a spry tabbed panel to that main content area of one of the pages which is attached to the template it says :

"Required links could not be added to this file because the <head> tag is in a locked region. To insert this content, open the template file and either unlock the <head> tag, or add this content to the template."

I don't want to unlock the whole head area, but just the parts with the spry script - will this be enough - and is it possible to do this (I could not manage it)?

I don't want to have the tabbed panel appear on every page ...

... there must be an easy way to do this, surely?
Finland Blue is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com