DW Templates for php ssi's etc

I'm having brain fade trying to sort out my server side
links. I tried
a few months ago to do this but ran into trouble.
Now I've read David Powers PHP for DW 8 and have DW 8 The
Missing
manual and maybe everything is in there but I'm still having
problems.
My site currently uses DW templates ( and yes a few nested
ones which
I am trying to eradicate ). I have got a little php in some
pages -
but I have already converted all pages to *.php in readiness,
and my
templates are main.dwt.php etc.
I have set up a folder called "inc" for includes -
I have set up virtual servers using Apache 2.2 and using php
5.2.
Now I have used DW for almost four years and never had
problems with
links before and understand the difference between absolute,
document-relative & root-relative links, and the
advisability of using
DW's tools to ensure links are set up correctly rather than
hand code.
Up until now I have used document relative, but what I have
read
suggests I need to use root- relative, and the virtual
servers to
enable me to review them locally in different browsers.
One of the really useful features of DW is the ability to
move files
from folder to folder etc allowing the program to updates
links.
Now - I'm trying to set up the ssi's - I'm just going around
in
circles getting the links to work.
Am I right in thinking that links in the includes - which are
stored
in www.example.com/inc/ should have root relative links - so
that when
they are imported into other files they point to the correct
place ??
I tried googling for a good tutorial on this scenario but
drawn a
blank so far.
Are there example templates out there ?
Can someone - preferably David Powers - help me clear the fog
that has
enveloped me (:-) maybe it's in the books and I've overlooked
it ?
many thanks
~Malcolm N....
~

If you want to work with DW, you cannot do this. The parent
file must
contain those tags.
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
==================
"Malcolm N_" <[email protected]> wrote in message
news:[email protected]...
> On Sun, 21 Jan 2007 22:47:50 +0100, "(_seb_)"
<[email protected]>
> wrote:
>
>
>>
>>however site root relative links for includes will
only work online, not
>>locally.
>>To gget site root relative links to work locally,
you'll need to setup a
>>'virtual host' on your
>>local server.
>
> Another problem I have -
>
> I put most of the top declarations and header into one
php include
> file, but of course I need to keep the editable doctitle
and title in
> the main file so they can be different in each file -
> that means splitting <head> up.
>
> If I leave the </head> in the main editable file -
DW objects and says
> there is a mismatch of tags - which of course is true -
so do I really
> need another include file just to hold the one
</head> ???
>
> This may explain more - its the original template I
marked up to plan
> what to do.
>
>
> <!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=iso-8859-1" />
> <meta name="Description" content="xxx" />
> <meta name="Keywords" content="xxx"/>
> <link href="../css/main.css" rel="stylesheet"
type="text/css" />
>
> < include head1 end -->
>
> <!-- Editable in each page - so in mmain document
file -->
> <!-- TemplateBeginEditable name="doctitle" -->
> <title>XXX Home Page</title>
> <!-- TemplateEndEditable -->
> <!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
> <!-- mgn -->
> <!-- another include file "head2"- just to hold the
</head> tag ???
> -->
> </head>
> <!-- end of "head2" -->
>
> <!-- and this continues the main documnet file !
-->
> <body>
> <div id="wrapper">
> <div id="top_banner">
> <h1 id="top_banner_text">Top Banner</h1>
> </div>
> <table width="100%" cellpadding="0" cellspacing="0"
>
> <tr>
> <!-- left side navigation menu -->
> <td width="150" valign="top" class="navigation">
> <!-- put this section into a include nav file -->
> <img src="/images/150px_line.gif" alt="spacer150
pixel"
> width="150" height="1" />
> <ul>
> <li><a
href="/index.htm">Home</a></li>
> <li><a
href="/x.php">Bruce</a></li>
> <li><a
href="/y.php">Sheila</a></li>
> <li><a
href="/z.php">Elanor</a></li>
> </ul>
>
> <div id="nav2">
> <!-- TemplateBeginEditable name="nav2" -->
>
> <!-- TemplateEndEditable -->
> <!-- end of nav include file -->
>
> </div>
> </td>
>
> <td width="824" valign="top" ><div
id="main1_div"> <!--
> TemplateBeginEditable name="maintext" --><!--
TemplateEndEditable -->
> </div></td>
> </tr>
> </table>
> <table width="100%" >
> <tr>
> <td><!-- TemplateBeginEditable name="maintext2"
--><!--
> TemplateEndEditable -->
> <table width="100%" class="footertable">
> <tr>
> <td width="29%" class="smalltype">&copy; 2006
</td>
> <td width="47%" align="center"><a
> href="
http://www.example.com/index.php"
> class="smalltype">
http://www.example.com/index.php</a></td>
> <td width="24%"> </td>
> </tr>
> </table></td>
> </tr>
> </table>
> </div>
> <!-- wrapper -->
> </body>
> </html>
>
>
> --
>
> ~Malcolm N....
> ~

