Adobe Contribute/Dreamweaver Templates
I have a problem I am hoping someone can help me with. Using Dreamwevaer I created templates that use PHP includes. They work as expected under Dreamweaver and for some Contribute users but I have a few users that everytime they create a new page the entire content of the included file is embeded in the page rather than just the PHP include code. As you can imagine, this breaks the template concept on that particular page because updating the include no longer updates the page. Any help would be very much appreciated!
In case it helps someone else. I found a solution to this. If you call the include statement using an eval() statement it corrects the problem. For example:
eval(include($_SERVER['DOCUMENT_ROOT']."/path_to_include_file.php"));
Similar Messages
-
Non-Dreamweaver templates for Contribute
Are there any guidelines anywhere for creating the equivalent
of Contribute editable/non-editable templates for sections of HTML
pages which were not created by Dreamweaver; for example,
guidelines on the use of <!-- begineditable--> etc.?Ian,
The Dreamweaver template system works from the standpoint of
a "deny all, allow some" mentality.
Initially a Dreamweaver template file allows no editing to
any sections. When modifying the template in Dreamweaver or any
other text editor, the addition of the begin/end editable pairs
enables the editing of any content existing within the tag pair.
If you want to create a template for use with Contribute
outside of Dreamweaver just create the file with any editable
sections you desire then change the file extension to .dwt and
place it in the "Templates" directory on your CPS managed
webserver. Any files in the "Templates" directory that end with
".dwt" will be loaded on the next startup of the Contribute client.
By default the Publisher and Writer roles allow access to all
templates in the "Templates" directory via the Contribute client.
Also, make sure that the "whatever" text mentioned by Murray
is unique to each individual editable region.
Please note that the Contribute/Dreamweaver template
interaction is *not* a run-time template system. Dreamweaver
templates are design-time templates. If you have sections of the
template that change later then those changes will need to be
applied on a page-by-page basis to each page using a given
template. This functionality is automatically handled within the
Macromedia workflow by using Dreamweaver to download the entire
site then having it update all pages that are based on a given
template.
The piece of the code that denotes which template is assigned
to a given page is as follows:
<!-- InstanceBegin template="/Templates/level2.dwt"
codeOutsideHTMLIsLocked="false" -->
with an acompanying closing tag of:
<!-- InstanceEnd -->
The "InstanceBegin" tag should follow the opening html tag
and the "InstanceEnd" tag should precede the closing html tag.
The important piece of the "InstanceBegin" tag is the value
of the "template" attribute. This needs to be the path to the
specific template file relative to the webroot on the server.
Hope this helps. -
Making a Template for Adobe Contribute - without Dreamweaver
Given the task of making a web page that must exhibit regions editable with Adobe Contribute CS5, and having only a plain text editor (not Dreamweaver), exactly what needs to be done to the associated XHTML file? For example:
1. Does the XHTML file need to be named with an extension other than ".html"?
2. When denoting an editable region within the XHTML, what is the exact syntax of the "begin editable" and "end editable" tags?
3. Is a CSS file referenced within the XHTML in the typical fashion, or must something special be done to reference a CSS file?
Are there other changes that need to be made to an XHTML file in order for it to work properly with Adobe Cintribute CS5?
Thank you in advance for your helpful responses.
*** Please note that this question was posted earlier; perhaps errantly, in the Contribute forum.Template_Maker wrote:
Given the task of making a web page that must exhibit regions editable with Adobe Contribute CS5, and having only a plain text editor (not Dreamweaver), exactly what needs to be done to the associated XHTML file? For example:
1. Does the XHTML file need to be named with an extension other than ".html"?
The 'child' page can be named with any extension.
2. When denoting an editable region within the XHTML, what is the exact syntax of the "begin editable" and "end editable" tags?
<!-- InstanceBeginEditable name="editable_region_name" -->
<!-- InstanceEndEditable -->
3. Is a CSS file referenced within the XHTML in the typical fashion, or must something special be done to reference a CSS file?
It's all just HTML - and needs to work properly on the server. Nothing special needs to be done.
Are there other changes that need to be made to an XHTML file in order for it to work properly with Adobe Cintribute CS5?
No.
I assume your client IS using Contribute.
But - a word of skepticism. This sounds like a project bound to fail. I know templates like the back of my hand (liver spots and all) and would hesitate to take it on.... -
Opening a dreamweaver template in Contribute
I am trying to open a template I have created in Dreamweaver
with Contribute to test it out. However, when I try to open the DWT
file in Contribute, it gives me "Contribute cannot edit this type
of file" message. What am I doing wrong?Yep - can't do dat.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Nancy" <[email protected]> wrote in message
news:fno03p$oue$[email protected]..
> Nothing. AFAIK, you can't edit the template itself with
Contribute. The
> template must be edited in Dreamweaver. You can create
pages based on a
> Dreamweaver template and you can edit the editable
regions of said page ..
> but I don't believe you can edit the template itself
with Contribute ..
> nor should you be able to. Kind of defeats the purpose,
IMO.
>
>
> --
> Nancy Gill
> Adobe Community Expert
> Author: Dreamweaver 8 e-book for the DMX Zone
> Co-Author: Dreamweaver MX: Instant Troubleshooter
(August, 2003)
> Technical Editor: Dreamweaver CS3: The Missing Manual,
> DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
> Mastering Macromedia Contribute
> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced
PHP Web
> Development
>
> "alexmel7" <[email protected]> wrote in
message
> news:fnnvoe$og2$[email protected]..
>>I am trying to open a template I have created in
Dreamweaver with
>>Contribute to
>> test it out. However, when I try to open the DWT
file in Contribute, it
>> gives
>> me "Contribute cannot edit this type of file"
message. What am I doing
>> wrong?
>>
>
> -
Dreamweaver template not updating Contribute pages
Currently I'm trialing Dreamweaver (MX) and Contribute
(3.11), to check
that it's a workable solution for my company, in terms of
editing and
auditing, but right now I'm having a problem.
I have some templates (.dwt files) that I create in
Dreamweaver, for
use with Contribute, i.e. I create the template, other people
create
the content for our site based on the those templates.
The issue is that when I make a change to the template, I
would expect
the pages created in Contribute to be refreshed to use the
new
template, but that doesn't appear to be happening. The only
way I can
get the page to be updated is to edit the page in Contribute,
go to the
Format menu and choose 'Template Properties', then hit OK
again to
close this dialog. I then see the page refresh with the new
template
changes.
Am I doing something wrong? I would expect, as I mentioned,
to have all
pages automatically updated when the template is saved, and
published.
Is there a setting I need to turn on, or a procedure of
publishing the
template that I need to adhere to?
any advice would be appreciated.Thanks for the reply Mark. While I think I've found most of
the things you mentioned since my first post, it is useful to get
confirmation of my finding, which appears to be consistent with
your post.
Here's what I've found, and later, why I'm not really liking
it:
If I edit the .dwt file in Dreamweaver and try to save it, I'm
prompted to only update those files I have locally that reference
the template.
I can only update those local files that are checked out,
though the saving process will check them out automatically
If I create a new page using Contribute, I must refresh the
templates first
My concerns are:
if I can only update those files I have locally, then do I need
to have the whole remote site stored locally too? My company site
is huge (as it's translated into 6 languages) and has multiple
contributors/editors. It sounds like I will have to download the
entire site before I edit a template, and put it back again
afterwards. Is that right?? it sounds rediculous, so I'm sure I've
got it wrong.
if I have the files locally, I must check them out before or
while saving the template. However, I then have to check them back
in manually. Again, with potentially 300 to 400 pages per template,
that's a lot of manual checking-in. If the saving process can
automatically check pages out, can it also automatically check them
in again??
Like you, Mark, I find it strange that Contribute requires a
manual refreshing of templates. I've searched all the options I can
find, but I don't see an auto-refresh templates setting, which
would be sooo useful. As it stands I will have to instruct each
editor/contributor to refresh before they create a new page, and
pray that they do.
any further advice from Contribute/Dreamweaver users would be
greatly appreciated. How do users with very large website handle
this? Are there any tricks or hints that you can pass on? -
when you download an adobe template you get the Design files which is where you find the PSD files
You also get the publish folder which is where you find your images, your css, spry assets, and you also get 3 templates
Ones of those templates is design from template. html
another template design html
and then another template which is the dreamweaver dwt template
which one of those three templates is the one that I have to use.
They confuse me .A file that ends in the extension .dwt is a dreamweaver template.
You can make any .html page into a Dreamweaver template. Simply go to File>Save as Template…
Dreamweaver will create a /Templates folder where you have defined your website locally and place the template there.
Dreamweaver will not allow you to save a template without editable regions. The way you create an editable region in a dreamweaver template is to select an area in design view and select Insert>Template Objects>Editable Region. A window will come up asking you to name the region and you should give the area a good name that you'll understand.
Dreamweaver will insert code necessary to manage the template.
Dreamweaver will allow you to nest templates. Don't do that.
Dreamweaver templates allow you to create areas that are updated automatically on your website (like navigation, for instance) all throughout your website whenever you make a change to your template. The only other way to do this is to use server side includes. Dreamweaver templates make website creation, extension and management a snap.
So, when you design a page for a website, make that page into a template, define the areas you want to be able to change on every page as editable regions and let Dreamweaver do the heavy lifting whenever you need to change something site-wide. -
Edit Responsive Design template using Adobe Contribute
Hi,
I am creating a website which is based on responsive design layout. I am using HTML5 and CSS3 for the framework.
It has 5 static pages e.g. "About US", "FAQ", "Contact US"
My customer wants to edit the content of the page using Adobe Contribute. E.g. want to edit the content in about us or Contact Us.
Now whenever we edit content using Contribute, it sometimes adds styles or <p> tags.
Please advise if we establish the website server in Contribute, can the text will be editable using Contribute CS5?
If yes, what will be its pros & cons?
Thank you
Monica MandalWhile designing Responsive layout we have three css frameworks: Skeleton, Bootstrap and Foundation.
If we are creating CMS Responsive layout (where user can edit using Contribute), is there any way to decide which CSS framework is more preferable for Contribute?
Use whichever stylesheets best support your project goals.
See Using Contribute Tutorials
http://help.adobe.com/en_US/contribute/using/index.html
Contribute Community Forums
http://forums.adobe.com/community/contribute
Nancy O. -
Dreamweaver Templates and Include files
Hi,
I am using dreamweaver templates so that my users can create
new pages on our Intranet using Contribute.
When I create a template and try and use an inculde file for
the menu systems I get an error. I am trying to use the following
code to inculde the asp file:
<!--#include file="/includes/menu.asp" -->
And I get the following error when saving the template:
Unbalanced body tag
I have checked and I definetly have opening and closing body
tags in the HTML. So I am wondering whether the error is caused by
the fact that the file is a dwt and not as asp.
So, is there anyway of using include files in a dreamweaver
template?
Thanks in advance for any help.That's the wrong syntax for a file include. It should be
either of these -
<!--#include virtual="/includes/menu.asp" -->
or
<!--#include file="includes/menu.asp" -->
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Alan" <[email protected]> wrote in
message
news:C568040E.31895D%[email protected]..
>
>
>> <!--#include file="/includes/menu.asp" -->
>>
>> And I get the following error when saving the
template:
>>
>> Unbalanced body tag
>>
>> I have checked and I definetly have opening and
closing body tags in the
>> HTML.
>
> Is the include file JUST the html that would be correct
syntax for where
> it
> is used in the main file?
>
> In other words- included files should not be complete
html docs with their
> own head and body tags. That would result in multiple
head and body tags
> in
> the assembled files.
>
>
> --
> Alan
> Adobe Community Expert, dreamweaver
>
>
http://www.adobe.com/communities/experts/
>
>
> -
Adobe contribute was recommended to me...
How do you like adobe contribute to design and manage
websites? Can I add sounds and music loops to pages with this
products?
ThanksMarje,
Thanks for your response. Your work sounds exactly what I'm
looking to do, if I'm understanding you correctly.
I'm doing a website for a funeral home client. They're
looking for a basic site but wish to include an obituary page and a
condolensces page. The secretary will need to be able to cut &
paste the obits into a template and publish the changes herself.
Can I design the site as I normally would in Dreamweaver. Do
I need to do any design work specific to Contribute? Can the stie
be published from their location and then can the secretary use
Contribute for her regular obit updates?
Thanks so much! -
Edit First line in dreamweaver templates
Hello,
When I create a page from a Dreamweaver template, a
dreamweaver comment similar to the one below will be inserted:
<!-- #BeginTemplate "/Templates/test.dwt" -->
Each time I edit a page to add php code in the very first
line, it is removed with every template update and the source code
again starts with the dreamweaver comment. I need to add to all my
pages a php code in the very first line like this one:
<? $ob_start; $session_start; ?>
How can I do that without removing the code from my pages
with each template update. Another problem is that I can't insert a
placeholder in the very first line of a dreamweaver template. Above
that the first line is locked in dreamweaver, so that I can't
change it manually. Is there any workaround available?
Thanks,
Philip> How can I do that without removing the code from my
pages with each
> template
> update. Another problem is that I can't insert a
placeholder in the very
> first
> line of a dreamweaver template. Above that the first
line is locked in
> dreamweaver, so that I can't change it manually. Is
there any workaround
> available?
Put the code ABOVE the <html> tag.
Which DW are you using? It looks like DW4 or earlier....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"flip3" <[email protected]> wrote in message
news:ec40u0$mr3$[email protected]..
> Hello,
>
> When I create a page from a Dreamweaver template, a
dreamweaver comment
> similar to the one below will be inserted:
>
> <!-- #BeginTemplate "/Templates/test.dwt" -->
>
> Each time I edit a page to add php code in the very
first line, it is
> removed
> with every template update and the source code again
starts with the
> dreamweaver comment. I need to add to all my pages a php
code in the very
> first
> line like this one:
>
> <? $ob_start; $session_start; ?>
>
> How can I do that without removing the code from my
pages with each
> template
> update. Another problem is that I can't insert a
placeholder in the very
> first
> line of a dreamweaver template. Above that the first
line is locked in
> dreamweaver, so that I can't change it manually. Is
there any workaround
> available?
>
> Thanks,
>
> Philip
> -
Flash banner in a Dreamweaver Template
Hi all,
I am using one of the provided Dreamweaver Templates (CSS).
All is fine, except that for some reason it does not like Flash
imports. I can alter the template as much as I like and it will
always successfully change across the site, BUT if I try to insert
a Flash movie/banner into the template - then it does not appear of
ANY of the site files. The only way I can see the flash banner, is
if I open the template.php file in a browser - then you can see
that it is in fact there and working - but for some reason the
other pages refuse to acknolwegde it. Images / Tables / Text - all
work fine - just not flash banners. I even tried saving the banner
as a JPG file in Flash, then sticking the JPG file in the template
where the banner should - and it worked perfectly, but as a .swf
extension it fails.
Am I missing something?
Nathan> BUT if I try to insert a Flash movie/banner into the
template - then it
> does not appear of ANY of the site files.
Because of the active content .js fix, when you insert a .swf
file into a
template, you must use a Site Root relative path for it.
Open the .dwt template file.
Double-click on the .swf in design view- the "browse to file"
dialog box
should come up showing the currently selected file.
look in the bottom of that dialog box for the pulldown to
change from
document relative path to site root relative path. Change it
to site root.
click okay and save the file, and let changes propagate.
does it show in the child files now?
[note- It may still not show during local preview because
site root relative
paths in javascript will not make any sense during local
preview- they
should work fine on the remote host if the site has it's own
domain name
though]
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Dreamweaver Templates with Web Gallery
I have built a site in dreamweaver CS4 I have used a Dreamweaver Template for my pages. Rather than clog my pages up with images I used Adobe Bridge to create a web gallery, It created a gallery ok and I saved it to my hard drive. It created two items, a resourses folder and an "index" file. So I I copied and pasted the two items into my Dreamweaver folder I created and called SS_Bridge. I pointed a link I created to point to the "index" file within the SS_Bridge Folder in Dreamweaver, Will this create a problem as there will be two "Index" files within my site
jjrutterThe "home" page index file would be at the root level of the site. Other folders within the root can all have their own index (default) files.
-
NEW! Free Dreamweaver templates WITH Fireworks vector files
I just released some free Dreamweaver templates that include
not only the Dreamweaver template dwt file, but also the original
pre-sliced Fireworks file with all the template graphics.
The templates include the dwt, Fireworks file, pure CSS
menus, are AdSense-ready, XHTML 1.0 valid and are very customizable
through both the Fireworks file and the CSS.
If you use one, let me know so I can get a screenshot and
post a link to your site showing how the templates have been
customized by various designers.
Cheers!
BroditCan you post a link to the PHP page, please? This will allow
me to see the
HTML markup on it....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Mr Zedd" <[email protected]> wrote in
message
news:eviqn8$ntm$[email protected]..
> Hello everyone,
>
> I have been given an exisiting website to update that
uses Dreamweaver
> templates.
>
> I have made the changes successfully within the
content.dwt file, saved
> it,
> and then uploaded both the new content.dwt file and the
related *.htm
> pages
> that were linked to it.
>
> After going to the website to double check the new pages
I found a *.php
> file
> that uses the same template, content.dwt, but it never
asked to update
> that
> particular file.
>
> So, I opened the *.php file in Dreamweaver and tried to
apply changes from
> the
> content.dwt file to it using: Templates - Update current
page, but no such
> luck. Since there is no code at the start of this file
like the other
> *.htm
> files how do I "connect" it with the newly updated
template. I tried
> making a
> small change on the content.dwt file so see what files
would come up in
> the "do
> you wish to update..." list but for some reason the
*.php file is not
> there.
>
> Perhaps the answer is fairly obvious to someone who has
worked with
> Templates
> a lot but since I have just started working with
templates I still have a
> large
> knowledge gap in this area.
>
> Any help would be appreciated.
>
> Many thanks
>
> Mr Zedd
> -
Designing Dreamweaver templates (was:Info.)
hey again. i have a question. and i am wondering. if its true. could a designer or photogrpaher make a template and have it used in his or her web site? if so. how? i heard you can do this in either of the two programs. photo shop and illustrator. see i am now a member of bc partner. but i am wanting to learn the in between lines. of web site making. see i have started a web site in the past. using dreamweaver, and now i am using muse. but again i am starting from scratch. right now i am using a current site called wix.com. heres my current web site.
1. wix= http://brian-ford.wix.com/photographerexplorer
2. web site in progress using adobe muse. http://bf-photographer01.businesscatalyst.com
3. heres is wix.com it self. you can see how they have this site designed. and with it they have thumbnails of web site templates. that are editable. http://www.wix.com/html5webbuilder/400?utm_campaign=vir_wixad_live
how is that possiable? all i have learnd as a photo student. was design a web site from scratch. besides adding a background image. i have lerned code bfore. and i can laern more. so what is it that i can do?
so how to desing a template? and make it into a image? that someone/client. can tap on it. and edit it. as what they want.Hi bford 225,
Not sure if this is what you are looking for, but for what it is worth:
http://webdesign.about.com/od/dreamweaverhowtos/ig/Create-a-Dreamweaver-Template/
Thanks,
Preran -
Dreamweaver template / having trouble seeing the previews
I am designing a website, using Dreamweaver for the first
time, and I would like to ask your advice.
Do you know how to apply a dreamweaver template to other html
pages. I have having trouble seeing the previews in the local
browser. For examples, when I preview an html page, that has the
template included, I see the page OK. But when I click to go to
another page with the sample template, the new page shows up, but
without the template design included.Answered mutliple times on the DW forum.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"happydreamweaver" <[email protected]> wrote
in message
news:fin6nr$5q1$[email protected]..
> How can I apply a template to new pages? I have done the
following:
> Apply the template to the pages as follows:1 Select File
> Open.
> 2 Browse to and select index.html.
> 3 Select Modify > Templates > Apply Template to
Page.
> 4 Type the title of the page in the Banner Editable
Region. Type or insert
> text in the Body Editable Region.
> 5 Select File > Save.
>
> Then when I preview the broswer, I see the html page as
I should, put when
> I
> click to a new page, the new new doesn't have the
template.
>
> Also, when I went to apply the template to a new page, a
message said that
> I
> had orphaned stuff. What does that mean and how can I
get the template
> show
> apply without the hassle.
>
Maybe you are looking for
-
How to set the size of SUM()/SUM() of NUMBER Tyep?
I met the oracle truncation error when I post the SUM(a field)/SUM(b field), a and b field are NUMBER Type From the OCI Doc, Numbers with up to 38 digits precision. and I set the size of data buffer 41 for NUMBER TYPE. (for example) rc = OCIDefineByP
-
How do i know if i am using leopard or snow leopard?
This might sound like a really stupid question, but i am completely new to mac's. so i need a little help. i have the snow leopard disc, but it is still sealed and just wanted to know if there is a quick way to check if i am running on snow leopard o
-
System error in program SAPLRRK0
Hi All, Every day morning when I execute a query iam getting these messages SQL Error: 768- System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01- but after some time when i execute the same query its running fine. Iam getting this every day mo
-
Q: How to disable cache for a single portlet ?
Due to performance reasons I need to set the full page cache. But I have just one custom portlet on the home tab page which will count the logins. But the cache will prevent this portlet from getting the right value out of the DB. It would be pretty
-
Cannot Connect to DB2/AS400 Database
I have tried to connect using JDBC connection drivers to an AS/400 DB2 database (R5V4) in Topology. I was using the IBM Toolbax for Java and Hit JDBC/400 drivers without success. I am putting in the Host Name and Library with no other property. We do