How to add Dynamic .php content to a Dreamweaver Template

OS: Windows 7
DW Version: CS5
PHP: XAMP Local Server
I hope someone can help.  I have created a Dreamweaver Template for .php and created 5 child pages of this template.  Everything is in working order as far as that is concerned.  Here is my problem:
I want to add some dynamic data (some categories) from a MySQL database to a nonEditable section of the main template so that it will flow to the 5 child pages.  I can create a connection to the database with no problem, but when I go to insert a recordset into the template, it asks me to set up the "site", "document type" and "testing server" which I have already done.  I am pretty sure that this is because it is looking at the .dwt file type and saying that it needs to be a dynamic document like .php.  I have tried going through those steps, but then it just ends up renaming my .dwt file to .php and then it is no longer a template. I do not know why I cannot add dynamic data to a dreamweaver template.  It seems like it should be a no-brainer, but it just isn't working out for me.  In my research, I did locate the following
http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fbf351e63e3d117f53d610 8-7fdb.html
but wasn't completely sure how to apply it or if it only pertained to CS4 since I am using CS5.  To be honest, it confused me more than it helped.
I really hope there is a logical and simple solution to this issue as I have spent a lot of time researching/testing this.
Any help/direction is greatly appreciated.  I am not looking for someone to just solve my problem and am willing to dig deep to learn, I am just do not know where to go from here.
Thanks again in advance for your assistance.

Brad,
Thanks that worked! Although I will have to re-create my child pages and re-link my style sheets and scripts.  But that will not be too difficult as I have not yet added any content to them and is a very small price to pay for the answer to my bigger problem.  What is a bit quirky is that I did try to create a test .php template but when I saved it, DW did not automatically add the .php to the end after .dwt. but rather just named it test.php. I didn't think to just rename it since I had read that it would add it automatically so I thought I was doing something wrong.
Maybe there are settings in the preferences that will fix this.  None-the-less, I can now move forward with my development thanks to your timely response.  I really appreciate it.