Similar Messages

  • How do you input/uplo​ad the templates for Heart Rates, EKG, etc. onto an already existing form of LabView?

    I have LabView 9.0 and I remember last year when I got it I had to go through several steps in order to upload the templates for Heart Rate, EKG, and Blood Pressure.  However, since then, several of my computers have been worked on within the district and the templates are no longer on the main page anymore and I have forgotten the steps to completete to get them back.  Can anyone help me??!!

    What main page are you referring to? Are you referring to the Getting Started window that has the "VI from Template..." link that pulls up a dialog to select the type of file to create? That has a tree node that you can navigate and there's a VI -> From Template -> User node. If you place the template in the <labview>/templates folder then they will show up in this node.

  • Why only 2 templates creating php document

    Hi,
    When I try to create a php page, onbly have 2 templates, why?? dreamweaver has more templates for php, html etc.
    thnks

    With a few minor modifications, you can create any CSS Layout you need from either of those starter CSS pages.  
    Or you can build a custom one with:
    FluidGrid Layouts,
    or jQuery Mobile,
    or any of the freely available Responsive Frameworks online:
    Foundation Zurb- http://foundation.zurb.com/templates.php
    Skeleton Boilerplate - http://www.getskeleton.com/
    Initializr (HTML5 Boilerplate, Responsive or Bootstrap) - http://www.initializr.com/
    DMX Zone's Bootstrap extension for DW - http://www.dmxzone.com/go/21759/dmxzone-bootstrap/
    Project Seven's Page Packs (Commercial CSS Templates) - http://www.projectseven.com/products/templates/index.htm
    Nancy O.

  • Design Template for development a project in WebDynpro

    Hi Guys,
    I want to develop a GRC implemented project using WebDynpro in java.I want to know is there any different template for SRS, design, testing etc ? or I can use standard templets.

    hi Roy,
    u check this link,it's useful
    http://help.sap.com/saphelp_nw04/helpdata/en/35/75d73e8133304fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8433b490-0201-0010-b0ad-f0fabf02038d
    by
    vino

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • Library templates for motion, DVD studio pro, Live type etc

    Hi
    I wanted to ask how I copy (from one computer to another) over the libraries of templates for the suite of programs in Final Cut Studio 2. I no longer have the discs and wanted to ask where in the library and what files I need to carry over to be able to see the templates etc again for these FCP Studio programs.
    Hope you can help.
    Cheers and thanks,

    I no longer have the discs...
    Do you intend to try and use the Migration Assistant to copy the applications?
    If so, it won't work. Final Cut Studio places many files at system level that are vital to its operation. Quite a few are in directories that are normally invisible to the user. These files do not copy across correctly or at all.
    While the media is mostly in the Library/Application Support and Users/Shared directories, many of those invisible system files do not have names that obviously associate themselves with FCS.

  • Illustrator template for App Builder v26 & 27 icons, splashscreens etc.

    Here's a handy Illustrator template for creating all the icons etc. for App Builder v26 and 27.
    Read the instructions in the PDF first, the link to download the template file is inside:http://bit.ly/1b50v0m
    Like this post if you find it usefull

    The template has now been updated for v28. Download link is still the same
    For iOS 7, additional app icon sizes are required: 152x152 (iPad HD), 76x76 (iPad SD), and 120x120 (iPhone). These new icon files are required when you build either a v27 or v28 app in DPS App Builder.

  • Reseting page number in Word RTF template for BI Publisher PDF generation

    Hi!
    Apex 4.0.2, Oracle 10.2.0.4, BIP 10.2
    Bills are created based on Word RTF file with BI Publisher. Reszulting file is one big PDF file, which has many pages.
    Word RTF template is grouped on BILLS.ID field with page break option. So one BILLS.ID may have one or many pages (according data).
    How to create RTF template (for PDF BI Publisher generation) with reseting page numbers when grouping value change.
    Page numbers are in footer in format
    curr_group_page/total_group_pages
    where:
    curr_group_page is current page number in group (defined with BILLS.ID field),
    total_group_pages is total page number of pages in group (defined with BILLS.ID field).
    I need to reset numbering whenever BILLS.ID (group) change.
    Example:
    ID=1 (4 pages)
    1/4, 2/4, 3/4, 4/4
    ID=2 (1 pages)
    1/1
    ID=3 (2 pages)
    1/2, 2/2
    ID=4 (3 pages)
    1/3, 2/3, 3/3
    etc.
    How to achieve that kind of numbering?
    Any help appreciated.
    Regards,
    Damir Vadas
    Edited by: Damir Vadas on May 16, 2011 12:49 PM

    Simple question.. Does your posting deal with an APEX issue or a BI Publisher issue? The posting you have deals with the RTF add-on for Word that builds report layouts for BI Publisher. I suggested in my response that you move it to a more relevant forum..
    If you feel that me alerting you to the fact your are VIOLATING forum policy is an issue, please feel free to ask others their view.. (posting to a 3 year old closed thread, creating MULTIPLE threads for a single issue..) You do NOT seem to get the idea that posting this in the Bi Publisher support forum would probably get you a BETTER response than here.. Asking pl/sql questions here will also get people to refer your questions to the PL/Sql Support forum..
    Also, here is a POSSIBLE answer from the BI Publisher Forum: http://forums.oracle.com/forums/thread.jspa?threadID=594805
    This Is The APEX SUPPORT forum, we deal with SUPPORT questions on APEX (Application Express)..
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How do i set up a template for a double sided 3 hole binder book?

    I am trying to set up a template for a directory using double-sided pages in a loose leaf binder. How do I set up the margins, etc. for both sides of the page accounting for the holes to be punched. I'm at a loss in understanding how this is to be done and then printed so the pages come out in proper order. Can anyone help?

    Inspector > Document > Document Pages > check Facing Pages > Inside: 20mm or .75"
    What do you mean by proper order? If you mean printed back to back, you can print all the odd pages first then feed them back into your printer flipped and print all the even pages.
    To get them to print and come out in the right order you may have to print the evens first and perhaps printed in reverse order, experiment for your printer and take notes.
    Peter

  • Using a single  file as a template for th whole site

    My Application.cfm file has the code that i am using as a
    template for the rest of my site. On the template, the title
    section looks like this. <cfif
    IsDefined('pagetitle')><cfoutput><title>#pagetitle#</title></cfoutput><else><title>Welcom e</title>
    and the title variable is set on the end page. lets just say
    test.cfm but when i view test.cfm the title is always Welcome. How
    can i fix this. and this also goes along with my content. On the
    application.cfm pge i have empty divs. on the test.cfm page i have
    the same divs only with all the page-relevant information in them,
    but they never show up. I know that this is how you do it in php.
    but how do you do it in ColdFusion

    Theres a few things you could do here... none of which I
    think is the perfect solution. It all depends on your preference as
    well as the needs of your application.
    -- Move your page title code to another file - call it
    Header.cfm or something along those lines -- and include it in
    every page after you set the pagetitle variable.
    -- Use Javascript to add the page title to some div at the
    top of the page when it loads. (not my favorite option here)
    -- Check out the CF tag cfsavecontent. You could save the
    generated HTML in test.cfm into a variable and output it later. Put
    your pagetitle code in OnRequestEnd.cfm, which is called AFTER
    every template is executed. Set your pagetitle variable in test.cfm
    and save the HTML into a variable, then in OnRequestEnd.cfm output
    the pagetitle followed by your generated content.

  • I'm looking for a template for making a survey and have the statistics results

    guys, I'm about to launch new business and I want to make a market survey to get to know about my future clients, prices for my services, the best place to do it all …. etc. I was wondering if there is a website where I could get a template for that using iWork 09 (Pages or Numbers). If anyone could help me I would appreciate and thanks in advance.
    Macmithos.

    http://www.iworkcommunity.com may have something.
    You are more likely to get this to work in Numbers because it can connect between tables and has things like check boxes for multiple choice.
    If you are intending to use this information seriously I recommend you use a relational database to get a much better handle on your work and also to ultimately tie everything together, project details, hours, billing etc.
    Peter

  • Need to create stupid proof templates for non-designers

    Ok folks, I'm new to this forum having come across it in search of a solution to my problem.
    I need to create illustrator template files (.ai not .ait) that customers can download and use to create their own artwork for print. I have to create them in every printable paper format from business cards to A3 posters, folding, non-folding yada yada.
    Now, previously, we used an .ai file with a guide layer we created. This guide layer had all relevant info, was named accordingly. It was set not to print and locked. As I tend to use print to file, distiller and all, this has always been perfectly adequate to create my pdfs. Of course, this doesn't work the same way when saving a pdf, which is what most people do. However, customers who wish to download the templates are having some difficulty with the concept of 'make sure you delete the guide layer before saving your pdf'.
    For the most part, the customers using these files are not illustrator literate. Even though there are clear instructions to 'delete' the guide layer when saving the needed pdfs, they are failing to do so. This means when the .ai (with the non printable layer) is saved to pdf, the guide layer as a hidden object is saved within the pdf. Upon printing at our printing facilities, the guide layer has been printed with disasterous results.
    A possible solution we came up with was to use the ruler guides to create the guide layer. For this solution to work though, I need to be able to use different colours for different guides within the same document. Which we can't. We can only change all the guide colours and they are all the same colour.
    Another idea would be to outline text indicating various printable and non-printable areas and making them into guides via View>guides>make guides, which works to an extent but looks messy, especially when viewing the full page and again, isn't particularly distinctive, leading back to having different guides in different colours.
    I've come across another possible solution involving template layers. Viewing the resulting pdf seems fine and in all purposes it does what we need, except for when reopening the saved (not printed) pdf back in illustrator, the template layer is still there and I need it gone. The same way it would be if the .ai were printed to postscript and sent through distiller.
    My ideal solution would be to have to ability to have the different coloured ruler guides in place throughout my document, but as I previously stated, all guides have to be the same colour and that's useless in this instance.
    So, has anyone got any bright ideas. Coincidentally I need to create the same templates for both psd and indesign but I'll cross that bridge when I've figured this out.

    Hey Mike, thanks for the response.
    1. Not a chance, if, even when the process is described in great detail in an info pdf, available as info on the website (with screenshot instructions) and mentioned in the .ai file itself, they aren't even deleting the guide layer, then turning off 'Preserve illustrator editing capabilities' is kind of a stretch. Like I said, the folks these templates are to be designed for are not illustrator literate for the most part.
    2. Not sure if this would work. I'd have to look into it.
    3. Beyond my capabilities. I'll let you know if number 2 works.
    One possible solution I've come up with uses the idea of a template layer always on top, with 'DELETE THIS LAYER' and screenshot of layers pallette and clear little red arrows etc. If I can the template layer to always remain on top, with their artwork layer underneath, they would have to toggle hide/unhide to view their artwork, and the reminder to remove the guide layer would be pretty much in their face. That's not a guarantee either though.
    Personally, I think what I've been asked to achieve is a pretty hard task and honestly, I'm thinking there are no failsafe options.

  • How to correct SpryAssets/SpryMenuBar paths in template for sub-directories?

    I recently converted my real estate web site to CSS using Dreamweaver CS4. I use a primary template for most of my pages, which have both a horizontal and a vertical spry menu bar. When I create a page with the template and save it in a sub-directory (not at root level), after a page view,  I get errors on the server such as:
    File does not exist: /home/I_DELETED_THIS/public_html/homes_for_sale/SpryAssets, referer: http://locatehome.com/homes_for_sale/10-2264.htm
    (I replaced part of the URL with "I_DELETED_THIS" since this is posted publicly)
    The SpryAssets directory is at the root level of my site. The template includes the code further below at the bottom of the source code in a non-editable area of the template, which I think is the source of the problem, especially since I get two error messages for each page view and the SpryAssets directory is referenced twice in the following code after the last div. Part of the code is commented out:
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    Can I delete this code from the template or will my menu bars not function if they have sub-menus?
    The template changes the file path for other CSS scripts in the head of the template and links, etc. in the body, but not for this section of code. Is there a way to modify my template so that the path files will be correct when a create new pages in sub-directories?
    I saw one suggestion in the Forum to another user with a related problem that he should manually change the code in this section of the template to have a file path relative to the root, but it seems that the program should automatically be taking care of things like that.
    Many thanks,
    Dave K.

    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var
    MenuBar2 = new Spry.Widget.MenuBar("MenuBar2",
    {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    No you cannot delete the menu constructors, they are the ones that call the menus. The comment tags are purely for browsers that do not have JavaScript enabled.
    As far as template behaviours are concerned, I am afraid that this is not a very helpful forum. You will need to go to the Dreamweaver Forum for that http://forums.adobe.com/community/dreamweaver/dreamweaver_general
    I hope this helps.
    Ben

  • ESSO-LM Template for Web App with select tag

    Hi everyone,
    I am tasked with creating a template for a web application and the desired behaviour is that when logging into the application the language will be selected from <select> list.
    It seems that the ESSO only allows to choose from the list only based on the the title="xxx" the xxx between <option>xxx</option> tags (the actual code is <option value="yy" title="xxx">xxx</option>). The problem I face is that the "xxx" string changes based on the language selected (e.g. when English version is selected, xxx values are in English; if German is selected, xxx values are in German; etc.).
    Is there any way ESSO can change the language in the list (using the Input Element Type "Select-One") using the value="yy" or do I have to push for the universal, language independent, naming convention for "xxx" string?
    Thank you for your time.
    Ondrej

    did you try passing the period without the separator
    0122006

  • Muse templates for Business Catalyst

    Before the recent update for mobile devices I was able to atuomatically upload templates for webapps in Business Catalyst. Now it removed all my templates and does not to upload. Does anyone have this problem?

    Can you help send your Muse file to muse-support at adobe dot com with a link to this thread, and also some information on what page is set as a template, etc.? Thanks.

Maybe you are looking for