As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<#if userIsSiteManager> <div class="toolbar"> <a href="#" id="${args.htmlid}-configFeed-link" class="theme-color-1">${msg("label.configure")}</a> </div> </#if>
// Add click handler to config feed link that will be visible if user is site manager. var configFeedLink = Dom.get(this.id + "-configFeed-link"); if (configFeedLink) { Event.addListener(configFeedLink, "click", this.onConfigFeedClick, this, true); }
avm://sitestore/-1;alfresco;site-data;components;page.component-2-1.user~admin~dashboard.xml
<?xml version="1.0" encoding="UTF-8"?> <component> <guid>page.component-2-1.user~admin~dashboard</guid> <scope>page</scope> <region-id>component-2-1</region-id> <source-id>user/admin/dashboard</source-id> <url>/components/dashlets/rssfeed</url> <properties> <feedurl>http://www.lequipe.fr/Xml/Football/Titres/actu_rss.xml</feedurl> <target>_blank</target> </properties> </component>
Event.addListener(configFeedLink, "click", this.onConfigFeedClick, this, true);
addListenerstatic Boolean addListener ( el , sType , fn , obj , overrideContext )Appends an event handlerParameters: el <String|HTMLElement|Array|NodeList> An id, an element reference, or a collection of ids and/or elements to assign the listener to. sType <String> The type of event to append fn <Function> The method the event invokes obj <Object> An arbitrary object that will be passed as a parameter to the handler overrideContext <Boolean|object> If true, the obj passed in becomes the execution context of the listener. If an object, this object becomes the execution context. Returns: Boolean True if the action was successful or defered, false if one or more of the elements could not have the listener attached, or if the operation throws an exception.
// Save url for new config dialog openings this.options.feedURL = (rss && rss.feedURL) ? rss.feedURL : this.options.feedURL;
var c = sitedata.getComponent(url.templateArgs.componentId);
var uri = getValidRSSUri(String(json.get("url"))); c.properties["feedurl"] = uri;