Use of template parameters

I have a standard Dreamweaver template with a photo in the
heading. I need to change this photo depending which page is being
shown. It occurred to me that a template parameter should do the
trick. I can find no help in the CS3 documentation, and the online
help no longer supports CS3 users. MX help does give a vague idea,
but nothing remotely like an example.
Can anyone tell me what I need to do to set this up

Template parameters seem like they would be a really nice way
to do thing.
They are a mixed blessing, though. The easiest way would be
with server
scripting, but if you want to try template parameters, do
this -
1. Open the Template page
2. Select the image
3. Use MODIFY | Templates > Make Attribute Editable
4. You will want to make the src attribute of the image tag
editable with a
URL parameter in the ensuing dialog
5. You can browse to and select an image to use for the
default value of
this image
After clicking OK, you will find the following changes on
your Template
page -
Above the </head> tag you will see -
<!-- TemplateParam name="whatever" type="URL"
value="pathtoimage" -->
and in the <img> tag you will see -
<img src="@@(whatever)@@"....
The template engine will insert the value of the "whatever"
parameter into
the src attribute of the <img> tag when a child page is
spawned (or
updated). On that child page, if you want to CHANGE the
value, use MODIFY |
Template Properties, and select "whatever", whereupon you
will get a dialog
to browse to and select a NEW image to use for this
parameter. This is the
ONLY way to change that parameter - if you try to edit it
directly it will
not work.
Try it. You'll see what I mean.
And by the way, you might find some useful info here -
http://www.dmx-templates.com.
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
==================
"whatalotofrubbish" <[email protected]>
wrote in message
news:[email protected]...
>I have a standard Dreamweaver template with a photo in
the heading. I need
>to
> change this photo depending which page is being shown.
It occurred to me
> that a
> template parameter should do the trick. I can find no
help in the CS3
> documentation, and the online help no longer supports
CS3 users. MX help
> does
> give a vague idea, but nothing remotely like an example.
>
> Can anyone tell me what I need to do to set this up
>