Similar Messages

  • How to add dynamically a role in a Request Template

    Hi all,
    We have created a job that reads roles from a custom table and creates them in IDM. We have also a request template of type Assign Roles that has all the allowed roles that can be assigned to a user. We have a requirement to add a role from the custom table in the IDM and also add it in allowed roles of the Request Template so that it will be available. Our problem is that we cannot find an API that we can call in order to add the roles in the request template. Does anyone know how we can do this?
    Thanks in advance,
    Kostas

    Did you look at RequestTemplateService? I believe you can use this to modify your template pragmatically. Thus the step would be to read the custom table, create role in IDM and the modify the template pragmatically to add the newly created role in the available role which can be requested.
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e17334/oracle/iam/request/api/RequestTemplateService.html
    HTH,
    BB

  • How to add dynamic calc storage property in planning?

    <p>hi</p><p>i am having problem in adding dynamic storage property inplanning application.</p><p>i am using HAL to load members (metadata) into planningapplication i have all non level o members as dynamic calc. when irun HAL 3/4th of records are rejected.</p><p>can anyone tell how to add dynamic calc property to mymembers.</p><p> </p><p>thanks and regards,</p><p>Balu</p>

    Hi Ritu,
    It's not difficult once you know how.
    1) Go to: System Administration -> System Configuration -> Knowledge Management -> Content Management -> User Interface -> Search -> Search Option Set
    2) Edit UISearch
    3) Select your custom property from the list beside the option 'Allowed Predefined Properties' and hit save.
    On 'Advanced Search' your property should now be listed under 'Filter by Predefined Properties'.
    You may also add it to 'Allowed Sort Properties' if you like.
    I hope this helps,
    Patrick.

  • How to add a related content for a particular document in UCM

    Hi All
    How to add a related content for a particular document in UCM. On which table it stores all the related document details. Can anyone suggest me a document which helps me to know how to add related contents for a document
    With thanks and regards
    Anoop

    I believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
    In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
    A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
    When a relationship is created you may watch it also from either end (again INFO is the starting point).
    It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it.

  • How to add admob in android app with dreamweaver

    how to add admob in android app with dreamweaver ?

    flash-air-admob-ane-for-ios-and-android - Admob Ane,a adobe native extention(ANE) for actionscript developer to add go…
    code and demo.but you need upgrade to flash cc.

  • How to add and delete content on device from iTunes

    I cannot find the way to add and delete content on my devices from the new iTunes. I don't understand why they changed the way it worked without any tutorials or hints at how to use the new iTunes app. I can see my device, I can see that music is on there, but I cannot unselect songs or content to get rid of it. Also, my apps do not show up on the apps list, I can see the screens with the apps on them and can delete them from that but the list is not working. I am using Yosemite and iTunes 12.01

    If you select your device in iTunes then on the left-hand side of iTunes you should see a Settings heading with categories below it which you can use to select what to sync from your iTunes library to the device, and below that an On My Device heading with categories below it listing what is on the device.
    For the Apps tab, the listbox of apps on my Mac's iTunes doesn't always populate until I've scrolled up/down the window. If yours doesn't populate then you have your apps downloaded and stored in your Mac's iTunes library - the listbox shows what you have in your computer iTunes library, if your library is empty then the listbox will remain empty.

  • How to add an existing content database to new Site collection

    Hi All,
    Can anyone help to figure out how can I add existing content database to a new site collection in SharePoint 2013 foundation.
    We have more than 40 site collections under one web application, and only one site collection is returning 404 error. When checked in the central admin to view all site collections, the details on the right side of the site is not visible, and unable
    to delete it. The database is not corrupt, as I tried to add the same content database to a new web application, and it works perfectly in a new web app.
    As we couldn't find any solution, the only option we thought of was to blow the site collection and create a new one and add the exisiting database, but I am unaware as to how can I add existing database to new create site collection. Can anyone help
    me with this please?
    Regards,
    DJ

    It's working....
    The current database was corrupt I guess, (not sure though). Took old backup file and tested to see if it's working. After the test was successful...
    Removed the current database in CA
    Delete the current database in SQL server
    Restored the working backup file in SQL server
    Added the content db in CA
    That's it... the site collection is working now...
    Regards,
    DJ

  • How to add [Thunderbird] Attachments content type action to list

    Thunderbird, Linux. Attachments. There is only one entry: Microsoft word documents. I want to add
    other attachment types, like .jpg (open with Gwenview) and so on, but I don't know how to add anything
    to the list.
    When I snapped on the "Post Question" box below this, it added a "troubleshooter" which was no help whatsoever.
    Please just tell me in English how to do this.
    Thanx.

    WPQ2FormCtx.ItemContentTypeId will give the content type ID of the item in each of the forms newform.aspx, ediform.aspx and displayform.aspx. You can also use WPQ2FormCtx.ItemContentTypeName, if you want to compare name instead of Id. Here is a JQuery
    code to hide fields in the forms:
    <script type="text/javascript">
    jQuery(document).ready(function($) {
        if(WPQ2FormCtx.ItemContentTypeId == '0x010400C36D463A4788AD4AAF5F85C02DA29F8E') {
        $("h3.ms-standardheader:contains('Body')").closest("tr").hide();
    </script>
    Note that this script assumes the JQuery is already referenced in the site. You can place above code in Script Editor web part in each of the forms. 
    Also, beware that this way you can hide the field from UI, but user can still open the page source and find the actual information in the hidden field. 
    If the requirement is to completely hide the field data then you will need to set the field properties like showInEditForm, showInDisplayForm and showInNewForm
    Nadeem Yousuf

  • How to ADD dynamic header text to Right hand Corner of IDR -FPM OVP/OIF

    Hi,
    How can we add dynamic header text to right hand side corner in FPM OVP?
    I know we can handle left hand side.. but i do need simultaneously right hand side..
    ANy thoughts??
    Rgds
    Tarun

    I am not sure how it is arranged in 7.02, in 7.01 IDR layout is flow layout so you cannot have layouts other than that. I thought that this has been changed in 7.02 to accommodate the matrix layout. I am not sure about it. If this was true then you can try to play with the layout to fit right hand side. It is not easy though.

  • How to add dynamic data type as one of the terminals of a Custom VI

    Hello,
    Can anybody tell me if it's possible and how to add a dynamic data type as one of the terminals of a sub-VI? I would like to have a terminal that I can connect signal from DAQmx to my sub-VI.  Thanks.

    Here is one of the coolest things about LV, and one of its major advantages over languages like VB - it has automatic memory management and it compiles whenever you make a change. This allows you to be very free in the way you handle data and change your code. In this case, you should note the small gray dot that appears when you wire the dynamic data into the Array of Waveforms input. This gray dot means that LV coerces the source data type (DDT, in this case) to the target data type (Array of waveforms). If it wouldn't match, you would get a broken wire, the VI couldn't run, and if you hover over the wire or press the broken run button you would get an exact description of the error. Cool, eh?
    This can also be seen in other things. For example, you can change an array's data type or number of dimensions by simply doing it. This will automatically be reflected anywhere the array is called in the program, and if anything won't match, the VI will be broken. If you change the # of dimensions of an array, any array function which that array is wired to will adapt. This allows you to be very safe in the way you write code, because you have LV watching all that annoying stuff for you. You don't have to worry about misspelling a variable here (for the most part).
    One important point about coercion - it does take processor power. This will usually only be evident in large arrays or loops, but it is an important point. Another thing is that coercing numeric types can cause you to lose data - coercing a DBL to a U16, for example, will cause you to lose all the fractional data.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • How to add Dynamic Pick List in Parameter

    Hi all,
    While Selecting parameters in that Properties-.>value->List of Values >Pick list>in that two options 1.value
    2.Description- in that i am entering static it is taking but i want to take values Dynamic from Database Table
    Any can help me in this how to add parametes dynamically from Data base  table
    Sincerly,
      Amol

    Hi All;
    I am using this version Eclipse-jee-europa-fall2-win32-with-CR4E-v.1.0.4 for making crystal reports
    Is there any another version that can support Dynamic choice from the List of Values drop down when i create parameter.
    or any other link that support / version
    Sincerly;
    Amol

  • How to add dynamic ClientAttribute in RichCommandLink in ADF in JAVA

    Hi
    how to add client attribute in RichCommandLink of ADF dynamically in java code.
    I used like this
    RichCommandLink richMenuLink = new RichCommandLink();
    richMenuLink.setText("text");
    richMenuLink.setShortDesc("desc");
    richMenuLink.setId("id7");
    richMenuLink.setPartialSubmit(true);
    richMenuLink.setClientComponent(true);
    ClientListenerSet cls = new ClientListenerSet();
    cls.addListener("action", "JSMethodName");
    richMenuLink.setClientListeners(cls);
    Set setObj = new HashSet();
    ClientAttributeTag tag = new ClientAttributeTag();
    tag.setName("myID");
    tag.setValue(); //this sets the value for the client attribute. But the method takes ValueExpression and i have my value in string.
    setObj .add(tag);
    richMenuLink.setClientAttributes(setObj);
    menuBarObj.getChildren().add(richMenuLink);
    Is ClientAttributeTag is to be used to add client attributes in rich command link? or is there any other way to add client attribute in that ??
    Edited by: Datta,Sudeep on Apr 24, 2013 3:12 AM

    And the setClientAttributes() takes Set object, so i added ClientAttributeTag and then set it in HashSet. Is this the way to do it ??
    and how can i set string value in ClientAttributeTag.setValue() ??
    Please help.
    Sudeep

  • How to add dynamically called files to a teststand workspace?

    I am using TestStand 4.1.1 and LabVIEW 8.6.1 to try and install dynamically called VI's into a TestStand workspace.  I am following the instructions on pp. 14-8 through 14-10 in the TestStand Reference Manual (May 2008) edition.  So far I have not been successful, and the instructions are not clear.  For example, I cannot see in the instructions anywhere that I am supposed to add my test sequence.  Should the test sequence already be loaded in the project before this set of instructions is followed?  Could someone clarify this set of instructions for me? 
    Then when I get a successful build, I would like to try out the deployment and installation on a target computer.  Please provide a detailed and clear set of instructions on how this can be accomplished.
    Also, is there anyway to do this without building an installation?  Originally I just wanted to create the deployment without an installation.  But please explain both ways. 
    Thank you.
    epsilon-delta

    Epsilon,
    What are you using dynamically called VI's for? Are you adding dynamic VI's to LabVIEW, or to TestStand? If you are calling from TestStand, you don't need to do anything, the deployment utility will do all of the work for you.  The section on adding dynamically called files to a workspace listed in the Test Stand Reference Manual  is a mini-tutorial, and not exactly step by step instructions. All you need to do to add dynamically called VI's is to add them to your workspace file, and make sure the TSW is saved before you build your deployment. The example right before that one, covers how to deploy from a TSW, and mentions that you need to add your sequence file to the project that is in the workspace.
    The steps needed to deploy a sequence is as follows:
    1. Create a new workspace file
    2. Right click on the workspace file and select "Add a project"
    3.
    Right click the project and select add additional files (here you
    should add your sequence file and any files that are dynamically called
    (e.g. VIs))
    4. Go to Tools --> Deploy TestStand System
    5. Check "Deploy Files from TestStand Workspace File"
    6. Select the appropriate file path where you saved the workspace file
    7. Add in a path for the location you want to store your deployable image (for instance your desk top)
    8.
    Go to the distributed files tab and select "yes" to analyze the source
    files [here you will find all the files you chose to include with your
    distribution, this is automatically populated from the workspace and
    its dependencies), if you are deploying and plan on using a User
    Interface and not the TestStand Sequence Editor, here you would need to
    include the UI as well
    9. If you were making an installer, you
    could check the "Create installer" box under installer options and
    specify a location. Also here you could click on the drivers and
    components box to add additional driver installation (only if you are
    building an installer)
    10. Click on build status, then build
    You can also reference the same manual 14-7 through 14-8 which goes through an example deployment, and installation on a target computer. 
    After you build your installer, copy the files to the target computer and run the setup.exe to install to the new computer, what problems do you have? Do you get errors, and if so can you take screenshots of them? 
    If you do not wish to create an installer, and you already have a user interface installed, and the TestStand engine on your target machine, you can just copy all of your files to the target machine, and run them normally. We generally recommend building installers, so that any missing dependencies on the target system could be installed, and the TestStand  deployment tool takes care of pulling out all the needed files for you (except for the dynamiclly called ones, which is why you need to add them yourself). If you want you can use the deployment tool to create an image and then move that image to the target computer. The image should have all of your non-dynamic files included, but still requires that your system have all needed components installed. Please let me know what part of the deployment, installation process you are having errors, and we can help you troubleshoot. I always recommend trying to deploy a very simple example sequence with no code modules, if you are having problems. This is always a good troubleshooting tip that will help to determine if the problem is with one of your systems, or with your specific sequence file. 
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • How To add dynamic field using struts?

    Hi All,
    I new to the struts. I wanted to add dynamic form field .

    Why do so many people ask struts questions here? It's an Apache project and it has a mailing list. Why not go directly to the source? [http://struts.apache.org/]
    Kaj

  • How to add simple static content?

    Hi
    Can anybody tell me if there is an easy way to add static HTML content to the portal?
    Cheers,
    Jacob Vennervald

    Does anybody know if it is possible to add simple text (not HTML) in the portal (EP 6.0 SP2P3) using the above mentioned solution?
    Kind regards,
    Christian Staalby

Maybe you are looking for

  • Javax.mail.MessagingException: 451 4.3.2 Please try again later

    Hi, Can any one help out to fix following problem. exception occurred :Sending failed; nested exception is:      javax.mail.MessagingException: 451 4.3.2 Please try again later

  • Score Editor

    I'm using my grand piano with midi capability to input data into my Logic express program. The rhythmic values that I play are always changing as a normal course of improvising. So 1 measure might have triplets, 16ths. *I play 8ths that are played in

  • HT4157 How do I take off automatic pay on my account

    How do I take off on my cellular account to stop the automatic payment every month?

  • Section tool is missing bounding box... show bounding box not available

    My selection tool is missing the bounding box, i am unable to transform anything. under View where show bounding box is suppost to be it is not. I am using CS5... and JUST installed it, i haven't done anything yet. please help!

  • Best way to sync and view other videos formats

    hi all, me and my wife both have iphones and  have recenly bought a ipad and apple tv. I am getting a bit frustrated as i cant work out the best way to store and easily view my old pics and video files. the shops salesman convinced me to by knowhow c