Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Can any one tell me How to assign domain to a node programatically?
Thanks in advance
vijay.
vijay,
Here's a link to the api docs to assign domains programmatically
Cheers,
/Dirk
Hello Dirk, The link you mention is dead now.
Could point me in a direction, or is it a new way to do this. I have to set-up a lot of websites(domaians) (60+) and I would like not do it manually.
Thanks.
Hi
You can add a domain to a node using the following code:
umbraco.cms.businesslogic.web.Domain.MakeNew("http://domain.com", nodeId, languageId);
Cheers, Joachim
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to assign domain to a node programatically?
Can any one tell me How to assign domain to a node programatically?
Thanks in advance
vijay.
vijay,
Here's a link to the api docs to assign domains programmatically
Cheers,
/Dirk
Hello Dirk, The link you mention is dead now.
Could point me in a direction, or is it a new way to do this. I have to set-up a lot of websites(domaians) (60+) and I would like not do it manually.
Thanks.
Hi
You can add a domain to a node using the following code:
umbraco.cms.businesslogic.web.Domain.MakeNew("http://domain.com", nodeId, languageId);
Cheers, Joachim
is working on a reply...