Similar Messages

  • Using SET GET parameters in ITS

    Hi All,
    Is it possible to use set get parameters in ITS. We want to set some parameters in a BADI and read the value in ITS Template .
    Or is there any other method to do this?
    Thanks,
    Anubhav

    Sure. In your abap program use the following code
    *  ITS macros
    INCLUDE avwrtcxm.
    GET PARAMETER ID 'YOUR_PARAMETER' FIELD SAVE_PARAMETER.
    field-set u2018~YOUR_PARAMETERu2019 1 SAVE_PARAMETER.
    field-transport.
    in the template you can now use ~YOUR_PARAMETER.
    regards,
    Klaus
    Edited by: Klaus Layer on Feb 3, 2009 5:05 PM

  • Link to PL/SQL procedure using a Template Manager template.

    Hi,
    I need to link a portal application report (report from SQL query) to a SQL procedure that uses a template manager template. The PL/SQL procedure requires parameters. I'm not be able to create a link based on a PL/SQL procedure. The only solution I found is to setup a link to a Form based on that procedure. But the form is only used to call the PL/SQL procedure by clicking the submit button and redirect to the template.
    Another question:
    Is it planed to support dynamic links based on column conditions?
    I'm using Portal release 3.0.7.6.2.
    thanks in advance
    Jens

    Jens,
    You may want to search the Oracle9iAS Portal Applications forum. It may have the answer you are looking for. This forum is for questions related to the Portal Development Kit.
    Thanks,
    Sue
    Sue

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • Contribute Acting strange - template parameters with repeating regions

    Basically what I'm trying to achieve is that there is a
    repeating region on a page, and each region is supposed to
    alternate colors. To achieve this, the regions with the colors are
    put into a div which has a background color applied to it. To do
    this, I have created two expressions, one to check to see if it's
    an even numbered region, and if so, to open the div, and another to
    close the div. That looks like this:
    quote:
    <!-- TemplateBeginRepeat name="Article" -->
    @@((_index & 1) ? shade : noshade )@@
    stuff
    @@((_index & 1) ? shadeend : noshade )@@
    <!-- TemplateEndRepeat -->
    At the top, I have three template parameters to go along with
    these:
    quote:
    <!-- TemplateParam name="shade" type="text"
    value="<div>" -->
    <!-- TemplateParam name="shadeend" type="text"
    value="</div>" -->
    <!-- TemplateParam name="noshade" type="text" value=""
    -->
    Which look like this on the actual pages:
    quote:
    <!-- InstanceParam name="shade" type="text"
    value="&lt;div&gt;" -->
    <!-- InstanceParam name="shadeend" type="text"
    value="&lt;/div&gt;" -->
    <!-- InstanceParam name="noshade" type="text" value=""
    -->
    The odd thing is that, when I add an editable region,
    something weird occurs with the template parameters and they end up
    looking like this:
    quote:
    <!-- InstanceParam name="shade" type="text"
    value="&lt;div&gt;" --><!-- InstanceParam
    name="shadeend" type="text" value="&lt;/div&gt;"
    -->->
    <!-- InstanceParam name="noshade" type="text" value=""
    -->
    And that, of course, results in having a nice "->" showing
    up at the top of my page. The repeating region appears to work. It
    changes background colors just like it should, but I have no idea
    why it's throwing in the "->" at the end.

    For grins, try changing this -
    <div id="content1" style="display:none">
    to this (IN THE TEMPLATE FILE) -
    <div id="content@@(_repeat._index)@@''
    style="display:none">
    (that should be a " character after the last @ sign - I had
    to use two '
    characters to keep the code from getting munged in my
    newsreader)
    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
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:g2m3cq$85h$[email protected]..
    >I need to see the template markup around the repeating
    region, please.
    >
    > --
    > 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
    > ==================
    >
    >
    > "ITLogic" <[email protected]> wrote in
    message
    > news:g2m25n$6se$[email protected]..
    >> Sure. I'm using DW CS3. Here is a copy of the
    repeating regions I'm
    >> trying to
    >> create. Notice each DIV has a sequential ID. I could
    go hand edit this,
    >> but I'm
    >> trying to automate it as much as possible. I am
    selling Contribute as a
    >> means
    >> for clients to edit their own content. Most don't
    know how to spell HTML
    >> much
    >> less know how to use it.
    >>
    >> <div id="content0" style="display:''">
    >>
    >> <!-- ADD TICKER's CONTENT #1
    HERE--------------------->
    >>
    >> <p>Hello</p>
    >>
    >> <!-- END CONTENT #1----------------->
    >>
    >> </div>
    >>
    >> <div id="content1" style="display:none">
    >>
    >> <!-- ADD TICKER's CONTENT #2
    HERE--------------------->
    >>
    >> <p>World</p>
    >>
    >> <!-- END CONTENT #2----------------->
    >>
    >> </div>
    >>
    >

  • Dreamweaver CC features such as Template Parameters

    I have Dreamweaver CS6 and have not ventured onto the cloud yet. While looking up a question regarding syntax for Dreamweaver Template Parmeters, I noticed most of the documentation starts with the clause "The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the options described in this article in Dreamweaver CC and later." I found this expression even when I searched Creative Cloud specific support, e.g. see Dreamweaver Help | Using optional regions in templates. The link A Look at the Modernized Dreamweaver CC : Adobe Dreamweaver Team Blog is over a year old and no help.
    How in the world do you find what features actually exist in Dreamweaver CC without buying it? Are Template Parameters still available? Has anyone successfully imported a Dreamweaver CS6 site that has Template Parameters to Dreamweaver CC? I found a PDF for Dreamweaver CC, (http://helpx.adobe.com/pdf/dreamweaver_reference.pdf) which seems to indicate Template Parameters are still supported, but I don't have a lot of faith in it based on previous experiences with Adobe documentation.
    Thanks in advance.

    Are Template Parameters still available?
    Yes. Why do you want to use them? There are usually better ways to do things... Are you also using nested templates, by chance?
    Has anyone successfully imported a Dreamweaver CS6 site that has Template Parameters to Dreamweaver CC?
    There is no "import" to it. You just define a site in CC that points into the CS6 site's local root folder and you're ready to go.

  • Template parameters showing reverting to old data

    Hi I added meta-data using template parameters. For some
    reason DW reverted back to showing old meta-data on the page. When
    I checked the template parameters fields it showed the latest
    meta-data. it just had not been written to the page.
    Is this a known bug?

    Is that meta data in an editable region?
    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
    ==================
    "Steve84" <[email protected]> wrote in
    message
    news:e7efir$7q5$[email protected]..
    > Hi I added meta-data using template parameters. For some
    reason DW
    > reverted
    > back to showing old meta-data on the page. When I
    checked the template
    > parameters fields it showed the latest meta-data. it
    just had not been
    > written
    > to the page.
    >
    > Is this a known bug?
    >

  • Use web template to open a report from a menu

    Hi all,
    I have created one web template where I have a role menu that shows all reports that are available to the user. When the user clicks on one of these reports, the report displays in a new window. So far everything is working fine.
    But, I have also created another web template and I want the report that is displayed in a new window to use this template. How do I do this? I have been looking at the settings for the Role menu, but can't find anywhere to put the template name...
    Anyone have any ideas?
    Thanks and regards,
    Tove-Mette

    Hello,
    yes you can use the publish function, but only to add new entries.
    In Transaction pfcg (not in WAD or BEx) in SAP GUI and then select your role at the tab "Menu" you can add/remove/maintain/organize your menu.
    just click on a menu entry and take sth.like edit.
    Then you will see a link if you didn#t find the string &template_id= the system will take the standard template (Tranaction spro), and you can easily add or change this parameter.
    Hope that helps, please ask if you need further explanation.
    Regards
    Marcus

  • REPOST:Timing does not show up when using custom templates

    all,
    When I create an unstructured template and use it in a report with show timing set to true, the timing does not show up.
    any tips

    Correcting my previous reply,
    Timing will NOT show if you are using custom template.
    null

  • Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher

    Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.

    I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level.  So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly).  I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3.  If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query.  I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.

  • How can I use the templates in iPhoto to email my photos if I don't have a mobileMe account?

    I have upgraded to iLife11 and want to use the cool templates to email photos. I don't have a mobileme account. It doesn't appear that I can Use the templates. Am I doing something wrong?

    What do you mean by the AOL screen?  Is AOL your ISP?  If it is popping up to connect you to the internet that might be what is preventing you from composing an email. It also could be that AOL was set up as your default email client.  Do you use AOL as an ISP/Email client?
    In Mac OS X Lion (I can't vouch for any other version of Mac OS) to change your default mail viewer/client open up apple's mail app. Go to file->settings Under the general tab it's the top choice if it is set to AOL, you might want to switch it so you can get it to come up with the email you actually use.  Also if you do use AOL, they should have a section in their help about setting up "pop3" email, or how to use AOL mail in outlook.  Now the steps might not be the same as far as what menu choices you have to make, but what you're gonna get out of that section is incomming/out going server's and anything else like ports and etc.  Apple's mail app needs all that same information.

  • How to use SET & GET Parameters in Module Pool

    Hi Friends,
    Can anyone please tell how to use SET / GET parameters and PARAMETER ID for a text box (Input / Output field ) in module pool? What is the purpose and where do we need to do coding for it?
    Note : I will definitely give the marks for good responses.
    Thanks in advance,
    Pradeep

    Hi Pradeep,
    You can save values in the SAP memory using a parameter ID. These
    are user and terminal-session specific, but available to all internal and
    external sessions.
    SET Parameter copies the corresponding field contents into the SAP
    System memory in the PAI processing block.
    GET Parameter copies the corresponding field contents from the SAP
    memory at the end of the PBO processing block, after data has been
    transferred from the program, if the screen field still has its initial value
    You can link an input/output field to an area of the SAP memory in the
    ABAP Dictionary.
    When you use an input/output field that is defined in the ABAP
    Dictionary, its parameter ID is displayed in the Dictionary attribute
    Parameter ID in the Screen Painter.
    Usage
    SET PARAMETER ID: ’CAR’ FIELD space,
    ’CON’ FIELD space,
    ’DAY’ FIELD space.
    Here is the link that explains the usage of GET/SET in detail
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm</a>
    Regards,
    Sharadha

  • How to use a Template in reports as in Forms ?

    Goal:
    I need to use reuse a common code in all of my reports.
    Current scenario:
    I need to display Report title, database name and report REP file name in the header of each report. So if I change at one place it should be reflected at all he places I refer this code.
    P.S. I have a table which stores report file name and title in report.
    Questions:
    1) Is there a way to know the REP file name in the report like we have in the form GET_FORM_PROPERTY ?
    (Because once I know the rep file name I can search in my table to fetch the description, as I don't want
    to hard-code the REP name anywhere in the code)
    2) Getting the database name is not a problem, I can always query v$database or v$instance to get the db name.
    2) Where can I put this code so that I can refer the same code in all the reports, like the way we do it in
    the forms (by subclassing an object or object group from Template or a common form to individual form).
    Thanks
    Mehar

    Thanks very much. Get_Report_name works.
    But I have an additional problem:
    The changes I make in the template, are not getting reflected in the report based on the template i.e. There is no more reference once I make a report based on the template unlike in forms where I can "keep the path" while subclassing any object from one form to another.
    Is it the default bahaviour of using the template ? Or do I need to do something else ?
    Thanks again,
    Mehar

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Error while posting initial quantities using stocktaking template of DTW

    Hi All,
    I am getting this below error while posting initial quantities using stocktaking template of DTW.
    Can not find this object in B1Application-defined or object-defined error65171
    I am using B1 8.8 PL10 version. Below is my sample txt file data
    ItemCode WarehouseCode Counted
    ItemCode WarehouseCode Counted
    CHA0002 1 500
    CHA0076 1 4000
    Any help is appreciated.
    Regards,
    Noor Hussain

    Hi Gordon,
    Thanks a lot for your time. I am able to post the quantities. Now please let me know how to update the item cost/price for these items using DTW ?
    Regards,
    Noor Hussain

Maybe you are looking for