<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding custom Aspect to new users in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303554#M256684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I followed Jeff Potts' excellent recipe for adding a custom property (using a mandatory custom Aspect) to users (from &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/archives/2012/02/27/1555" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;), and it works for my installation (4.1.2 Enterprise).&amp;nbsp; Sort of.&amp;nbsp; I can make persistent changes to whatever user I'm logged in as, but when I create a new user or edit from the Admin console there is no field for this new property.&amp;nbsp; I'm not surprised that this is the case, since I haven't modified any of the relevant templates other than the "Edit Userprofile" one found at userprofile.get.html.ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question, then, is what are the templates for the Admin console's New User and Edit User, and where can they be found?&amp;nbsp; I also suspect that some other code changes might be necessary to accomplish these changes, so if someone knows that I'd be glad to know as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; I'm told that I'll also be using the "Upload User CSV File" option from the Admin console to upload a bunch of users, so I'll also need to modify that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 15:11:52 GMT</pubDate>
    <dc:creator>srowsell</dc:creator>
    <dc:date>2013-04-24T15:11:52Z</dc:date>
    <item>
      <title>Adding custom Aspect to new users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303554#M256684</link>
      <description>I followed Jeff Potts' excellent recipe for adding a custom property (using a mandatory custom Aspect) to users (from here), and it works for my installation (4.1.2 Enterprise).&amp;nbsp; Sort of.&amp;nbsp; I can make persistent changes to whatever user I'm logged in as, but when I create a new user or edit from the</description>
      <pubDate>Wed, 24 Apr 2013 15:11:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303554#M256684</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-04-24T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom Aspect to new users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303555#M256685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is (for Share), that you will be looking at extending this Share (frontend) part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/profile/&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Especially look at the userprofile.get webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the repository side, you can take a look at &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/profile/&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; scripts for start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:15:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303555#M256685</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-04-24T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom Aspect to new users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303556#M256686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Zlatko…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's the part that I already did.&amp;nbsp; I have already implemented a new Aspect for users; users can set or edit this property at the "Edit Profile" dialogue.&amp;nbsp; Mr. Potts' blog post that I referenced in my initial post describes this in some detail, including samples of the webscripts necessary to do so.&amp;nbsp; My problem is that this does not include the ability to add this property at user creation, or from the Admin console; right now only each user can edit or view this property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I think I need to go with this – after having spent the last couple of hours poking around – is the users.js and the users.get webscript, which I'm investigating now.&amp;nbsp; I have extended the users.get.html.ftl template to include the labels/text fields, and now I have to extend the users.js functionality.&amp;nbsp; I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 19:28:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303556#M256686</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-04-24T19:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom Aspect to new users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303557#M256687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, maybe someone can tell me if I'm on the right track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have edited the users.js (and renamed it) to add in the functionality of the new property, and point to it using users.get.head.ftl.&amp;nbsp; The idea is for the new javascript to override the default users.js.&amp;nbsp; I have also edited users.get.html.ftl to add in the fields necessary, and this works just fine, but the fields are not populated by the javascript.&amp;nbsp; Just to make sure that there wasn't just a problem with the model, I had the javascript populate the field with a string "blah", but I don't see this happening in Share when I use the Admin console to edit a profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing occurs to me:&amp;nbsp; in Mr. Potts' example (which I cited in the OP) he has a block in the share-config-custom.xml file which overrides the default user-factory like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&amp;lt;config replace="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;false&amp;lt;/client-debug&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug-autologging&amp;gt;false&amp;lt;/client-debug-autologging&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;config condition="WebFramework" evaluator="string-compare"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;web-framework&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaults&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;user-factory&amp;gt;webframework.factory.user.mymodel&amp;lt;/user-factory&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/defaults&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/web-framework&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing an override for this as well?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:35:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303557#M256687</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-04-26T15:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom Aspect to new users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303558#M256688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you also overwrite the minified version of the users.js? We're talkin client side script, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should also &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;java -jar TOMCAT_HOME/share/WEB-INF/lib/yuicompressor-version-xxx.jar share/components/users.js -o share/components/users-min.js.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don' have the exact name of that jar, but it is usually there or just download it off of internet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or simply copy users.js over users-min.js for now and worry about minifying when you go to production &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:08:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303558#M256688</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-04-26T16:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom Aspect to new users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303559#M256689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didn't overwrite users.js, but rather I'm extending it by pointing to another .js file (in users.get.head.ftl), and yes, I did include the minified version of that file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 13:24:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-aspect-to-new-users/m-p/303559#M256689</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-04-29T13:24:37Z</dc:date>
    </item>
  </channel>
</rss>

