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

>> # 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: r3 - 07 Aug 2013 - 13:56:09 - AntonioTerceiro

irc Talk with Devs Now!

 
Translations: English
Search on Docs:
   
ActionItem Search:

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