Is it possible to change the name of the parameters according to some conditions ?
Like ....i have one drop down box ...i have 2 values in it ..say ....Solutions & products...
If i select the solutions then some parametes should be disabled & some have to change there name(i dont want to change Alias)....Is it possible to do spmething like this using xslt ?....
Lets say .....i have two templates ...one is solutions which has header,sub header & content in it & other is products which has only header & content in it.
I want to give user to choose any of the templates using dropdown box (i have done this & its working properly).
Now i have created parameters such as header,sub header & content....
When user selects solutions then all three parameters should be enabled as this template has all these parameters but when user selects products then parameter named sub header should be disabled ...i want to do thid using xslt.....hope u can understand what i want to do ......
In same way can change the name of the parameter according to condition in dropdown box using xslt
It's still a bit unclear to me if you're somehow replicating the built-in Template functionality of Umbraco or if that's not at all what you're trying.
Here's kind of a solution using a property named customTemplate which you can define multiple values for (what you already did, probably) and use those values to decide what gets rendered to the page. The example uses the same Document Type for both versions, which is what I think you're doing:
header,subheader & content are properties of the document type......that will be seen to the webmaster who will write some content in from the umbraco editor.....
i want that if web master choose products then subheader property should be disabled as i dont want it for products & web master should only can write on header & content .....
You should really use the built-in power of Document Types in Umbraco - just create them as two different document types, and then your webmaster can choose whichever he wants when creating new content.
To answer your question - no, it's not possible to hide a property like that (atleast not without some kind of special handler, of which I know nothing how to code)
Changing parameter names using xslt
Hi,
I have createdd parameters in my document type.
Is it possible to change the name of the parameters according to some conditions ?
Like ....i have one drop down box ...i have 2 values in it ..say ....Solutions & products...
If i select the solutions then some parametes should be disabled & some have to change there name(i dont want to change Alias)....Is it possible to do spmething like this using xslt ?....
Can you elaborate and give an example of what you're trying to do?
Cheers,
/Dirk
Lets say .....i have two templates ...one is solutions which has header,sub header & content in it & other is products which has only header & content in it.
I want to give user to choose any of the templates using dropdown box (i have done this & its working properly).
Now i have created parameters such as header,sub header & content....
When user selects solutions then all three parameters should be enabled as this template has all these parameters but when user selects products then parameter named sub header should be disabled ...i want to do thid using xslt.....hope u can understand what i want to do ......
In same way can change the name of the parameter according to condition in dropdown box using xslt
There is no one who can help me in this ?
Hi vaibhav,
It's still a bit unclear to me if you're somehow replicating the built-in Template functionality of Umbraco or if that's not at all what you're trying.
Here's kind of a solution using a property named customTemplate which you can define multiple values for (what you already did, probably) and use those values to decide what gets rendered to the page. The example uses the same Document Type for both versions, which is what I think you're doing:
/Chriztian
That i have done ....
header,subheader & content are properties of the document type......that will be seen to the webmaster who will write some content in from the umbraco editor.....
i want that if web master choose products then subheader property should be disabled as i dont want it for products & web master should only can write on header & content .....
hope u understand...
Hi vaibhav,
You should really use the built-in power of Document Types in Umbraco - just create them as two different document types, and then your webmaster can choose whichever he wants when creating new content.
/Chriztian
I have to give this opetion in one document type only..
Can we disable thet property if we dont want ?....
If yes then please give some demo code for that....
To answer your question - no, it's not possible to hide a property like that (atleast not without some kind of special handler, of which I know nothing how to code)
/Chriztian
ok,
I think its not possible to change the properties like mandatory,description of the generic properties using xslt .
Thanx for your help ...
is working on a reply...