You are here: Noosfero>Dev>Console>SettingADomain (02 Dec 2011, AurelioAHeckert) EditAttach

Setting a Domain to the Environment or some Profile

You must use the Noosfero Console to follow this steps.

Any Profile (person, community, enterprise) or Environment can have its won domain, or a collection of domains. The entity domains are registered inside its domains list attribute. See this examples:

>> # Setting the Default Environment domain:
>> d = Domain.new( :name => "softwarelivre.org", :is_default => true )
>> Environment.default.domains << d
>> Environment.default.save
>>
>> # Setting the Richard Stalman's profiles domain:
>> p = Person['rms']
>> p.domains << Domain.new( :name => "stallman.org", :is_default => true )
>> p.save

Well, you may know that personal domain feature is only useful if your server response for the user domain, otherwise you are sending the visitors away on any link for this user.


Add comment
You need to login to be able to comment.
 

Topic revision: r2 - 02 Dec 2011 - 22:57:34 - AurelioAHeckert
 
Translations: English
Global Search:
   
ActionItem Search:

Copyright © 2007-2013 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres