67 Results
Valid And Invalid Severity 1 Examples
To help determine what Khoros considers a valid Severity 1 scenario, we've put together the following examples for you. Please see the attached document.11KViews
Sign in to react to this post0Comments
Aurora: User fields synced between Community and Salesforce
This article lists the user fields that are synced between the community and Salesforce. Note: "Data type" defines the type of data a field can hold and its specific constraints. For instance, n...1KViews
Sign in to react to this post0Comments
Unsolvable error trying to get tags for a message
...t;/#list> <#else> <#assign utag = "NONE" /> </#if> I want it to plug into the JSON-LD code as the keywords for the message (as defined by the user): <s...Solved465Views
Sign in to react to this post4Comments
- luk7 years agoBoss
It would be helpful if you could post the actual freemarker error that you're getting, there is usually some information that can point in the direction of the problem. So I'm trying to "blindly" debug your issue =D...
let's see, for example this part of your code:
<#if var_usertags.data.items?has_content> <#list var_usertags.data.items as msgtag> <#assign utag = msgtag.text?string /> </#list> <#else> <#assign utag = "NONE" /> </#if>probably won't do what you are intending to, why? Because you're re-assigning the utag variable each time you #list over your tags, therefore even if you had multiple tags, your utag variable will always just contain one, the LAST one! The code can be written a bit more elegantly (and hopefully working as intended) like this:
<#assign utag = [] /> <#list var_usertags.data.items> <#items as msgtag> <#assign utag = utag + [msgtag.text] /> </#items> <#else> <#assign utag = ['NONE'] /> </#list>as you probably understood, the utag variable is now a sequence (think array...), when outputting it in your JS object, you'd simply do:
"keywords": "${utag?join(' ')?js_string}",notice the ?js_string, might be useful in that context, more info here.
you could also optimize your query a bit by just requesting the necessary information that you need, e.g. only the tag-text:
<#assign usertagQuery = "SELECT text FROM tags WHERE messages.id = '${msg_id}'" />but that's more a cosmetic thing, the query is correct as far as I can tell.
Sign in to react to this post
Launching on Khoros Communities: Session #1: Why Communities Aurora? | Instructor Led-Training
Recording from this live webinar can be found in Khoros Academy: Launching on Khoros Communities ILT Series: Why Communities Aurora? *Please log into Khoros Academy prior to accessing the recording...812Views
Sign in to react to this post0Comments
Instructor-Led Training on Spam Management for Khoros Communities Classic
Recording from this live webinar can be found in Khoros Academy: Spam Management for Communities Classic *Please log into Khoros Academy prior to accessing the recording link above. Q&As fr...569Views
Sign in to react to this post0Comments
Get permission denied in REST API call
...eekly</setting><setting name="blog.blogroll" type="string"/><setting name="blog.comments_per_page_num" type="string">50</setting><setting name="blog.enable_comments" type="s...Solved556Views
Sign in to react to this post2Comments
- AdamN13 years agoKhoros Alumni (Retired)
The ability to access community-level settings is typically restricted to Administrators. Specifically, I believe the user must have the "Update Communities" permission granted in order to read or modify community-level settings.
Typically the only settings that a regular user will be able to access are their own user settings. For example:
/restapi/vc/users/self/settings
It's strange that you're getting a permission denied error, though. I would have expected the response to just contain an empty settings node, for example:
<response status="success">
<settings type="settings" href="/settings"/>
</response>Are you able to make any other REST API requests successfully as that user?
Sign in to react to this post