Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Overwriting String Datum values using External/Prefix
GovindRaj
Hi,
I have the following content in my content XML.
<Data>
<Datum ID="param1" Type="String" Name="param1">abc</Datum>
<Datum ID="param2" Type="String" Name="param2">xyz</Datum>
</Data>
Now I would like to overwrite the default values for String Datum elements "param1' and "param2" at DESIGN/RUNTIME using External/Prefix calls.
Is this possible?
If not is there any other way I could achieve this functionality?
I am using TeamSite 7.2.1.0.0 version.
Thanks In Advance,
Govind
Find more posts tagged with
Comments
Bowker
I'm not 100% sure what you are looking for, I'm not following what you mean by "DESIGN/RUNTIME using External/Prefix "
If you want different values for p1 and p2 than were originally entered when the page is created in the editor, you can put in some logic in your presentation such as:
[HTML]
[/HTML]
You can do something similar in an HTML component using $IF_MODEL
anilgkumar
Hello,
You can't change the value but you can achieve your requirement explicitly as below...
< xsl:variable name='parameter1' >
copy the XSLT code what bowker mentioned in his/her earlier post.
< /xsl:variable >
Snap 2016-10-19 at 13.27.59.png
GovindRaj
Thanks for the suggestions bowker and anilgkumar.
Alterations in the XSLT code should cater my requirement.
But being a newbie to Livesite, I am still eager to know why the product does not provide a feature to alter existing datum values.
Thanks,
Govind
anilgkumar
Hey,
DATUM values cant be changed at Component level editing., Because they are at DECLARATION level. (can have default value)
However, We just need to understand why we use DATUMs? they are building blocks through which business user can provide different values for different pages.
Suppose you have a component which has DATUM for welcome message
<Datum ID="WC" Name="greeting" Type="String">Welcome to DATUM basics</Datum>
Scene-01:
Now, B-user has 10 sites for different countries, after adding this component to en.page, he can edit the DATUM and provide his/her message. and for fr.page he/she can change to message in french...
That means one has ability to change value for DATUM at the PAGE level editing of the component, not at COMPONENT level.
Scene-02:
Instead of asking B-user to change DATUM every time, You can take the help of JAVA(need to write mechanism to understand which page called) to change the value of DATUM, where values get picked up from properties file.
Its an excellent feature provided by Interwoven, similar to how a normal function() works.
Let me know, if any comments.
Regards, Anil