cancel
Showing results for 
Search instead for 
Did you mean: 

How to add link to external site in popup with parameters

zapatdlo
Champ in-the-making
Champ in-the-making
Hi,

i need to add custom link to external site in new window/popup window with some parameters like content id (for example link like: http://external.site/?prams1=dokument-id&param2=other_info) in content actions or properties view.
I read how to write new action, externalise client actions, make new data models, aspects, but there is no such example.

Could someone give an example - where and what to do?

Many thanks.
1 REPLY 1

zapatdlo
Champ in-the-making
Champ in-the-making
I found solution, just in the web-client-config-custom.xml added new action something like that:

    <config>
        <actions>
            <action id="new-window">
                <label>This is new window</label>
                <tooltip>Special external link</tooltip>
                <show-link>true</show-link>
                <style>padding:4px</style>
                <style-class>inlineAction</style-class>
                <image>/images/icons/CheckIn_icon.gif</image>
                <target>_blank</target>
                <href>http://external.site</href>
                <params>
                   <param name="id">#{actionContext.id}</param>
                    ………………………………
                </params>
             </action>


             <action-group id="browse_actions_menu">
                 <action idref="new-window" />
             </action-group>
        </actions>
    </config>

But i have problems with adding javascript (<script>/alfresco/extension/skripts/mySkript.js</script>). If i put the script in place /alfresco/extension/skript or ROOT_WEB/scripts program cannot find file with my script.

Where and how add script?