Using Template Params with links

Hi all, I was wondering how I could use a template parameters
to change all links' prefix. For example all pages on my site will
use relative paths to pages within the site. A few pages in the
site are secure and therefore get directed to a "secure" server so
the URL becomes different. Those pages cannot use relative URL's to
get back to the 'normal', unsecured, site so they must use complete
path "
http://www.whatever.com/" in
front of the links. I'm thinking I can make two template params
like so:
<!-- TemplateParam name="rootSite" type="text" value="
http://www.whatever.com" -->
<!-- TemplateParam name="pageSecure" type="boolean"
value="true" -->
but I some how need it to search through the document for all
links and put the 'rootSite' inserted before whats already there.
Can this be done??? If so, how?
Thanks in advance!
Buddy

I would make this -
<!-- TemplateParam name="rootSite" type="text"
value="
http://www.whatever.com"
be this -
<!-- TemplateParam name="rootSite" type="text"
value="
http://www.whatever.com/"
Find (in current document) -
<a href="
Replace with -
<a href="@@(rootSite)@@
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
==================
"buddyq" <[email protected]> wrote in
message
news:elp9s5$7k1$[email protected]..
> Hi all, I was wondering how I could use a template
parameters to change
> all
> links' prefix. For example all pages on my site will use
relative paths to
> pages within the site. A few pages in the site are
secure and therefore
> get
> directed to a "secure" server so the URL becomes
different. Those pages
> cannot
> use relative URL's to get back to the 'normal',
unsecured, site so they
> must
> use complete path "
http://www.whatever.com/" in
front of the links. I'm
> thinking I can make two template params like so:
>
> <!-- TemplateParam name="rootSite" type="text"
> value="
http://www.whatever.com"
> -->
> <!-- TemplateParam name="pageSecure" type="boolean"
value="true" -->
>
> but I some how need it to search through the document
for all links and
> put
> the 'rootSite' inserted before whats already there. Can
this be done??? If
> so,
> how?
>
> Thanks in advance!
>
> Buddy
>

