Article

9159506's picture
article
Reads:

3200

Score:
0
0
 
Comments:

0

Disabling "Modify Photo" in eGuide

(View Disclaimer)

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.


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell