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.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
By: 9159506
Nov 22, 2006
12:00 am
Reads:
1,288
Score:
Unrated