Search This Blog

Showing posts with label Tip. Show all posts
Showing posts with label Tip. Show all posts

Tuesday, October 12, 2010

[Tip] Sometime is hard to say i’m sorry SharePoint 2010

Have you ever face any problem when trying out with no bugs for your SP 2010 master page top navigation? impossible right? The followings are some knowledge sharing from me, hope it helps you…Sp2010 is damn “good”~!

image

It’s auto generated width:3px td in table for each single menu item.

It’s auto generate margin-left: 16px for each single menu item.

Solution :
Look for the AspMenu and add few attributes to the control so that it won’t render the extra pixel on our design…
<SharePoint:AspMenu
                    ID="TopNavigationMenuV4"
                    Runat="server"
                    EnableViewState="false"
                    DataSourceID="topSiteMap"
                    AccessKey="<%$Resources:wss,navigation_accesskey%>"  
                    UseSimpleRendering="false"      …

StaticSelectedStyle-ItemSpacing="0px"
StaticMenuItemStyle-ItemSpacing="0px"
StaticSubMenuIndent = "0px"

After that, you should get something like this screen

image

Wednesday, May 12, 2010

[Tip] SharePoint Unknown Error

i have been told about this on how to work out this error…Here again just a reminder to myself

  1. Locate this file … c:\inetpub\wwwroot\wss\virtualdirectories\<mysitename>\web.config
  2. Search for “CallStack” and toggle that element to “true”. Then, do a search for “customErrors” and toggle that element to “off”.
  3. Save the web.config file.

Thursday, February 25, 2010

[Tip] Enable Hibernate in Windows Server 2008 with hyper-v enabled

I do believe that a lot user might wonder why there isn’t hibernate feature in your Windows Server 2008 machine…Anyway a new version of Windows Server 2008 R2 has make re-enable it back to user so that they can continue enjoying the freedom of power off cache memory..hehe...For those user who still user the previous version before R2, here are some tips / tricks which help you manually disable & enable your hyper-v so that hibernate can alive in such condition…

1st : run > regedit > HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > hvboot >

2nd : set the “Start” value to 3 instead of 1

3rd : Restart your PC

4rd : command prompt > powercfg.exe /hibernate on
*please ensure that your hard disk has sufficient memory to perform hibernation.

5rd : Control Panel > Power Options > set the way you want hibernate started.

Now, when start your laptop you can have full access to the power management functionality. Now note that your hyper-v is not able be activated at this moment because it has been disabled. To enable it back …

command prompt > net start hvboot

Power management is then disabled again until the next reboot. ;-)