Similar Messages

  • How to use object collection with linked objects

    <p>Hi,</p><p>I&#39;m using VS2005 Crystal reports in a c# client app (server has database, but client does not have!). So the use of the objects transfered to the client seemed to me a good solution for showing reports on the client. The objects mostly link to several other objects (properties of type <type> or properties of type [] <type>) and the links are correctly configured in database assistant.</p><p>But: Whenever using one of the linked fields, all of the main fields will never show up in the report.</p><p>So, what is the correct way of showing a master / detail report using linked object collections???</p><p> (A small test sample app can be provided upon request)</p><p> TIA</p><p>BP</p>

    What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
    It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
    The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics.

  • How to use PDF files with links to other PDF Files

    How to use a PDF file with links to other PDF files that have been transferred to the same folder

    Are you using a mouse, or a trackpad on a laptop? Either way, your cursor is usually an arrow, right? And presumably it's working/moving MOST of the time, otherwise you wouldn't be able to do anything?
    For example, can you move the cursor arrow to the "Annotate" tool to click on it and go into Annotate mode? If so, can you click on the text tool? If so, does the cursor change to a crosshairs? At what point can you NOT move the cursor around the screen?
    Matt

  • XSQL Using bind params with sql LIKE clause

    I am unable to use a bind-param with the LIKE clause in a SELECT statement.
    eg call .../temp.xsql?name=N
    XSQL query is this:
    <xsql:query max-rows="-1" bind-params="name">
    SELECT last_name
    FROM emp
    WHERE last_name LIKE '?%'
    </xsql:query>
    I have tried a few combinations so far with no success eg:
    WHERE last_name LIKE '{@name}%'
    WHERE last_name LIKE ?||%
    Any ideas?

    I highly recommend using XSQL's real bind variable feature wherever you can. You can read about it in the XSQL Online Documentation (Search for the "Using Bind Variables" section).
    Using this feature is more performant and more secure than using textual substitution variables.
    Here's what your page looks like using textual substitution:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" >
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE '{@code}%'
      </xsql:query>
    </page> .
    And here's what it would look like using real bind variables:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" bind-params="code">
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE ?||'%'
      </xsql:query>
    </page> .
    Using real bind variables allows the database to avoid reparsing the SQL statement everytime, which improves performance.
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • How to use Spry validation with link styled submit buttons..??

    I'm working with a theme package that comes with a bunch of button styles that work with basic links.  For example:
    <a href='page.html' class='small-button smallblue'><span>Button Label</span></a>
    I've got a basic form setup with Spry validation, but the submit button needs some styling to make it look nice with the site.  Since there are already styles ready for me to turn links into buttons I figured I'd use the same thing for my submit buttons.
    To accomplish that, I'm using the following javascript...
    <script type="text/javascript">
    function submitForm() {
        document.getElementById("form_name").submit();   
    </script>
    And then I'm updating my submit button to something like this...
    <a href='javascript: submitForm()' class='small-button smallblue'><span>Button Label</span></a>
    When I do this, the form submits as expected, but the Spry validation doesn't work.  Is there a way I can make the Spry stuff work with these types of buttons?  I know I could create separate styles for the submit buttons themselves, or I could use an image type button, but I'd really like to figure out how to get these existing styles to work for me since the theme already has so many of them done for me.
    Any information on this would be greatly appreciated.  Thanks!

    Save yourself a lot of trouble and style the normal submit button as per
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <style>
    .Standout {
        font-family: Geneva, Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        color: #FFFFFF;
        font-size: 16px;
        background-color: #CC0000;
        font-weight: bold;
        border-style: none;
        padding-top: 6px;
        padding-bottom: 5px;
        padding-right: 64px;
        padding-left: 64px;
        letter-spacing: 1px;
    .Standout:hover {
        background-color: #000000;
    </style>
    </head>
    <body>
    <form action="" method="get" name="myform">
      <span id="sprytextfield1">
      <label for="text1"></label>
      <input type="text" name="text1" id="text1">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="input" type="submit" class="Standout">
    </form>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"]});
    </script>
    </body>
    </html>
    Gramps

  • How to develop forms using TEMPLATE.fmb

    hi,
    Anyone Should suggest me clear tutorial/links to learn forms development using TEMPLATE.fmb with step-by-step development procedure including forms development, register in apps.
    Thanks in advance.

    Abdetu is right, General EBS Discussion is the more appropriate forum for this question. Having said that, creating a new form based on the TEMPLATE.fmb just ensures your EBS Custom form has all of the basic EBS requirements for a EBS form. Developing for the EBS Framework has many requirements and I strongly recommend you review the Oracle Applications Documentation library. Select your EBS version and then scroll to the Standards section and review the following documents:
    <ul>
    <li>Oracle Applications Developer's Guide
    <li>Oracle Applications User Interface Standards for Forms-Based Products
    <li>Oracle Application Framework Personalization Guide
    </ul>
    If you are looking for general "Forms" tutorials, here are a few good links. Although a few of the following links are for older Forms versions, the concepts are still valid across all Forms versions.
    <ul>
    <li>A Tutorial on Oracle9i Forms and Reports
    <li>Tutorial for Oracle10g Forms / Reports
    <li>iSelfSchooling - Basic Introduction to Forms
    <li>Oracle Forms 10g: Demos, Tips and Techniques
    </ul>
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • f:param with commandlink

    Is it possible to use a param with a commandLink?

    hi! i am quite new to JSF and to JSP for that matter, I do have a question though with the posted reply in using <f:param> with the commandlink.
    Let's say I have included that statement and what I need to do when the user clicks on the link is to continue onto the next JSP page. Now, I intend to use the value of the parameter and set it to a bean.
    Can you or anyone enlighten me on how I can manage to do this? Thanks a bunch!

  • Problem with links on email templates

    Problem with links on email templates
    Hi,
    We have been having issues with links on our email templates. Some of the links point to the following URL:
    http://server'sname/thirdparty/FCKeditor/editor/fckeditor.html?InstanceName=emailTemplatesDTO.htmlBody&Toolbar=NewscaleFCKEditorToolBar#URL
    Sometimes we get “Unknown internal error” on the web page.
    Can anyone help or advise on how to resolve this issue?
    Many thanks,
    Wesley.

    Hi Wesley,
    This is rather late, but we've seen the same thing frequently (and I believe can replicate it).  It's caused when you a creating a new email by copying the content of an existing one with a name space in it.
    Upon copying, the link gets scrambled.  The approach we use is to copy the email in to a new template, then strip out all of the URL links and add them back in.
    Thanks!
    Ant

  • How to get the line in the template (smartform) with out using under score

    Hi,
         How to get the line in the template (smartform) with out using under score,
         and how to print the box (line the check box - small squre box (which is used ot mark the tick by the user in front of the item).
         Please provide the valueble answer as early as possible.
    Thanks,
    Ravi

    Hi Ravi,
    Line -
    Use a SMATSTYLE for this purpose.in the smartstyle create a paragraph or character with underline atribute.Then call the smartstyle in the text.
    Search SDN with Key <b>UNDERSCORE</b>.. will get few more posts on the same.
    For Checkbox - refer link
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • Problems with template and page links..

    Hello community!
    I'm pretty new to dreamweaver Cs4 and am having a slight problem. I have my template.dwt file and 5 other pages which use this template layout. However when I preview my website in my browser, the template.dwt file links to all the pages, however when I click on another link (a page link) once on this page, the hyperlinks from the navigation cant be clicked. In other words the navigation turns into just text and no hyperlinks.
    I want to be able to click on any page on my website using the navigation bar, so i can go back and forth onto pages all over my website using my navigation.
    Anyone know what to do or a solution to allow me to have all the links working from the template
    Thanks

    You are being confused by a) not understanding root relative vs document
    relative links, and b) not understanding how DW previews files.
    If I have a document with a link to an image that looks like this -
    <img src="/images/foo.gif"...
    That's what's called a root relative link.
    If I preview that document in DW, then the browser gets the document, sees
    the leading "/" and reads that as the root of the hard drive, since the
    browser has no idea where the root of the site is.  Thus, the image is
    broken in the preview.
    If I have temp files enabled, then DW will secretly convert the file being
    previewed into a temporary file, and hand that to the browser.  This temp
    file has had all root relative links converted to document relative links
    (as you will see by looking at the code in the browser), and has had all
    include files actually embedded in the page, and has had all external CSS
    and js markup embedded in the page.  In other words, DW has made the
    document into a stand-alone page.
    If you do not have temp files enabled, all of these links would be broken on
    preview.
    Now - if you are using root relative links, AND you have temp files enabled,
    AND you click away from the previewed document, then all of your links will
    be broken, since DW has not made that linked file into a temp file.  This is
    what you are seeing.
    So - if you want to click away on preview, then you must use document
    relative links for the site -
    <img src="../images/foo.gif"... (for example)
    These will still work on preview since the browser knows how to determine
    the current file's location and how to follow that path.
    GEDDIT?

  • Opening a Web Template 7.0 using filters in a link

    Hello,
    I have a BSP application that opens web reports using links that are dynamically configured like this:
    http://... (servr name & stuff) ... ?TEMPLATE=ZDHR_WT2_SITESF&FILTER_IOBJNM=ZDHR_VT&FILTER_VALUE=A&FILTER_IOBJNM_1=ZDHR_OU&FILTER_VALUE_1=CHM
    This worked perfectly with templates created with BW3.X. But now I am trying to replace them with templates made with 7.0, and...
    It doesn't work.
    I guess the syntax must have somehow changed... Could someone give m a hint?
    Thank you in advance,
    N.

    Finally I found a solution:
    it is needed for templates made with 7.0. But if you are using an old template (3.5) with a query made with 7.0, it works with the old filters!
    http://server/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZDHR_WT2_SITESF__TESTING&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZDHR_VAR_VT&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=A&BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_2-VARIABLE=ZDHR_VAR_OU&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_2-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_2-VARIABLE_TYPE-VARIABLE_INPUT_STRING=CHM&BI_COMMAND_3-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_3-VARIABLE_VALUES-VARIABLE_VALUE_3-VARIABLE=ZDHR_VAR_YEAR&BI_COMMAND_3-VARIABLE_VALUES-VARIABLE_VALUE_3-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_3-VARIABLE_VALUES-VARIABLE_VALUE_3-VARIABLE_TYPE-VARIABLE_INPUT_STRING=2008
    Edited by: Nicolas Michaud on Apr 7, 2008 3:34 PM

  • Using the Standard Template Library with 5.0 using 4.2 compatibility mode

    Has anyone used the Standard Template Library with the 5.0 release of the complier using the -compat=4 flag ?

    It's not your system, unfortunately. It's iTunes 5.0. I have XP, a brand new drive and Nero. I can burn all sorts of CDs, just none from iTunes.
    I have gotten several emails from Apple regarding this issue, none of which helped. The last response I got said they were working on my problem. Right now, the best solution that I can come up with, although I'm not sure how to do it, is back up your songs as a data CD, uninstall 5.0 and reinstall version 4.9.
    If you go back a few days (or maybe a week) in the discussions, someone posted a link for 4.9. If you can do this and successfully install 4.9 you will have no problem burning CDs. I just haven't had any luck burning my songs as data. I have 4.9 on an older computer and can burn CDs for days. So all I have to do is get my songs to the old PC and I'll be in business.

  • Video or step by step tutorial link for create forms using template.fmb

    Hi,
    Give me link which provides step by step tutorial or video tutorial for the following:
    1. where should i save the template.fmb and library files in my local machine
    2. how to create customize form using template.fmb
    3. how to do test run that form in local machine (i'm asking this because the template form having reference to app libraries)
    3. how to convert .fmb to .fmx
    4. how to register that form in apps
    i understood about how to do the above process through existing threads in this forum, but i getting lot of errors and confusion while i'm implementing. so please tell me steps or give link which provides details.

    What Forms version are you using? While you're at it, what is your database and OS versions also? Can you provide us with an example of the type of errors you are getting?
    (i'm asking this because the template form having reference to app libraries)Developing Forms for Oracle Enterprise Business Suite (EBS) is different from non-EBS applications because of the EBS Framework and standard processing that occurs.
    Your BEST resource for developing EBS Forms is the Oracle Applications Documentation library. Select your EBS version and then find scroll to the Standards section and review the following documents:
    <ul>
    <li>Oracle Applications Developer's Guide
    <li>Oracle Applications User Interface Standards for Forms-Based Products
    <li>Oracle Application Framework Personalization Guide
    </ul>
    For most of your questions, you'll find the answers in the aforementioned documents.
    1. where should i save the template.fmb and library files in my local machineMy guess is that many of the errors have to do with attached libraries. The APPSTAND.fmb, TEMPLATE.fmb and all of the Apps Libraries (.pll) must be in the FORMS_PATH. Which means you will need to modify the FORMS_PATH registry entry for your Forms version (6i or 10g) and EBS version (R11 or R12).
    3. how to do test run that form in local machine (i'm asking this because the template form having reference to app libraries)You can't - there are too many EBS Framework calls that will generate errors when the form runs outside of the EBS Framework. You have to test your form in a Test/Dev EBS system.
    3. how to convert .fmb to .fmxUse the Forms compiler executable. (frmcmp.exe - on Windows)
    4. how to register that form in appsThis process is too indepth to explain in the Forum - read the Administrator Guides ;-)
    I get the feeling you are trying to learn this on your own rather than attend a class. My advise is to attend some classes. They are well worth the investment! :)
    As to videos, you might want to try searching uTube. I've seen some Forms tutorial videos out there in the past.
    Lastly, your best source of 'Forum' help is the General EBS Discussion forum.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Oct 14, 2010 9:23 AM

  • USING TEMPLATE IN A DIFFERENT DATA SOURCE BUT WITH THE SAME GL QUBE

    Hi, I want to chance connection in a SV Workbook to another data source. As we are having several test instances I need to be able to use the same Query workbook on different instances.
    I've not been able to reproduce the steps to get the SV to ask for the new instance/source.
    Below is what I did before but can't get to work again. Please advice
    1. Open Excel and Open the SV Template you want to use that containing a different Shared URL (You can check this with (T) Smat View > Sheet Info. Login as User/PW: Casey.Brown/<weekly PW>
    2. Make sure SV Options Shared Connection URL is set to point to the new instance SV > Options > Advanced > Shared Connections URL, for example 'https://fapXXXX-bi.oracleads.com/workspace/SmartViewProviders' (B) OK
    3. Open Smart View Panel Navigator > Open > Smart View Panel
    4. Select a 'Recently Used' connection in the Panel that points to the new instance. If you don't have it create one by connecting to your new instance and then Disconnect All.
    5. In the Login to Fusion Applications window login as User/PW: Casey.Brown/<weekly PW>
    (B) Sign In
    NOTE: You have to click on button Sign In. You cannot press enter on keyboard as this makes the login window to pop up again. This is a known issue.
    6. In the Connect to Data Source pop up window login as User/PW: Casey.Brown/<weekly PW>
    (B) Connect
    A pop up window 'Smart View' will pop up: 'The worksheet contains data from prior operation. What do you want to do with the contents of the sheet?
    -> Clear sheet contents and POV
    -> Reuse sheet contents only (Free operation will take place, existiong POV will be lost.)
    -> Reuse sheet contents and POV (New ad hoc connection/Smart Slice must be consistent wit existing contents.)
    7. Select 'Reuse sheet contents and POV
    Depending on seeded data member changes you may receive 'Input Grid contains unknown Memebers' pop up window.
    (B) OK
    If you get above you need to correct unvalid members.
    For example removing Budget-Budget and replace it with Budget- for the Scenario dimension. Then you will be able to use the sheet with the new data source.
    Please advice on what step is needed to get the system to provide the pop up window 'Smart View': 'The worksheet contains data from prior operation. What do you want to do with the contents of the sheet?
    Thanks,
    Max.

    You can only sync with one iTunes library. However, you can manage music and videos among different computer/iTunes libraries. See:
    Using iPhone, iPad, or iPod with multiple computers
    If you want to change syncing computers see:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    If all the media is in the iTunes library of the second computer then you can omit the transferring media steps.

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

Maybe you are looking for