fixed up community profile - some of the features from the origina weren't in
there yet
This commit is contained in:
@@ -53,16 +53,27 @@ if (logo_url==null)
|
||||
|
||||
rc.setParameter("logo",logorender.getRenderingObject(logo_url));
|
||||
|
||||
// Get the community type.
|
||||
tmp = cast.toInteger(comm.getObject(VeniceNamespaces.COMMUNITY_SECURITY_NAMESPACE,"type.hint"));
|
||||
if (tmp==0)
|
||||
rc.setParameter("type","Public Community");
|
||||
else if (tmp==1)
|
||||
rc.setParameter("type","Private Community");
|
||||
else if (tmp==2)
|
||||
rc.setParameter("type","Invitation-Only Community");
|
||||
|
||||
// Get the "use category" flag.
|
||||
opts = cast.toOptionSet(globals.getObject(VeniceNamespaces.COMMUNITY_GLOBALS_NAMESPACE,"options"));
|
||||
if (opts.get(0))
|
||||
rc.setParameter("use_category",Boolean.TRUE);
|
||||
rc.setParameter("category",comm.category);
|
||||
|
||||
// Set the parameters that correspond to single properties.
|
||||
rc.setParameter("synopsis",PropertyUtils.getPropertyNoErr(comm,VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,
|
||||
"synopsis"));
|
||||
rc.setParameter("rules",PropertyUtils.getPropertyNoErr(comm,VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,"rules"));
|
||||
rc.setParameter("language",comm.getObject(VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,"language"));
|
||||
rc.setParameter("homepage",PropertyUtils.getPropertyNoErr(comm,VeniceNamespaces.COMMUNITY_PROFILE_NAMESPACE,
|
||||
"url.homepage"));
|
||||
|
||||
// Fill in the location list.
|
||||
locs = new ArrayList();
|
||||
|
||||
Reference in New Issue
Block a user