Use CFINCLUDE in a DWT file?

Can I use a CFINCLUDE in a DWT (dreamweaver template) file?
Does it need to be in an editable region?
Many thanks!

If the template is for a cfm page, yes. Otherwise, no.
It shouldn't have to be in an editable region unless you need
to be able to
modify it on individual pages.
Bryan Ashcraft (remove BRAIN to reply)
Web Application Developer
Wright Medical Technology, Inc.
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
"martin beall" <[email protected]> wrote in
message
news:f7jaec$3l1$[email protected]..
> Can I use a CFINCLUDE in a DWT (dreamweaver template)
file?
> Does it need to be in an editable region?
>
> Many thanks!

Similar Messages

  • Problem updating pages that use .dwt file

    So i have 45 files that all use the same .dwt file.  Usually when I make a change to the template and go file > save it asks me if i want to update all pages that use that specific .dwf file.  For some reason it doesn't show the pages that do.  Although if I go to the specific page for example contact.html and do a Modify > Templates > Apply template to page, it applys the changes, and then once i make a change to the .dwt file and do the File > Save, contact.html now appears in the section of files to be updated.  I do not want to go thru every page and manually apply the template does anyone have any information that could help me out? thanks
    G8ofH8

    I do not want to go thru every page and manually apply the template does anyone have any information that could help me out?
    However, that would work.
    It sounds like your site cache has become corrupted.  Try the following -
    1.  Open DW's Site manager, select the site name, and click on EXPORT (make sure you opt to export the FULL site defintion including FTP info)
    2.  Export the site definition to a KNOWN location on your hard drive
    3.  With the site name still selected in Site manager, click REMOVE to remove that site from your list of definitions
    4.  Import the site definition you just exported - that should solve the updating problem
    Does this heal things for you?

  • .HTML and .DWT files in folders have 0kb size

    Hey guys,
    I was just setting up a new client on the system and I have an issue with uploading HTML and DWT files through Dreamweaver.  The files end up on the server but each is a 0kb file.  Here are my steps:
    In Partner Portal I created a new site
    I chose to start with a blank slate/template
    I logged in via Dreamweaver CS5's BC Extension as I normally do and set the local directory of the project
    I was moving a static HTML site over to this site so the design and files were done already. So once the project was setup in DW I selected all the files in the project folder and uploaded them to the remote site via the Files panel in DW.
    The upload completed and did not note any errors or problems.
    I logged into the BC Admin and went to update some URLs of the pages and I noticed the first .html file in a folder had 0kb.
    I noticed that this problem only occurred in files that are uploaded to a folder. IE- I had a folder called "contact" and a file index.html inside.  I uploaded this folder and the rest via the Files panel in DW. I DID NOT create the folders through BC first.  The same thing happens with .DWT files too.  Although, in this case, since I had a "Templates" directory locally and I'm assuming one was created by BC on the remote host when I created the account it's probably not having to do with users creating folders through FTP/Files panel in DW.
    The .html files in the root of the site are fine. All my JS and CSS files in their folders are also fine.  It just seems to be .HTML and .DWT files in folders that have 0kb.
    Has anyone seen this? 
    I have to get this site live in a rush tomorrow so I'm either going to delete the folders via FTP and create all the pages/folder first in BC and copy and paste the code over from DW to BC Admin area manually.  I'm not excited about doing that as it will add hours onto this site when moving a static site over should be pretty quick.  Now I have to create all the pages and templates manually.

    I can now confirm that the problem is related to DW or the DW FTP login session. I used WinSCP to FTP my files up and they went up fine.

  • Trouble using cfincludes with multi-folder structure

    We are rebuilding our site using <cfinclude> to pull in
    standard headers and footers for each page. The headers and footers
    each have many links in them. How can we deal with the fact that
    the pages calling the cfincludes are not all at the same level in
    the folder structure? How can we create one include file for the
    header and one include file for the footer that can each be used
    throughout the site regardless of the level in which the calling
    page is located? Thank you.
    Cheers!
    James

    How can we create one include file for the header and one
    include file for the footer that can each be used throughout the
    site regardless of the level in which the calling page is
    located?
    Create the one header.cfm and the one footer.cfm. Include
    them in Application.cfm/OnRequestEnd.cfm or in Application.cfc.

  • Why use cfinclude

    why use cfincludes for headers and footers instead of using
    templates?

    > However this is what I mean in your
    > words: that facility in DreamWeaver that simulates the
    factoring code out into
    > separate files!
    Right: that makes sense now. Bear in mind that this is a CF
    forum, not a DW
    forum, so when you say "template", people here are going to
    instinctively
    think you mean the CF definition of that term; they're not
    going to guess
    you're asking about DW. I don't think that's unreasonable.
    DW templates are just a trick of DW. That's not just a
    truism: the
    ramification of that is that the DW templating mechanism is
    meaningless
    concept outside of DreamWeaver. That's not to be dismissive,
    but a lot of
    people don't use DreamWeaver for doing their CF coding. So
    that's probably
    the first reason not to use a tool-specific feature when
    writing code.
    Secondly, DW templates are an HTML-document-centric conceit,
    wherein
    there's - ultimately - a single file for the entire HTML
    response. That's
    really not the way anyone other than a dabbler would write
    their CF code,
    because it becomes unmanageable very quickly.
    Now, if you are just a dabbler - I don't mean that derisively
    - and the
    extent of your dynamicism in your HTML coding is to factor
    out repeating
    regions within a layout, AND the code is only ever going to
    be maintained
    with DW... yeah, why not: use DW templates.
    > Thanks for all the replies and I apologize if my vauge
    question encouraged
    > such helpful???? answers. Azadi and Craig, thanks for
    your thoughts...you too
    > Adam!
    NP.
    Adam

  • Footer rising up on page w/.dwt file

    Hello all, I've been having a problem with the footer location when using the templates. I have been working on a site, built a model page which seemed to work well, and then saved it as a template. Header, footer, left sidebar, main content area. On the template, only the main content area was editable. Some of the pages on the site have a *lot* of text (that won’t change). I tried to make one of those using the .dwt file I’d made, and the footer winds up high on the page, cutting across the content area. It lines up right by the bottom of the sidebar.
    Call me old-fashioned, but I’d like to have the footer stay at the bottom of the page, below all of the text (off screen when appropriate).
    When I copy the code from the model page I created (instead of using the template), I don’t have this problem.
    The model page is on-line at http://www.h-france.net/indexNEW.html
    You can see the problem I'm having at http://www.h-france.net/reviewfromtemplateattempt.html
    Thanks in advance for any help/advice.
    -Charles
    (p.s. please ignore my screen name. Adobe had rejected so many that I began to think that the system wasn't processing any and just started hitting letters to see what happened).

    A clear float is exactly that. The float you want to clear is the #ContentWrapper, so if you add/modify the style rule for same as in
    #ContentWrapper {
        float: left;
    all is well

  • Error 550 when using CFFTP to remove a file

    I'm using cfftp to download files which I parse, then I need to delete the file from the server. (coldfusion 11 - development)
    I can list, and download the files fine, but am butting my head into a problem that I can't seem to resolve.
    USING THE SAME PATH AND FILE NAME that allowed me to 'get' the file - When I try to remove the file - I get this error.
    Error: 550 file: No such file or directory .
    (again - the path and file name I provide are identical to the path/filename -
    if this is a permission problem, I can delete files thru Filezilla, using the same credentials - with no problem)
    Here is the call to remove -
        <cfftp  action="remove"
                connection="myConnection1"
                passive="true"
                timeout="360"
                remotefile="#myPath##fileName#"
                item="file" >

    I'm not sure where you got the "This is not what the docs say" part.  Looking down the list of CFFTP attributes in the CF11 docs that apply to a "remove" operation, those were the attributes I would have expected to need.  Although I agree the examples could be clearer and a specific example of removing a file would be useful.
    -Carl V.

  • Using HAL to generate XML files

    Greetings,<BR>I'd like to use HAL to build XML files and feeding certain variables while these files are generated. When the XML file is done being created, it will contain the variables passed. There are over 500 XML required to be build and for each of these files, only 2 or 3 variables must be passed to them. A template of the xml file was created using the Batch scheduler from Hyperion Reports, and this is the file I'd like to use as a template and build a HAL adapter based on that file.<BR><BR>Does any one have a sample of the XML adapter (via screen shot) that I can use a starting guide?<BR><BR>Many thanks in advance for your time.

    Hi,
    I'm running into the same problem deploying the classes generated by the class generator. Code works fine from JDeveloper, but had to put my DTD in the directory where my classes are. Deploying the classes with Apache's JServ gives me a NullPointer exception on the first addNode method. I guess it can't find the DTD. I tried to put the DTD in many locations but this didn't fix the problem. Any suggestions?
    Steve,
    Did you fix this problem? Thanx!
    null

  • I used Target mode to transfer files to a new iMac running Snow Leopard 10.6.8 from an older Dual core Intel machine (EMC 2105) also on 10.6.8. but originally Tiger 10.4. The operation was successful and I ejected the disk icon from the new machine and po

    IS THE SITUATION HOPELESS
    I used Target mode to transfer files to a new i7  iMac running Snow Leopard 10.6.8 from an older Dual core Intel machine (EMC 2105) also on 10.6.8. but originally Tiger 10.4. The operation was successful and I ejected the disk icon from the new machine and powered down the old machine. When this was restarted the next day there was a grey screen with flashing Mac symbol alternating with a 'no entry' sign and occasionally a question mark.Keyboard and mouse were unusable so k inserted the original instal disc (No.1 for 10.4. with installer 1.0.4) which came with the machine in 2006 in an attempt to boot from this. The ensuing window said this was not possible and now it cannot be ejected.I have tried everything ! It offers Disk Utility and other options like Terminal but that doesn't work either.I 'repaired disk' and that was pronounced o.k. None of the various keystrokes at start up will work, and the computer will only offer the installer disc continually.The only option would seem to be is to erase the hard drive completely from the disc in the machine.I don't want to do this as there is still material which I need to recover. I think the drive has in some way been corrupted by using it in target mode, and I don't know if there are any other options to try.
              Please tell me how to get this disc to eject !

    Graham Giles wrote:
    Have you seen this type of problem before? I think it could be a serious issue for anyone in a similar position.
    No; but then, I've not had occasion to use TDM. I've been using firerwire drives for over 10 years, both FW400 and FW800, with no issues except a bit of instability using a B&W G3 machine.
    TDM should be safe. Using cautious, manual copying of files from the Target machine to the Host machine should not result in unexpected loss of files or damage to the Target drive's directories. It should behave exactly the same as if it were an external (to the Host) firewire drive.
    •  I don't suppose there is anything I can do to 'put back' lost items from a separate Time Machine drive which has an up to date backup on it.
    There is probably a way to do that - seems to me that's one of the reasons for a Time Machine volume.
    On the other hand, if the Time Machine volume is rigidly linked to the now-absent OS on the original drive, there may be no way to effectively access the files in the TM archive.
    I know that using a cloned drive would work well in this instance.
    I have no experience with Time Machine, so perhaps someone who has will chime in with suggestions.
    With the machine in TDM with the other machine, have you tried running Disk Utility to see if you can effect repairs to the drive?

  • After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    Numbers is a spreadsheet program and FileMaker is a database program, so you probably can't use Numbers to open them unless you had first exported them from FileMaker in a spreadsheet-compatible format.
    If you upgraded from 10.6 Snow Leopard or earlier and your old copy of FileMaker won't open anymore, it might be a PowerPC application that is not compatible with 10.7 and later. If that is the case, to work with your FileMaker files you should upgrade your copy of FileMaker to the latest version, which seems to be FileMaker 12.

  • Can I use my Nikon D90 AVI files in Premiere Pro CC on my iMac?

    Hi and thanks in advance to anyone who can lend me a hand. I am new to both Premiere Pro CC and Macs. I have used my Nikon D90 AVI files before with Premiere Elements on my PC with no problem, but the same films aren't working on my new setup with Premiere Pro CC and an iMac.
    I can see and preview the films in the Source window but when I try to drag them onto the sequence window I get a little hand with a "no" sign.
    I am using a version 7.1.0 (141) of PP CC and am on OS X 10.9
    Do I need to transcode the files? If so, to what? And what is the best way to do that?
    Many many thanks for any help!

    Just remember, you will not always get the answer you want right away. Some people will point you to tutorials, some, like me, will attempt to help and still point you to tutorials, and some will just answer the question as best they can.
    Some might insult you, and some merely insult your intelligence. Don't be offended. Do, however, search the forums as best you can in an attempt to find the answer before you post.
    I realize that people don't always have the right words to describe the problem, and therefore have trouble searching. If searching fails you, just ask. It generally works out in the long run. And as you have discovered, sometimes a combination of posts may do the trick.

  • My itunes files were deleted. I was able to use an old back up file to restore some but new downloaded purchases from iTunes for the past 5 months weren't in the back up. How do I get those back since I've paid for them one before and use the same account

    My itunes files were deleted. I was able to use an old back up file to restore some but new downloaded purchases from iTunes for the past 5 months weren't in the back up. How do I get those back since I've paid for them one before? Can you redownload? If so, how?? Please help as I'm missing over 500 previously paid for and downloaded iTunes song purchases.

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?

    How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?
    CS 5.0 launches the internet browser.  > TO SLOW I DONT WANT THIS.
    CS 3.0 uses the local help files > I WANT THIS FOR 5.0.

    You're not speaking to the right forum for your request. Help is a Suite-wide feature and here is the forum where the Help application is discussed, and where the proper Adobe people hang out:
    Community Help Application

  • HT201250 I have two external hard drives. One is my Time Machine backup drive.  The other I use for external storage of files (documents, photos, movies, etc).  Can I set Time Machine to backup BOTH my Mac hard drive and my other external hard drive?

    I have two external hard drives. One is my Time Machine backup drive.  The other I use for external storage of files (documents, photos, movies, etc).  Can I set Time Machine to backup BOTH my Mac hard drive and my other external hard drive?

    Yes you can make multiple backups on one hard drive, for example if you’ve 1TB hard drive installed in your PC and you’ve two Mac Machines with 500GB drive each then you just make two backup images with size of 500GB each.
    http://www.halfspot.com/use-your-pc-hard-drive-for-time-machine-backup/

  • How can I email using UTL_SMTP with a csv file as an attachment?

    Dear All,
    It would be great if someone could help me. I am trying to use UTL_SMTP to email with a csv file as attachment. I do get an email with a message but no attachment arrives with it.
    In fact the code used for attaching the csv file gets appended in the message body in the email.
    CREATE OR REPLACE PROCEDURE test_mail
    AS
    SENDER constant VARCHAR2(80) := '[email protected]';
    MAILHOST constant VARCHAR2(80) := 'mailhost.xxxx.ac.uk';
    mail_conn utl_smtp.connection;
    lv_rcpt VARCHAR2(80);
    lv_mesg VARCHAR2(9900);
    lv_subject VARCHAR2(80) := 'First Test Mail';
    lv_brk VARCHAR2(2) := CHR(13)||CHR(10);
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25) ;
    utl_smtp.helo(mail_conn, MAILHOST) ;
    dbms_output.put_line('Sending Email to : ' ||lv_brk||'Suhas Mitra' ) ;
    lv_mesg := 'Date: '||TO_CHAR(sysdate,'dd Mon yy hh24:mi:ss')||lv_brk||
    'From: <'||SENDER||'>'||lv_brk||
    'Subject: '||lv_subject||lv_brk||
    'To: '||'[email protected]'||lv_brk||
    'MIME-Version: 1.0'||lv_brk||
    'Content-type:text/html;charset=iso-8859-1'||lv_brk||
    ' boundary="-----SECBOUND"'||
    ''||lv_brk||
    '-------SECBOUND'||
    'Some Message'
              || lv_brk ||
    '-------SECBOUND'||
              'Content-Type: text/plain;'|| lv_brk ||
              ' name="xxxx.csv"'|| lv_brk ||
              'Content-Transfer_Encoding: 8bit'|| lv_brk ||
              'Content-Disposition: attachment;'|| lv_brk ||
              ' filename="xxxx.csv"'|| lv_brk ||
              lv_brk ||
    'CSV,file,attachement'|| lv_brk ||     -- Content of attachment
    lv_brk||
    '-------SECBOUND' ;
    dbms_output.put_line('lv_mesg : ' || lv_mesg) ;
    utl_smtp.mail(mail_conn, SENDER) ;
    lv_rcpt := '[email protected]';
    utl_smtp.rcpt(mail_conn, lv_rcpt) ;
    utl_smtp.data(mail_conn, lv_mesg) ;
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    NULL ;
    WHEN OTHERS THEN
    dbms_output.put_line('Error Code : ' || SQLCODE) ;
    dbms_output.put_line('Error Message : ' || SQLERRM) ;
    utl_smtp.quit(mail_conn) ;
    END;

    LKBrwn_DBA wrote:
    Use UTL_MAIL instead.That package is an utter disappointment - and an excellent example IMO of how not to design an application programming interface. Even the source code is shoddy.. I mean, having to resort to a GOTO statement....!!?? The person(s) who wrote that package are sorely lacking in even the most basic of programming skills if structured programming is ignored and a spaghetti command used instead.
    No wonder the public interface of that code is equally shabby and thoughtless... The mail demo code posted by Oracle was better written than this "+package+" they now have bundled as the official Mail API.
    I dunno.. if I was in product management there would have been hell to pay over pushing cr@p like that to customers.

Maybe you are looking for