Novell Home

Disabling "Modify Photo" in eGuide

Novell Cool Solutions: Tip
By Andrey Karyagin

Digg This - Slashdot This

Posted: 22 Nov 2006
 

Problem

A Forum reader recently asked:

"I want to stop my users from removing or replacing their photos once they have been placed in eGuide - in other words, I want to disable the "Modify Photo" link. Is this possible?"

And here's the response from Andrey Karyagin ...

Solution

If you want to COMPLETELY disable "Modify Photo" link, you should do the following:

1. Locate detail.xsl file. On the Win32 platform its path looks like:
C:\Program Files\Novell\Tomcat\webapps\eGuide\WEB-INF\templates\xsl\default\browser

2. Locate MODIFY PHOTO LINK string. In my case it was string number 189.

3. Comment out the following fragment of XSL code:

<!-- MODIFY PHOTO LINK
                     <xsl:if 
test="(detail/object/attribute[name='PHOTO']/@uihandler='SVBinaryPhotoUpload' 
and (detail/object/attribute[name='PHOTO']/edit='true' or 
detail/object/attribute[name='PHOTOAGREE']/edit='true'))">
                       <tr>
                         <td>
                           <img border="0" width="16" height="16" 
src="{ThemePath}PhotoIcon.gif"/>
                         </td>
                         <td>
                           <a 
href="eGuide?User.context={User.context}&stsh=PhotoDetail&User.dn={detail/object/dn}&Directory.uid={detail/object/uid}&Object.uid={detail/object/object.uid}&Action=DetailModify">
                             <xsl:value-of select="$ModifyPhotoLabel"/>
                           </a>
                         </td>
                       </tr>
                     </xsl:if>
-->

4. Restart both Apache and Tomcat to see the difference.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell