thanx rich ... it solved my more than 90% probelm of mine.
Just there is one more problem in that .....
i am using one xslt to truncate the string ...where the string comes from the parameter which is defined in doc. type "homepage"....this also i want to use in the "subMaster" template.
If you change your macro to accept a parameter containing the alias of the property that you want to truncate, then you will be able to use it to truncate any property, just included it in the template:
properties of doc type in template
i have teplates herirachy like this
siteMaster /* main master page */
>Home page
>SubMaster /* master page */
>>page 1
>>page 2
& i have doc. type named"homepage" .....
I have created some properties in homepage doc. type
I m able to use that properties in "Home page" template but that properties are not reflecting in "SubMaster" when i use it in SunMaster template.
What to do ?
Do i have to make any xslt for that ?
Hi,
May be some xslt codes are missing. Could you please post sample code?
Pnima
You need to set recursive="true"
<umbraco:Item field="homePageField" recursive="true" runat="server"></umbraco:Item>
Rich
thanx rich ... it solved my more than 90% probelm of mine.
Just there is one more problem in that .....
i am using one xslt to truncate the string ...where the string comes from the parameter which is defined in doc. type "homepage"....this also i want to use in the "subMaster" template.
This is my xslt code.
Hey,
Try this
Rich
If you change your macro to accept a parameter containing the alias of the property that you want to truncate, then you will be able to use it to truncate any property, just included it in the template:
Modify the macro definition to have this extra parameter and then modify the macro:
Accept the parameter:
and use it
This will work in Umbraco 4.0 and before.
Rich it is working....Thanx
Can u make xslt for property "solutionBlock1_content" so that i can understand it in better way......
is working on a reply...