cancel
Showing results for 
Search instead for 
Did you mean: 

customize site properties

janaka1984
Star Contributor
Star Contributor
Hi,


i need to add properties when create new site.

how can i do this?

i use Alfresco community 5.1

Regards

Janaka
1 ACCEPTED ANSWER

Hi angel,

thank you for support.  it is working.

I need to see this newly added property value on http://127.0.0.1:8080/share/proxy/alfresco/api/admin-sites?skipCount=0&maxItems=25.  how can I see it?

<aspect name="stcp:customSiteProperties">
        <title>Custom Site Properties</title>         
         <properties>
            <property name="stcp:siteStatus">
               <title>Status</title>
               <type>d:text</type>       
            </property>
         </properties>
</aspect>


regards
Janaka

View answer in original post

5 REPLIES 5

angelborroy
Community Manager Community Manager
Community Manager
Maybe this can help https://github.com/keensoft/alfresco-summit-2014/tree/master/10-enhancements/02-custom-site-props

Some minor adjustments are required for 5.1.x
Hyland Developer Evangelist

hi angel,

alfresco comminity 5.1 has alfresco-remote-api-5.1.e.jar which contain site.put.json.js and sites.post.json.js.

if i need to modify content of this file, how can i save or where i put this modified file?

Regards
janaka

angelborroy
Community Manager Community Manager
Community Manager
Use the Alfresco SDK, as showed in the link I gave you.

It's based in Alfresco SDK 1.1.1 (4.2.x), but you can use the same Alfresco SDK 2.2.0 (5.1).
Hyland Developer Evangelist

Hi angel,

thank you for support.  it is working.

I need to see this newly added property value on http://127.0.0.1:8080/share/proxy/alfresco/api/admin-sites?skipCount=0&maxItems=25.  how can I see it?

<aspect name="stcp:customSiteProperties">
        <title>Custom Site Properties</title>         
         <properties>
            <property name="stcp:siteStatus">
               <title>Status</title>
               <type>d:text</type>       
            </property>
         </properties>
</aspect>


regards
Janaka

angelborroy
Community Manager Community Manager
Community Manager
I'm using "idEntity" as sample.

On the Share part: https://github.com/keensoft/alfresco-summit-2014/blob/master/10-enhancements/02-custom-site-props/cu...

On the Repo part: https://github.com/keensoft/alfresco-summit-2014/blob/master/10-enhancements/02-custom-site-props/cu...

Just change my "idEntity" by your "siteStatus"
Hyland Developer Evangelist