I have two pages 1st page doesn't have any page fields but 2nd page has pagefield 'title'.i want to render this title field in 1st page.i have tried many methods like @umbraco.Field("title"),@CurrentPage.title etc in 1st page template but not getting the result....
It's the document type alias that's important here. In my tree "Page2" is the name and "docTypePage2" is the alias of the document type that "Page2" is using.
Rendering page field in another page
Hiii everybody!
This is Ravindra!
I have two pages 1st page doesn't have any page fields but 2nd page has pagefield 'title'.i want to render this title field in 1st page.i have tried many methods like @umbraco.Field("title"),@CurrentPage.title etc in 1st page template but not getting the result....
please help me to get out of this...
Thanks and Regards,
Ravindra
Hi Ravindra,
So you need the id of the second page, then in the template of the first page (assuming the id is 1234)
Jeavon
but i need dynamically...since i will use this in multi-language site
Does page two have a different and unique document type to page one?
yes but my case is i have a site in english with two childs and want to build same site withe another language! you know the rest thing
Ok, how about
Please note the "s" on the end of "DocTypeOfSecondPage" is in addition to the alias
Jeavon
Its not working jeavon!
:(
statically(@Umbraco.Content(1087).title) its working dynamically not working
Is your structure like this:
Then this should work
where page2 is name of the the child page?
i tried with chilpage name but no result jeavon!
It's the document type alias that's important here. In my tree "Page2" is the name and "docTypePage2" is the alias of the document type that "Page2" is using.
exactly jeavon there i missing out very very thankful to you man
Regards ,
Ravindra!
You're welcome
is working on a reply...