What is the best way to hold the contact details of the company to show on different pages?
What I have so far:
I have a master document type which has a tab called Site settings.
In this tab I have several contact properties like phone, address, ...
Some of them are mandatory.
Then I have created a Home document type and a contact document type as children of the master document type.
When I go to the content and add my Home, as root node, I see this tab and I fill in the contact properties.
After that I create a sub node Contact under the Home node but it askes me to fill in again the mandatory properties.
How can I accomplish this so that I only have one place where I can set the Contact details?
On my template Master, Home and Contact I use the @Umbraco.Field("FieldName") to fill in the properties.
What does your content structure look like? Does the "Home" document type act as the rootnode as well? If so I think you should place the "Contact" information on this document type only.
In your master template you can then use @Umbraco.Field("FieldName", recursive:true) to make sure that the info is rendered on child-nodes as well.
Create global document type for contact details
Hi,
What is the best way to hold the contact details of the company to show on different pages?
What I have so far:
I have a master document type which has a tab called Site settings. In this tab I have several contact properties like phone, address, ... Some of them are mandatory.
Then I have created a Home document type and a contact document type as children of the master document type.
When I go to the content and add my Home, as root node, I see this tab and I fill in the contact properties.
After that I create a sub node Contact under the Home node but it askes me to fill in again the mandatory properties.
How can I accomplish this so that I only have one place where I can set the Contact details?
On my template Master, Home and Contact I use the
@Umbraco.Field("FieldName")
to fill in the properties.Thanks
/Michael
Hi Michael
What does your content structure look like? Does the "Home" document type act as the rootnode as well? If so I think you should place the "Contact" information on this document type only.
In your master template you can then use
@Umbraco.Field("FieldName", recursive:true)
to make sure that the info is rendered on child-nodes as well.Hope this makes sense :)
/Jan
Hi Jan,
works like a charm, thanks!
/Michaël
is working on a reply...