Making javascript partially editable in template
Hello,
I have a template with a bunch of javascript and I want to define just part of it as an editable region. No matter what my selection is, however, when I select Insert -> Template Objects -> Editable Region, it will make all the javascript (in <head>) editable. If I move the editable region tags by hand, I get an error.
Is this the expected behavior? Is there any way to make just part of the javascript editable?
Thanks.
Is this the expected behavior?
Yes.
Is there any way to make just part of the javascript editable?
No. It's all or nothing. Everything between the <script> tags is considered a single entity. You can't break it apart with Editable regions.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com
Similar Messages
-
Having trouble making background image editable in template
Hello this is my first time so here goes...
I would like to make a template from a page I have created,
the trouble is the background image is url background image placed
in css with text over the image, the problem I have is on further
pages I would like to keep same divs
but would like the freedom to change text and bground image.
I have tried to make text an editable region which works and
bground image make attribute editable but I do not really
understand how this works any ideas would be much appreciated here
is my site address
http://www.andysite.prohost4u.co.uk
cheersI'm confused, I dont see that you have a background image in
your css.
"WILLO THE WISP" <[email protected]> wrote
in message
news:[email protected]...
>
Hello this is my first time so here goes...
> I would like to make a template from a page I have
created, the trouble is
> the
> background image is url background image placed in css
with text over the
> image, the problem I have is on further pages I would
like to keep same
> divs
> but would like the freedom to change text and bground
image. I have tried
> to
> make text an editable region which works and bground
image make attribute
> editable but I do not really understand how this works
any ideas would be
> much
> appreciated here is my site address
http://www.andysite.prohost4u.co.uk
> cheers
>
>
> Here is my css
> * {
> margin : 0 auto;
> padding : 0;
> }
> body {
> background-color : #ffffff;
> text-align : center;
> font-family : "Square721 BT", "Staccato222 BT", Courier;
> font-size : 100%;
> background-position : center center;
> }
> #container {
> font-family : "Square721 BT", "Staccato222 BT", Courier;
> background-color : #ffffff;
> width : 780px;
> }
> #header {
> width : 780px;
> height : 280px;
> margin-top : 10px;
> margin-bottom : 10px;
> }
> #content {
> background-image: url(images/content_bground.gif);
> float: left;
> height: 400px;
> width: 430px;
> }
> #content h1 {
> font-size : 115%;
> width : 390px;
> color : #00ccff;
> text-align : left;
> padding-left : 60px;
> padding-top : 40px;
> padding-bottom : 10px;
> }
> #content p {
> font-size : 80%;
> width : 310px;
> text-align : justify;
> text-indent : 20px;
> color : #66FFFF;
> }
> #content h2 {
> font-size : 80%;
> width : 420px;
> color : #00ccff;
> text-align : left;
> padding-left : 60px;
> height : 70px;
> padding-top : 10px;
> }
> #sidebar {
> background-image : url(images/sidebar_bground.gif);
> width : 340px;
> height : 400px;
> float : right;
> }
> #sidebar ul {
> font-size : 60%;
> line-height : 22px;
> list-style-image : url(images/bullet.gif);
> list-style-position : outside;
> text-align : left;
> color : #66FFFF;
> padding-top : 45px;
> padding-left : 62px;
> }
>
> #clear {
> clear : both;
> }
> #footer {
> background-image : url(images/footer_bground.gif);
> width : 780px;
> height : 80px;
> margin-bottom : 10px;
> margin-top : 10px;
> position: fixed;
> }
> #footer p {
> text-align : center;
> font-size : 75%;
> color : #66ffff;
> padding-top : 24px;
> }
> #footer ul {
> margin : 2px;
> }
> #footer li {
> display : inline;
> margin : 0;
> }
> #footer a:link, #footer a:visited {
> color : #00ccff;
> margin : 2px;
> }
> #footer a:hover, #footer a:active {
> color : #00FFFF;
> text-decoration : none;
> background-color : #33cccc;
> }
> a:link {
> color : #00ccff;
> text-decoration : none;
> }
>
> a:visited {
> text-decoration : none;
> color: #00CCFF;
> }
> a:hover {
> text-decoration : underline;
> color: #00FFFF;
> }
> a:active {
> text-decoration : none;
> color: #006699;
> }
> -
Can't make comments editable on template child pages
Is there a way to make comments editable on template child pages. When making editable regions, comments are not included. I need to make comments editable on child pages. How do I do this.
Thank you,
JimOpen your Template.dwt file. Add an editable region around your comments section.
<!-- TemplateBeginEditable name="comments" -->
<p>Comments go inside here...</p>
<p>Comments go inside here...</p>
<!-- TemplateEndEditable -->
Save your template. Allow DW to update your child pages.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Incontext editing and templates
Hi
I´ve been trying to find documentation about the
interaction between ICE and regular Dreamweaver templates without
any success. Is it still possible to edit master templates locally
and change e.g. a menu for a complete site even if some pages has
been edited via the ICE interface online?Hello Simon,
InContext Editing regions can only be applied (on child
pages) on regions that have been marked as editable in the template
– the .dwt page. On the other hand, only the modifications
that are made in Dreamweaver outside the template regions (in the
master .dwt file) are propagated to all child pages. Thus, when a
change is propagated, it won’t interact in any way with the
sections of the page that were modified by InContext Editing.
So, if the menu you want to change is not in an editable
region (in the template .dwt page), everything should work just
fine. The change will propagate to all pages based on that
template, and modifications made via InContext Editing will remain
intact.
Also, as a general rule of thumb, before modifying the master
template, you should make sure to download/"get" the most recent
version of the site from the server. Additionally, if your client
is updating the site via InContext Editing while you are making
changes locally in Dreamweaver, you will overwrite any changes your
client made when you upload the site again.
Please let me know if this answers your question, or if you
need clarification.
We intend to provide a tutorial on working with Dreamweaver
templates in the near future. I will post an announcement in the
forums when this is available.
Best regards,
Corey -
I am a newbie to DW CS3 and have been searching for an answer
in the forum to why I cannot select and edit my Spry navigation
menu now that it resides in the template file. When I go to edit
the template and click on where the Spry bar is, all I get is the
first menu item outlined in blue and no Spry editor in the
Properties menu. What am I missing here?Thanks for the reply Murray. Being new to the forum, I will
not attempt to attach the file/code for you to see.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Research Mannikin</title>
<!-- TemplateEndEditable -->
<link href="../twoColLiqLtHdr.css" rel="stylesheet"
type="text/css" />
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional
comment */
.twoColLiqLtHdr #sidebar1 { padding-top: 30px; }
.twoColLiqLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout
it needs to avoid several bugs */
</style>
<![endif]-->
<script src="../SpryAssets/SpryMenuBar.js"
type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarVertical.css"
rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
</head>
<body class="twoColLiqLtHdr">
<div id="container">
<div id="header">
<table width="637" border="0">
<tr>
<td width="283"><img src="../rmlogo.gif" alt="RM
logo" width="283" height="100" /></td>
<td width="344"><h1 align="right"><span
class="style1">1-800-826-0654</span></h1></td>
</tr>
</table>
<!-- end #header -->
</div>
<div id="sidebar1">
<ul id="MenuBar1" class="MenuBarVertical">
<li><a href="#">Home</a> </li>
<li><a href="#">Online
Store</a></li>
<li><a class="MenuBarItemSubmenu"
href="#">Specials</a>
<ul>
<li><a href="#">Best Buys</a> </li>
<li><a href="#">Custom
Orders</a></li>
</ul>
</li>
<li><a href="#">Shipping
Information</a></li>
<li><a href="#">Request a
Catalog</a></li>
<li><a href="#" class="MenuBarItemSubmenu">About
Us</a>
<ul>
<li><a href="#">History</a></li>
<li><a href="#">Artists</a></li>
</ul>
</li>
<li><a href="#"
class="MenuBarItemSubmenu">Reference</a>
<ul>
<li><a href="#">Information
Sheets</a></li>
<li><a href="#">Paint
Schedules</a></li>
<li><a href="#">Measurement
Charts</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Videos</a></li>
<li><a href="#">Links</a></li>
</ul>
</li>
<li><a href="#"
class="MenuBarItemSubmenu">Contact Us</a>
<ul>
<li><a href="#">Ask the
Expert</a></li>
<li><a href="#">Have mount
photos?</a></li>
<li><a href="#">Contact
Information</a></li>
</ul>
</li>
<li><a href="#">Hunting
Tales</a></li>
</ul>
<!-- end #sidebar1 -->
</div>
<div id="mainContent"><!-- TemplateBeginEditable
name="Body" -->
<h1> Main Content </h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla
fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus,
fermentum id, molestie in, commodo porttitor, felis. Nam blandit
quam ut lacus. Quisque ornare risus quis ligula. Phasellus
tristique purus a augue condimentum adipiscing. Aenean sagittis.
Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,
odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse
potenti. Fusce varius urna id quam. Sed neque mi, varius eget,
tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut
nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu,
pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi,
eleifend sollicitudin, molestie id, varius et, nibh. Donec nec
libero.</p>
<h2>H2 level heading </h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla
fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus,
fermentum id, molestie in, commodo porttitor, felis. Nam blandit
quam ut lacus. Quisque ornare risus quis ligula. Phasellus
tristique purus a augue condimentum adipiscing. Aenean sagittis.
Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,
odio.</p>
<!-- end #mainContent -->
<!-- TemplateEndEditable --></div>
<!-- This clearing element should immediately follow the
#mainContent div in order to force the #container div to contain
all child floats --><br class="clearfloat" />
<div id="footer">
<p align="center">All rights reserved. ©2008
Research Mannikins, Inc.</p>
<!-- end #footer --></div>
<!-- end #container --></div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
{imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html> -
Unable to edit document template in SharePoint 2013
We have uploaded a set of templates that users can select from the drop down list in the Document field in the Document Library. We now need to edit one of these document templates.
We follow the procedure and make the edits which changes the template but when we then select that template from the drop down list, the edits have not been actioned.
Can anyone please assist?Hi,
As I understand, The modification was not saved back to the template.
How do you edit the document template?
Check if the URL of the template is right. You can go to the site setting->site content type->click the content type you want to edit->advanced setting->edit the template->open the template, and click file->to check if the URL under the template is right.
As a workaround, when you edit the template you can save the template in the local computer, and you can upload the template you have saved in the advanced setting for the content type.
The article below is about how to create Document Templates for Document Libraries in SharePoint 2010, it also can work in SharePoint 2013.
http://blog.henryong.com/2007/02/12/how-to-create-document-templates-for-document-libraries/
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
In Pages, In the past, I was able to edit a template and "save a version" to update the template. Now i have to rename the template to save the changes. Why is this happening? what happen to "save a version"? its no longer an option under "file". And I can no longer open the actual template, when template is clicked, it automaticaly opens an "untitled" version???
In your description you say the first document opens as the Title you gave it.
Templates always open as Untitled so it sounds like you have saved a regular document, perhaps into your templates folder which is possible.
Since you have already worked on it and it has been previously saved, Lion will now Save for you and Save a Version is available
The other document does open as Untitled so sounds like a real template and as Peggy has pointed out will not have either Revert nor Save a Version until you Save it and have changed something in it.
This is a classic example of just how Apple's supposedly "simplification" of the process, is leading to confusion of what has happened. That the conditions and resulting actions from those conditions is so convoluted says it all.
It all reminds me of the Monty Python Life of Brian sketch with the "simplified" John Cleese instructions to the class, as to if you have a brother in an older dorm whether to hang your hat and bag on the hooks provided. The trouble is Apple does not get the joke, that it is transforming itself into a frequently self contradictory bumbling bureacracy. The price of unchallenged self appointed geniushood.
The incoherent half baked stumbling juggernaut has reached new triumphs with its edict on enforced Sandboxing on developers when it is unable to follow even its own instructions.
Peter -
Making selective fields editable in adobe form [using web dynpro]
Hi,
I have displayed an adobe form using web dynpro application. But I have to make certain fields (not all fields) on this adobe form editable. I dont want to make this adobe form interactive because I dont have to save any data in database. The data entered in the editable fields will be saved as a pdf.
What I did so far:
1) The fields which I want as editable, I have given there type as "User entered/ optional" & for rest of the fields I have given type as "Read only".
2) In web dynpro, I have enabled the adobe
3) This is not making the fields editable.
4) If I write the following code in my webdynpro method WDDOMODIFYVIEW, then my data coming from adobe is not getting displayed even though the fields get selectively editable.
*data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
*LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
*check first_time = abap_true.
*LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
*LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
*LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
Any inputs regarding this??
Thanks & Regards.Hi,
Like I had mentioned using the following code in my webdynpro method WDDOMODIFYVIEW, my data coming from adobe form was not getting displayed even though the fields get selectively editable.
*data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
*LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
*check first_time = abap_true.
*LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
*LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
*LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
So I kept this code & I also kept the Interface type "ABAP Dictionary based".
Additionally in Webdynpro, I used adobe form generated FM to get the adobe content & passed it to the "content" parameter of my adobe component in webdynpro.
Thanks & Regards. -
How to create editable PDF template for XML Publisher reports
Hi,
I have got a requirement to have some editable fields in one report whose output is in PDF format.
I tried looking and saw this can be done using the XML Publisher report and using PDF template.
But I got only Adobe Acrobat Reader and it does not have the facility to create Form fields.. Can you let me know what software I need in order to create the editable PDF Template.
In the user guide, it didnot mention anything regarding this.
Can I create editable PDF report using RTF template or do i have to got for PDF template only?
Any help is appreciated!
ThanksHi,
To edit PDF template , u need Acrobat writer, which is not free .
I am still wondering what is this ?
"" Can I create editable PDF report using RTF template ?? "".
What is editable PDF report. ?
i think what you tried to mention is ,
can the PDF output from xml publisher is editable ?
If that is the question , so here is some points,
If you have Acrobat Writer or prof.edition, you can edit all the PDF documents irrespective of being from where it is generated.
To make you understand more of XMLP.
You create RTF template in word, so that , after merging with xml you can have multiple output formats like PDF, XLS, EFT,..... -
Editable PDF Template for Proposals etc
I'm a complete newb when it comes to acrobat so let me try and explain what I'm trying to do.
My dad has his own business and he wants to be able to fill out all his proposals, statements and etc online. So what I'm trying to do is create a template based off of his printed proposals and make it so all he has to do is fill out the name, description and amount due. So I need an editable PDF file that he can fill out and then save as a new file (all filled out with the information he put in) that is uneditable, which will be presented to the client.
I tried adding form fields but I couldnt figure out how to save it so it would be uneditable by the client.
Hopefully, I explained that clearly. By the way I have the adobe master suite incase any other programs will help me. Thanks in advanced and sorry for my newbness.Hi,
To edit PDF template , u need Acrobat writer, which is not free .
I am still wondering what is this ?
"" Can I create editable PDF report using RTF template ?? "".
What is editable PDF report. ?
i think what you tried to mention is ,
can the PDF output from xml publisher is editable ?
If that is the question , so here is some points,
If you have Acrobat Writer or prof.edition, you can edit all the PDF documents irrespective of being from where it is generated.
To make you understand more of XMLP.
You create RTF template in word, so that , after merging with xml you can have multiple output formats like PDF, XLS, EFT,..... -
How do you edit the template image that appears at the top only in portrait mode?
I am using a customized version of the iBooks Author template which has the space image. I have replaced the images for the book cover, chapter and section. But I noticed that when you rotate the ipad to view the entire TOC, the original space image is still there. How can I edit the template image that appears at the top of the Table of Contents only when you rotate the ipad in portrait view?
I just tried w/that template - switched to Portrait mode...tapped once to select that image....cut - gone. Switched to Landscape...not there. Back to portrait...still gone.
What process did you use?
Can you repeat your issue with a fresh book? -
How to edit joomla templates in dreamweaver
hi all.
I am working with flex,when i crossed joomla its attracted me lot,they are providing so many templates i want to edit that templates (php)using
dreamweaver and also want to create new templates using dreamweaver.
can any one help to lead me..
please help any suggession...
cheers,
B.venkatesan.Work in Code View only.
Install a local testing server for your system:
WAMP for Windows
http://www.wampserver.com/en/
XAMPP for Windows
http://www.apachefriends.org/en/xampp-windows.html
XAMPP for Mac
http://www.apachefriends.org/en/xampp-macosx.html
MAMP for Mac
http://www.mamp.info/en/downloads/index.html
Setting up a PHP environment in Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
Joomla! Tutorials
http://www.lynda.com/Joomla-1-5-tutorials/creating-and-editing-custom-templates/666-2.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
Do you have to upload all new pages if you edited the template file?
I've edited a template in Dreamweaver and applied all changes to pages that use this template.
Previously, I had been uploading the templates onto my server, but after realizing that uploading the edited template to the web the pages didn't change.
When you edit the template in Dreamweaver shouldn't it automatically pull from the new template when you look at the pages online? OR do you have to upload each new page to your server that used that template?
or in other words..
Does the webpage pull the information from the template in Dreamweaver or from the server?
Thank you.Any pages that have been updated after the template has been updated will need to be uploaded to the server. The pages do not automatically "connect" to the template and reflect it's rendering while on the server - that would require Server Side Includes or a dynamic server-side language (like PHP or ASP .NET) .
-
Editting Joomla Templates in Dreamweaver
I got my site and everything set up in Dreamweaver to my local server, I can view it in live view via index.php and when I go into live code to look at the code for stuff I want to change, then when I go to turn live code off to edit any changes, it brings me right back to the index.php code. I'd like to be able to easily find the files and code I need to edit at any given time since I don't know where most things are located.
This is the template I have
http://www.yootheme.com/demo/joomla/quantumWork in Code View only.
Install a local testing server for your system:
WAMP for Windows
http://www.wampserver.com/en/
XAMPP for Windows
http://www.apachefriends.org/en/xampp-windows.html
XAMPP for Mac
http://www.apachefriends.org/en/xampp-macosx.html
MAMP for Mac
http://www.mamp.info/en/downloads/index.html
Setting up a PHP environment in Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
Joomla! Tutorials
http://www.lynda.com/Joomla-1-5-tutorials/creating-and-editing-custom-templates/666-2.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
I don't have Contribute on my computer but my client does. I
created the site in Dreamweaver. I thought he would be able to edit
a template page because a copy resides on the server. When he tried
to edit the file he gets a message "This file cannot be displayed
in the Contribute web browser." I don't have 'enable Contribute
compaitbility' checked on the site definition because I don't think
there is much work that I will be doning on the site. Can templates
be edited in Contribute? And, if so, what do I need to do to allow
that to happen?Before you update a template file there's a few thinsg that
make the process go smoothly:
1. Ideally have the user publish all draft or new pages.
2. Make sure you have synchronized your local copy of the
website in Dreamweaver with the remote server.
3. Once you've done the synchronize rebuild Dreamweaver's
Site Cache.
4. Update the template file, and allow Dreamweaver to check
out and update all the pages using the template. If feasible you
can check out all the pages that use the template first; there 's
no need to check out the dependent images etc.
5. Do another synchronize, this time putting all the new
local files onto the remote server.
6. Check in all the files that were checked out in step 4.
The Contribute user should get the latest copy of the
template when they start up, but make sure they do not have the
"Don't connect to websites at startup" option checked.
Maybe you are looking for
-
''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/986549 /questions/986549]'' my problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for exampl
-
Won't reset, not recognized by iTunes or computer
Hello, Last week, my iPod was not recognized by my computer or iTunes, so I successfully followed the instructions to Reset, change to Disk Mode, and then restored the iPod (with the latest Updates and newest iTunes version). Now, my songs cut off be
-
Help! I can no longer choose Adobe Media Encoder when trying to Render a Video.
When I try to Render a Video, only the JPG option is available, but I need to render a Quicktime. Most likely related is a new error I receive when launching Photoshop CS6 Extended: "Could not complete your request because of a program error." This d
-
Query Engine Error in Crystal Report
I have a asp application with crystal report as reporting tool. Every thing works fine with Oracle 9i, but when i migrate to Oracle Database 10g Release2 some of the reports in crystal report shows following error report. Query Engine Error:'HY00:[or
-
When searching for emails I would like to adjust the columns in the search results list view, e.g. add the sender's address. This I would like to save as standard columns specifically for the search results list view, since in other contexts I do not