Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Read my caveat first - about half way down in the answer. Bottom line: you are better off working with the API if possible. If it doesn't appear to be possible, then work with Ektron Support so that they are aware of the use case and can try to work it into future versions of the product!</h2> <p>Using Ektron v9.0 sp1, I found the following:</p> <p>This SQL script gives you the definition of the community group:</p> <pre class="lang-sql prettyprint-override"><code>SELECT * FROM community_group_tbl WHERE group_id = 1 </code></pre> <p>One of the fields in this table is <code>folder_id</code>. If you use this to look up the corresponding record in the <code>content_folder_tbl</code>, you should find a record where <code>folder_type</code> is equal to 6. This value corresponds with the Community folder type in EkEnumerations:</p> <pre class="lang-cs prettyprint-override"><code>public enum FolderType { Content = 0, Blog = 1, Domain = 2, DiscussionBoard = 3, DiscussionForum = 4, Root = 5, Community = 6, Media = 7, Calendar = 8, Catalog = 9, Program = 14, } </code></pre> <p>My folder id was 80, so I used this SQL:</p> <pre class="lang-sql prettyprint-override"><code>SELECT * FROM content_folder_tbl WHERE folder_id = 80 </code></pre> <p>I also noticed that there is a record in <code>taxonomy_tbl</code> where <code>folder_id</code> is equal to 80:</p> <pre class="lang-sql prettyprint-override"><code>SELECT * FROM taxonomy_tbl WHERE folder_id = 80 SELECT * FROM taxonomy_tbl WHERE taxonomy_parent_id = (SELECT TOP 1 taxonomy_id FROM taxonomy_tbl WHERE folder_id = 80) </code></pre> <p>I must admit, however -- I wasn't able to find the full membership list in the database. I found a table called <code>user_to_group_tbl</code>, but it seemed to only have the CMS Users that belonged to the group, with membership users apparently being stored somewhere else.</p> <p><strong>Now for the caveat:</strong> are you sure you want to be looking all this stuff up directly in the database? I know that for some scenarios it can be the best way to go, but the more complex the lookup, the more risky a direct SQL query becomes. Selecting a content block or a taxonomy folder are relatively straight-forward, but this lookup already looks complex. Multiple tables are involved, and you'll be bypassing all the business logic that Ektron has built in to its API.</p> <p>This API code will get all the users from a community group:</p> <pre class="lang-cs prettyprint-override"><code> var cgm = new CommunityGroupManager(); var users = cgm.GetUserList(1); foreach (var directoryUser in users) { Response.Write(directoryUser.Id + " - " + directoryUser.Username + "&lt;br/&gt;"); } </code></pre> <p>You could combine this code with the concept of <a href="http://documentation.ektron.com/cms400/v8.60/Reference/Mobile/Advanced/Content/Developer/extension.htm" rel="nofollow">CMS Extensions</a> and set up event handlers like so:</p> <pre class="lang-cs prettyprint-override"><code>public class UserGroupCustomExtension : UserGroupStrategy { public override void OnAfterAddUserGroup(Ektron.Cms.UserGroupData userGroupData, CmsEventArgs eventArgs) { base.OnAfterAddUserGroup(userGroupData, eventArgs); if (userGroupData.GroupType == (int) Ektron.Cms.Common.EkEnumeration.GroupType.CommunityGroup) { // do stuff here... } } } </code></pre> <p>I'm not sure if the exact event you're looking for is currently available, but there are a lot you can tap into. And if the event you need isn't available, be sure to post it as a feature request in their developer forum: <a href="http://developer.ektron.com/Forums/?v=f&amp;f=107" rel="nofollow">http://developer.ektron.com/Forums/?v=f&amp;f=107</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload