Showing posts with label sharepoint. Show all posts
Showing posts with label sharepoint. Show all posts
Wednesday, July 18, 2012
SharePoint - Create pages with left navigaion
There are plenty of internet pages that teach you how to add left navigation while you create a site page by using SharePoint designer, however, this is definitely not necessary. Any pages changed by SharePoint designer will turned to ungosted and not good for program package. A straight way is locating the correct entry to create page. Here follows steps.
1. Site Action - Manage Content and Structure
2. Click the small right triangle beside folder "Pages" from the left navigation menu. Click New - Page.
3. Name the title, URL and choose page layout. I tried the Blank Web Part page.
It works great for me.
1. Site Action - Manage Content and Structure
2. Click the small right triangle beside folder "Pages" from the left navigation menu. Click New - Page.
3. Name the title, URL and choose page layout. I tried the Blank Web Part page.
It works great for me.
Tuesday, October 21, 2008
STSDEV Debugging for WebPart, Site Definition or workflow.
After deploy the app (webpart etc) into SharePoint site, you want to debug your app as below steps:
- Enable debug in project properties.
Right click project and click properties, click [Build] in left panel.
Select the method in Configuration which is the deploy method you just done.
Click to select both "Define DEBUG constant" and "Define TRACE constant".
Click right-bottom "Advanced.." button and change [Debug Info:] to "full".
Click [OK] and save all. - Set breakpoint in debug area of your program
- Run "iisapp" in command line to choose which SharePoint run time "w3wp.exe" you should pick up. You can pick it by your running sharepoint site name.
- Click menu [Debug] - [Attach to Process...], and click the picked "w3wp.exe" and click [Attach] button, go on click [Attach] button on pop up warning window.
- Back to the page which host your app (webpart) and refresh or redeploy.
You will see the debug yellow bar pausing on your code for now. You can now use same debugging method by F11/F10 of VS.
Error handle while try to remove SSP
"The snapshot directory does not exist or is not properly configured."
Occasionally, it happened when I tried to delete SSP in SharePoint farm for verify a disaster/recovery procedure. The SSP can not be deleted successfully and not any changes even delete more times.
I then searched from microsoft and internet but get nothing back. What's the snapshot directory ? The error description looks weird and unreachable by internet.
By checking 12 hive logs, get "Delete site operation cancelled by user. Check the log files for additional details. " Hence I tried to delete the SSP host web application manually first and then go on delete the SSP. It worked then.
Occasionally, it happened when I tried to delete SSP in SharePoint farm for verify a disaster/recovery procedure. The SSP can not be deleted successfully and not any changes even delete more times.
I then searched from microsoft and internet but get nothing back. What's the snapshot directory ? The error description looks weird and unreachable by internet.
By checking 12 hive logs, get "Delete site operation cancelled by user. Check the log files for additional details. " Hence I tried to delete the SSP host web application manually first and then go on delete the SSP. It worked then.
Friday, October 17, 2008
The usage of Microsoft IT Site Delete Capture Feature 1.1
When try to recover a sub-site by the method of the instruction of document which is "stsadm -o store". I received the error message "Your backup is from a different version of Windows Sharepoint Services and cannot be restored to a server running the current version." I almost gave it up.
I got back to test it again for draft my mutiple levels recovery precedure. It looks the microsoft existing solution just missing the part of site and site collection recovery which is what MS IT Site Delete Capture do.
There's just one difference on it, i.e. Site-collection and Sub-site.
I got back to test it again for draft my mutiple levels recovery precedure. It looks the microsoft existing solution just missing the part of site and site collection recovery which is what MS IT Site Delete Capture do.
There's just one difference on it, i.e. Site-collection and Sub-site.
- For Site-collection which was created by central administration. Use the command:
"stsadm -o restore -url http://www.yoursite.com/sites/deletedsitecollectionname -filename deletedsitecollectionname" - For Sub-site which was created by user site action. Use the command:
"stsadm -o import -url http://www.yoursite.com/deletedsubsitename -filename deletedsubsitename
For PWA workspaces or other same level site, you want to use the same operation with sub-site.
For lower level such as document library, list and items, the 2 level recycle bin take over the recovery.
For higher level such as web application, farm. you probably need operate the sharepoint central administration with database tools together.
Labels:
delete capture,
recovery,
sharepoint,
site collection,
subsite
Monday, October 13, 2008
How to get ListTypeID from current created site and list library.
For customizing a BlackBerry smartphone site page, you probably need to set your RendingTemplate for your mobile web app hosting place, generally, I will put it in a list library such as document library or custom list. This way, you will need to find the specific ListTypeID to define your RendingTemplate ID name as "Mobile_ListTypeID_View_Contents".
Here is the quickest method to find it.
Here is the quickest method to find it.
- If these TypeId were customized in this new site definition Onet.xml file, you will have to find it from Onet.xml file within %12 hive%\TEMPLATE\SITETEMPLATES\Site_Type\xml\
- Normally, you will find it from where you created it. You want to find this create.aspx first, such as http://sharepointsite/_layouts/create.aspx. You need back to this create page and move the mouse to each library or type and see the bottom status bar, there should be a link such "http://mysharepoint/_layouts/new.aspx?FeatureId={00bfea71-e717-4e80-aa17-d0c71b360101}&ListTemplate=101" . You got, the last number is what you just need. (101 in this case)
Hope these will helpful.
Please post comment to discuss if you have any question.
Tuesday, September 30, 2008
How to move the shared documents between 2 different farm
Finally, I found a easy way to move the shared documents to another farm without lossing the versions, date, owner informations.
Here is the steps.
- Create a temp sub-site based from publishing template group within the same web application of shared document.
- Use [move] function to move all documents from [Shared Documents] list to temp sub-site. If want keep folder structure, create the same folder structure first and then move.
[move] function can be found - [site action] - [site settings] - [Modify all site settings] - [Content and structure] - [Actions] - Use stsadm export/import to clone this sub-site to another farm.
- Use reverse way to [move] all documents within sub-site to a new [Shared Documents] list.

Subscribe to:
Posts (Atom)