cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
290
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Ratnadeep Ray on 18-11-2011 05:44:57 AM
Suppose the customer has this requirement of being able to deploy an iframe which has been pre-configured. Can this be done? In other words the admin configures an iframe and then the other users can deploy it on their  "my views" without having to configure the iframe. Can this be done in the portal settings? 
 
Yes, this can be done. We have to follow the below steps :- 
 
<strong style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; padding: 0px; margin: 0px; border: 0px initial initial;">***Important***: Make a back-up of all the files you are modifying. Just in case there's a problem, you can revert them back.
 
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 1: Locate /opt/cisco/WebEx Social/tomcat/webapps/ROOT/WEB-INF/<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">liferay-display.xml

For each category, append the following lines

javax.portlet.title.IFRAME_YAHOO=Iframe Yahoo
javax.portlet.title.IFRAME_GOOGLE=Iframe Google
javax.portlet.title.IFRAME_CISCO=Iframe Cisco

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 2: Locate /opt/cisco/WebEx Social/tomcat/webapps/ROOT/WEB-INF/<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">liferay-portlet-ext.xml

Add the following

    <portlet>
        <portlet-name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">IFRAME_YAHOO</portlet-name>
        <icon>/html/themes/classic/images/AddApplication/Applications/iframe.png</icon>
        <struts-path>iframe</struts-path>
        <configuration-action-class>com.liferay.portlet.iframe.action.ConfigurationActionImpl</configuration-action-class>
        <use-default-template>false</use-default-template>
        <restore-current-view>false</restore-current-view>
        <instanceable>true</instanceable>
        <private-request-attributes>false</private-request-attributes>
        <private-session-attributes>false</private-session-attributes>
        <render-weight>50</render-weight>
        <css-class-wrapper>portlet-iframe</css-class-wrapper>
    </portlet>
    <portlet>
        <portlet-name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">IFRAME_GOOGLE</portlet-name>
        <icon>/html/themes/classic/images/AddApplication/Applications/iframe.png</icon>
        <struts-path>iframe</struts-path>
        <configuration-action-class>com.liferay.portlet.iframe.action.ConfigurationActionImpl</configuration-action-class>
        <use-default-template>false</use-default-template>
        <restore-current-view>false</restore-current-view>
        <instanceable>true</instanceable>
        <private-request-attributes>false</private-request-attributes>
        <private-session-attributes>false</private-session-attributes>
        <render-weight>50</render-weight>
        <css-class-wrapper>portlet-iframe</css-class-wrapper>
    </portlet>
    <portlet>
        <portlet-name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">IFRAME_CISCO</portlet-name>
        <icon>/html/themes/classic/images/AddApplication/Applications/iframe.png</icon>
        <struts-path>iframe</struts-path>
        <configuration-action-class>com.liferay.portlet.iframe.action.ConfigurationActionImpl</configuration-action-class>
        <use-default-template>false</use-default-template>
        <restore-current-view>false</restore-current-view>
        <instanceable>true</instanceable>
        <private-request-attributes>false</private-request-attributes>
        <private-session-attributes>false</private-session-attributes>
        <render-weight>50</render-weight>
        <css-class-wrapper>portlet-iframe</css-class-wrapper>
    </portlet>

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 3: Locate /opt/cisco/WebEx Social/tomcat/webapps/ROOT/WEB-INF/<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">portlet-ext.xml

Add the following

