12-14-2012 09:15 AM
<extension>
<modules>
<module>
<id>Removes from document-details page the Share region.</id>
<auto-deploy>true</auto-deploy>
<components>
<component>
<scope>template</scope>
<region-id>document-links</region-id>
<source-id>document-details</source-id>
<sub-components>
<sub-component id="default">
<evaluations>
<evaluation id="hideDocumentLinks">
<render>false</render>
</evaluation>
</evaluations>
</sub-component>
</sub-components>
</component>
</components>
</module>
</modules>
</extension>
<config evaluator="string-compare" condition="Social">
<!– Alfresco QuickShare social widget - for creating public url that can be shared –>
<quickshare>
<!–
Will be available as Alfresco.constants.QUICKSHARE_URL using javascrip in the browser.
If changing this, make sure this url matches the quickshare rule in urlrewrite.xml
–>
<url>{context}/s/{sharedId}</url>
</quickshare>
<!– Alfresco LinkShare social widget - share a link to social sites –>
<linkshare>
<!–
These actions will be available as Alfresco.constants.LINKSHARE_ACTIONS using javascript in the browser.
Labels will be retrieved from msg key "linkshare.action.<id>.label" unless explicitly provided as an
attribute to the action element.
Each param value accepts the following input: {shareUrl}, {displayName} or a msg key that will be prefixed.
I.e. {body} for the email action's href param will be retrieved using "linkshare.action.email.body".
–>
<action id="email" type="link" index="10">
<param name="href">mailto:?subject={subject}&body={body}</param>
<param name="target">new</param>
</action>
<action id="facebook" type="link" index="20">
<param name="href">https://www.facebook.com/sharer/sharer.php?u={shareUrl}&t={message}</param>
<param name="target">new</param>
</action>
<action id="twitter" type="link" index="30">
<param name="href">https://twitter.com/intent/tweet?text={message}&url={shareUrl}</param>
<param name="target">new</param>
</action>
<action id="google-plus" type="link" index="40">
<param name="href">https://plus.google.com/share?url={shareUrl}</param>
<param name="target">new</param>
</action>
</linkshare>
</config>
model.showQuickShare = (!model.isContainer && model.showQuickShare && config.scoped["Social"]["quickshare"].getChildValue("url") != null).toString();
if (!record.node.isContainer)
{
html += '<span class="item item-social item-separator">' + Alfresco.DocumentList.generateQuickShare(this, record) + '</span>';
}
12-17-2012 01:30 PM
/* Disables the Quick Share link both in documentlibrary and document-details pages */
.item-social a.quickshare-action {
visibility: hidden;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.