Are you using MVC? Assuming you are, you will need to use a SurfaceController and the UmbracoBeginForm and then save your data to a property using the Content Service (or a custom table).
Ok, so I think you have a tree structure like this?
Home
-> InnerPage
-> More Pages
And you would like to display some content you have added as a TextBox to InnerPage on the Homepage?
Have you created a MacroScript and added the Macro to your MasterPage template?
Once you have done this, then something like this should work (substitute 1234 for your InnerPage id and "address" for the alias of your TextBox property)
@{
var innerNode = Library.NodeById(1234);
}
<p>
@innerNode.address
</p>
calling content from contols
Hello all,
I have a contact page that has textbox to hold the address.Now i want to display the same text in another
page.How can i call the data in that control to another page.
Regards
Hi Aditya,
Are you using MVC? Assuming you are, you will need to use a SurfaceController and the UmbracoBeginForm and then save your data to a property using the Content Service (or a custom table).
So useful links for you
Hope that's helpful
Jeavon
Hello Jeavon Leopold,
Thank you for you answer and sorry for not metioning the q' completely.
Actuallly i am not using MVC. As new begginer to umbraco i have used the starter kit to create sample site and added
a textbox fied to the documet type(inner page). Now i want to display the text in the inner page on to the hompeage (anothr template)
I hope you understand.
Thanks
Ok, so I think you have a tree structure like this?
And you would like to display some content you have added as a TextBox to InnerPage on the Homepage?
Have you created a MacroScript and added the Macro to your MasterPage template?
Once you have done this, then something like this should work (substitute 1234 for your InnerPage id and "address" for the alias of your TextBox property)
Hello Jeavon Leopold,
Sorry i am unable to reply you ...
Yes that is quite useful if i am having a single siteroot.
But if i am using a multilingual site like below and i have to show the contact info how can i achieve ??
Because i here the pageid will not hold ,so i have to refer from the contol itself
Siteroot eng
--- Homepage
---Contact
Siteroot dede
---Hompage
---COntact
Something like this (replace AliasOfContactPage with the document type alias of your contact page):
is working on a reply...