Datum
<Datum ID="foo" Name="foo">foobar</Datum>
http://server.domain/path/MyPage.page?
foo
"foobar"
http://server.domain/path/MyPage.page?foo=bar
"bar"
If your component has Datum parameters in its ContentXML, the values will be changed to query parameters values with corresponding names, automatically.So if my component has a parameter <Datum ID="foo" Name="foo">foobar</Datum> and I access the page with the URL http://server.domain/path/MyPage.page?, then the value for parameter foo will be "foobar", but if I access the page with the URL http://server.domain/path/MyPage.page?foo=bar then the parameter foo will have the value "bar".Stokes.
hi,my livesite version is 3.0use this method to pass parameter form one page to another,but it doesn't work,is there other need to take care?
<Data> <External> <Parameters> <Datum ID="Parameters" Name="Parameters" Type="String">inital value</Datum> </Paramaters> <Object Scope="local">com.interwoven.livesite.external.runtime.Debugging</Object> <Method>dumpContext</Method> </External></Data>
Object
Method
<xsl:template match="/"> <div> <h1><xsl:value-of select="//Datum[@Name='Parameters']"/></h1> </div></xsl:template>
What you mean it doesnt work? What sort of error are you getting? 404? When does it not work -- in preview or in production?You may want to use PAGE_LINK or URL_PREFIX tokens. Also keep in mind that if you use PAGE_LINK then you do NOT need *?* in your href as the token will create one for you...
"Parameters"
Parameter
In your component code, the Datum is named "Parameters" but in your URL you're passing Parameter (singular). Is that a typo or could the mismatch be your problem?Stokes.
Have you tried something like this: <a href="$PAGE_LINK[printers_and_all_in_ones/destination]Parameter=new">URL Link Text</a> ?????? Try that. I think that is similar to your A2-B2 combo. If you want URL_PREFIX to work then the way the params are passed is a bit different. For example: $URL_PREFIX/sites/epson-singapore/printers_and_all_in_ones/destination.page?Parameter=new << this will probably work fine in Runtime. However you need a little different syntax for passing parameters in SP Preview. Look up the SP Dev guide you need to pass params as param.Parameter=new in preview mode. So you'll have to code your XSL / External logic to account for whether the execution is being done in preview or runtime and based on that output different link.With PAGE_LINK, all of this logic is already taken care of for you. I would recommend the PAGE_LINK here as that is the cleanest and pretty simple way to do it.
First, thanks for Stokes's care. But actually, Parameter and Parameters are in two different test. It didn't impact the pass function.
"Parameter"
External/Parameters
So, in the test in question, is your "Parameter" Datum declared in the External/Parameters section of your component? Those are the only Datums that are automatically bound to the query parameters.Stokes.
hi, vpatel and allNow i am facing a new problem:under workflow, if the attach file is dcr(.xml), then reviewer will see dcr form screen when preview. (Here we didnt use tpl while livesit.) And the client request to more friendly. So i think we can convert the url .../templatedata/product/inkjet/data/T30.xml to something related this dcr. e.g http://icd:81/iw-cc/previewfile?vpath=/default/main/epson/SINGAPORE/WORKAREA/shared/sites/epson-singapore/printers_and_all_in_ones/product.page?filename=T30.xmlThen we can preview this dcr under .page. Obviously, it will be more friendly.But the same problem, system only can recognise http://icd:81/iw-cc/previewfile?vpath=/default/main/epson/SINGAPORE/WORKAREA/shared/sites/epson-singapore/printers_and_all_in_ones/product.page if we add ?filename=T30.xml behind , when click it will say "The file //icd/default/main/epson/SINGAPORE/WORKAREA/shared/sites/epson-singapore/printers_and_all_in_ones/product.page?filename=T30.xml could not be found."for this situation, is this method viable? if yes, how can i make this kind of url available? if no, is there any method to implement this function?
You want to pass the filename as a parameter to the URL that is being passed as a parameter (parameter to parameter)?If yes, you should make an attempt to read the SP Dev guide. There is a solution for your problem outlined straight up in there.
you mean something like component template, right?