<portlet>
        <portlet-name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">IFRAME_YAHOO</portlet-name>
        <display-name>Yahoo</display-name>
        <portlet-class>com.liferay.portlet.iframe.IFramePortlet</portlet-class>
        <expiration-cache>0</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
        </supports>
        <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
        <portlet-preferences>
            <preference>
                <name>auth</name>
                <value>false</value>
            </preference>
            <preference>
                <name>auth-type</name>
                <value>basic</value>
            </preference>
            <preference>
                <name>form-method</name>
                <value>post</value>
            </preference>
            <preference>
                <name>user-name</name>
                <value></value>
            </preference>
            <preference>
                <name>password</name>
                <value></value>
            </preference>
            <preference>
                <name>hidden-variables</name>
                <value>var1=hello;var2=world</value>
            </preference>
            <preference>
                <name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">src</name>
                <value><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">http://www.yahoo.com</value>
            </preference>
            <preference>
                <name>description</name>
                <value>Embed a web page.</value>
            </preference>
        </portlet-preferences>
        <security-role-ref>
            <role-name>power-user</role-name>
        </security-role-ref>
        <security-role-ref>
            <role-name>user</role-name>
        </security-role-ref>
    </portlet>
    <portlet>
        <portlet-name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">IFRAME_GOOGLE</portlet-name>
        <display-name>Google</display-name>
        <portlet-class>com.liferay.portlet.iframe.IFramePortlet</portlet-class>
        <expiration-cache>0</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
        </supports>
        <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
        <portlet-preferences>
            <preference>
                <name>auth</name>
                <value>false</value>
            </preference>
            <preference>
                <name>auth-type</name>
                <value>basic</value>
            </preference>
            <preference>
                <name>form-method</name>
                <value>post</value>
            </preference>
            <preference>
                <name>user-name</name>
                <value></value>
            </preference>
            <preference>
                <name>password</name>
                <value></value>
            </preference>
            <preference>
                <name>hidden-variables</name>
                <value>var1=hello;var2=world</value>
            </preference>
            <preference>
                <name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">src</name>
                <value><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">http://news.google.com/</value>
            </preference>
            <preference>
                <name>description</name>
                <value>Embed a web page.</value>
            </preference>
        </portlet-preferences>
        <security-role-ref>
            <role-name>power-user</role-name>
        </security-role-ref>
        <security-role-ref>
            <role-name>user</role-name>
        </security-role-ref>
    </portlet>
    <portlet>
        <portlet-name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">IFRAME_CISCO</portlet-name>
        <display-name>Cisco</display-name>
        <portlet-class>com.liferay.portlet.iframe.IFramePortlet</portlet-class>
        <expiration-cache>0</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
        </supports>
        <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
        <portlet-preferences>
            <preference>
                <name>auth</name>
                <value>false</value>
            </preference>
            <preference>
                <name>auth-type</name>
                <value>basic</value>
            </preference>
            <preference>
                <name>form-method</name>
                <value>post</value>
            </preference>
            <preference>
                <name>user-name</name>
                <value></value>
            </preference>
            <preference>
                <name>password</name>
                <value></value>
            </preference>
            <preference>
                <name>hidden-variables</name>
                <value>var1=hello;var2=world</value>
            </preference>
            <preference>
                <name><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">src</name>
                <value><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">http://www.cisco.com/</value>
            </preference>
            <preference>
                <name>description</name>
                <value>Embed a web page.</value>
            </preference>
        </portlet-preferences>
        <security-role-ref>
            <role-name>power-user</role-name>
        </security-role-ref>
        <security-role-ref>
            <role-name>user</role-name>
        </security-role-ref>
    </portlet>

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 4: Locate /opt/cisco/WebEx Social/tomcat/webapps/ROOT/WEB-INF/lib/<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">ext-impl.jar

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 5: Make a backup of ext-impl.jar

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 6: Extract the jar file

locate /content/<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Language-ext_en.properties and

locate /content/<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Language-ext_en.properties

Add the following

javax.portlet.title.IFRAME_YAHOO=Iframe Yahoo
javax.portlet.title.IFRAME_GOOGLE=Iframe Google
javax.portlet.title.IFRAME_CISCO=Iframe Cisco

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 7: Jar the file and rename it to ext-impl.jar

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 8: Place the new jar file from Step 7 in /opt/cisco/WebEx Social/tomcat/webapps/ROOT/WEB-INF/lib/

<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 15px; color: #333333; font-family: arial, sans-serif; ">Step 9: Restart WebEx Social

Subject: RE: Preconfigured iFrames: How to preconfigure iFrames in the WebEx Social app libr
Replied by: Ben Sunderland on 24-11-2011 11:19:06 PM
Hi,
after stripping out all the HTML in this post so I can read it (you might wanna do that), I dont understand the first step.
where exactly do I add the

javax.portlet.title.IFRAME_YAHOO=Iframe Yahoo

lines ?

What you are suggesting is not xml, and yet where you say to add it is - please be specific.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links