Skip to main content

Posts

Showing posts from 2009

Create or Customize Master Page in sharepoint

Before using the base master page,please fimiliare yourself with various sections of the base master page code · Required Components · Optional Components · Hidden Components Required Components: If no availability of required components sharepoint page cannot render properly All the components are placed in a their corresponding content place holder asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” /> This content placeholder corresponds to the content area in page layouts.It is required for the MOSS site to render properly. All the required which are not usefull should be placed .If you delete those place holders sharepoint page cannot render properly Following are the some of the required components asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” /> asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server"> asp:ContentPlaceHolder id="PlaceHolderTopNavBar...

Remove inline styles using jQuery

if the page has the following structure to remove all the inline styles use following javascript code embedd after jQuery file

Sharepoint custom list with next and previous arrows

Try this: Open the custom list. On the left side just above the list there's a 'View' dropdownlist. Pull down the arrow and go to 'Modify this view'. Scroll down to 'Item Limit' and input the number of items per page and select the first option (Display...). This should give you navigation arrows to the left of the 'View' dropdownlist. Thanks Girish

Backup sharepoint site and restore it on another server

Follow the steps to take sharepoint site bckup 1-->Open command prompt 2-->Migrate to sharepoint bin directory C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN 3-->Enter following command to take backup of site on "xx" server on port number : "yyy" stsadm -o backup -url "http://xxx:yyy" -filename c:backup.bak 4-->To restore the site use following command stsadm -o restore -url myothersite/ -filename backup-filename.bak (For New Site) Note: In place of myothersite replace your site name use above command for new site .. use -overwrite for already existing site stsadm -o restore -url myothersite/ -filename backup-filename.bak -overwrite (For Existing Site)

Randomly Displaying a Single SharePoint Item on Refresh

This is how: 1. Create a new Data View web part in SharePoint Designer that displays all records in the format you want. We will end up only showing one record, so keep that in mind when you are laying this out. 2. Open the Filter dialog 3. Do not add any clauses, instead check the Add XSLT Filtering box and click Edit 4. Create your XSLT filter. You can just paste in the following code: [position() = (substring(ddwrt:FormatDateTime(ddwrt:TodayIso(),1033,":mm:ss"),6,2) mod count(/dsQueryResponse/Rows/Row))+1] 5. Click Ok and save the page in SharePoint Designer 6. Check your work in your browser. Refresh the page to see the item rotate.

Using Friendly URLs(SEO) in Joomla

In folder apacheconf open file httpd.conf #LoadModule rewrite_module modules/mod_rewrite.so and make it as uncommented LoadModule rewrite_module modules/mod_rewrite.so In site root folder there is rename htaccess.txt to .htaccess and now open .htaccess and go to following line # RewriteBase / and uncomment this line as following and mention root for ex. testsite in following line RewriteBase /testsite Go in administrator panel and click on Global coniguration Here on right side we get SEO Settings all three SEO Settings set as yes and click on save