As all my post this one is mainly for my own memories. But if you find it useful you coments are welcome.
All Credit Goes to Alan Grakalic magician and creator of Easy Slider. This modest contribution show an easy path to integrate JQuery stuff with SPF.
I wanted to get a similar slider effect than this one in one of our website.
I decided to use Easy Slider for this purpose it is JQuery and straight forward. For our recipe to work we needed:
- JQuery
- Easy Slider Libray easyslider1.7.js
- Sharepoint foundation 2010 - (Well all this post is about implementing in SPF 2010 :-))
- Sharepoint Designer 2010
- A CEWP or Content Editor Web Part - The beauty ("I think and you can disagree") of this implementation is its ability to work in a CEWP - Put in other word you dont have/need to mess with the code of your pages evrything is done throught a CEWP
Step 1
Using Sharepoint Designer create (if its not done already) a Folder "Utilities" and a subfolder easyslider there you will keep most of the files needed.
there you will now save easyslider1.7.js and easyslider.css (this css is the original css of easyslider modified to work with SPF) the code is a the end of this post ou can also modify yourself the original screen.css
Step2
Using Sharepoint with IE you will create a new page. Name it whatever you fell myfirstpage will do. Place there 4 or 6 pictures that are the same size ie 956*277 save you work and then but only then you can cut (cut no delete) those image. What you just done is to place in the library SitesAsset\SitePage\myfirstapage\ the images for your carrousel.
Step3
In SitesPage you should have now you myfirstpage.aspx verifie with sharepoint designer that it is there. If not something went wrong try to figure out (maybe those instructions are not perfects).
With sharepoint designer in this same folder create a text file myfirstpage slider.txt and copy the following code.
<script type="text/javascript" src="../Utilities/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../Utilities/EasySlider/easySlider1.7.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true,
numeric: true
});
});
</script>
<link href="../Utilities/EasySlider/easyslider.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
$(document).ready(function(){
$("#TestJQuery").text("JQuery is loaded and working").css("color","white");
});</script>
<label id="TestJQuery" style="color: red">JQuery is NOT loaded and working</label>
<div id="container">
<div id="content">
<div id="slider">
<ul>
<li><a href="http://www.keptos.com/preview/30"><img src="../SiteAssets/SitePages/Keptos Home/Equipo.png" alt="Css Template Preview" /></a></li>
<li><a href="http://www.keptos.com/preview/7"><img src="../SiteAssets/SitePages/Keptos Home/Expertise.png" alt="Css Template Preview" /></a></li>
<li><a href="http://www.keptos.com/preview/25"><img src="../SiteAssets/SitePages/Keptos Home/Imaginacion.png" alt="Css Template Preview" /></a></li>
<li><a href="http://www.keptos.com/preview/26"><img src="../SiteAssets/SitePages/Keptos Home/Precision.png" alt="Css Template Preview" /></a></li>
<li><a href="http://www.keptos.com/preview/27"><img src="../SiteAssets/SitePages/Keptos Home/Vision.png" alt="Css Template Preview" /></a></li>
</ul>
</div>
</div>
</div>
It is beyong of the scope of this post to discuss this code because it is really on the scope of jquery an easy slider.
Step4
Magic should at least start. Using ie go to you myfirstpage page an insert a CEWP modify the CEWP and link to "myfirstpage slider.txt" save the CEWP and some magic should happen. The rest is just about tuning the code and the css
Hope this will help you and prepare yourself for 2 hours of good work.
--------------------------------------
easyslider.css code
img{border:none;}
pre{
display:block;
font:12px "Courier New", Courier, monospace;
padding:10px;
border:1px solid #bae2f0;
background:#e3f4f9;
margin:.5em 0;
width:674px;
}
/* image replacement */
.graphic, #prevBtn, #nextBtn, #slider1prev, #slider1next{
margin:0;
padding:0;
display:block;
overflow:hidden;
text-indent:-8000px;
}
/* // image replacement */
#container{
margin:0 auto;
position:relative;
text-align:left;
width:956px;
background:#fff;
margin-bottom:2em;
}
#header{
height:80px;
line-height:80px;
background:#5DC9E1;
color:#fff;
}
#content{
position:relative;
}
/* Easy Slider */
#slider ul, #slider li,
#slider2 ul, #slider2 li{
margin:0;
padding:0;
list-style:none;
}
#slider2{margin-top:1em;}
#slider li, #slider2 li{
/*
define width and height of list item (slide)
entire slider area will adjust according to the parameters provided here
*/
width:956px;
height:277px;
overflow:hidden;
}
#prevBtn, #nextBtn,
#slider1next, #slider1prev{
display:block;
width:30px;
height:77px;
position:absolute;
left:-30px;
top:71px;
z-index:1000;
}
#nextBtn, #slider1next{
left:956px;
}
#prevBtn a, #nextBtn a,
#slider1next a, #slider1prev a{
display:block;
position:relative;
width:30px;
height:77px;
background:url('btn_prev.gif') no-repeat 0 0;
}
#nextBtn a, #slider1next a{
background:url('btn_next.gif') no-repeat 0 0;
}
/* numeric controls */
ol#controls{
margin:1em 0;
padding:0;
height:28px;
}
ol#controls li{
margin:0 10px 0 0;
padding:0;
float:left;
list-style:none;
height:28px;
line-height:28px;
}
ol#controls li a{
float:left;
height:28px;
line-height:28px;
border:1px solid #ccc;
background:#CCCCCC;
color:#555;
padding:0 10px;
text-decoration:none;
}
ol#controls li.current a{
background:#CC0000;
color:#fff;
}
ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus{outline:none;}
/* // Easy Slider */
El Blog de de los expertos de Keptos en implementacion, desarollo y administracion de Sharepoint, con experiencias cotidianas de trabajo con sharepoint This blog is for us a Notepad of tips and tricks from us and all the fans of Sharepoint,
viernes, 31 de diciembre de 2010
jueves, 30 de diciembre de 2010
Tabs and other nice clients Javascript
http://blog.pathtosharepoint.com/2010/04/11/introducing-the-sharepoint-users-toolkit/
Including a super cool tab panel is a Javascript solution easy to configure and implement it fit very well in my Shrepoint Foundation Page.
The tab panel is Easy Tabs V5
Including a super cool tab panel is a Javascript solution easy to configure and implement it fit very well in my Shrepoint Foundation Page.
The tab panel is Easy Tabs V5
Setting UP my SPF Publishing Site
Check Lists
- Import in Site Assets - favicon,logo,jquery
- Import Master Page
With Sahrepoint Designer you can drag and drop
- Setup Anonymous Access
http://a2biz.com/spblog/Lists/Posts/Post.aspx?ID=9"
Configure Anonymous Access in SharePoint Foundation (2010)href="http://blog.drisgill.com/2009/11/sp2010-branding-tip-9-turn-on-anonymous.html"
- Import in Site Assets - favicon,logo,jquery
- Import Master Page
With Sahrepoint Designer you can drag and drop
- Setup Anonymous Access
http://a2biz.com/spblog/Lists/Posts/Post.aspx?ID=9"
Configure Anonymous Access in SharePoint Foundation (2010)href="http://blog.drisgill.com/2009/11/sp2010-branding-tip-9-turn-on-anonymous.html"
Do a little bit of branding
Logo
Titles
Et voila !
domingo, 26 de diciembre de 2010
UPGRADING FEATURES IN SHAREPOINT 2010
From Jan Tielens
If you have developed Features for SharePoint 2007, you’re probably aware of a very serious limitation of Feature Development: upgradability. Deploying version 1 of your customization is no problem, but If you want to deploy a bug fix or additional functionality in version 2, you’re basically on your own. The good news is that in SharePoint 2010, this problem is solved: as a developer you can now build features that are upgradable. The basic concept goes as follows, you built your feature as usual, and optionally you’ve got the opportunity to specify what should happen when the feature gets upgraded from a previous version.
Chris O’Brian has written an excellent series of articles about this topic, so go to his blog to read the details:
hide the Side Panel / Quick Launch area on the v4.master
On dashboard pages I often find I need more space. A quick way to do this is to place this into a Content Editor Web Part.
1 <script type='text/javascript'>
2
3 function v4MasterHideSidePanel() {
4 $('#s4-mainarea').children().eq(0).hide();
5 $('#s4-mainarea').children().eq(1).css('margin-left', '0');
6 }
7
8 $(document).ready(function(){
9 v4MasterHideSidePanel();
10 });
11
12 </script>
1 <script type='text/javascript'>
2
3 function v4MasterHideSidePanel() {
4 $('#s4-mainarea').children().eq(0).hide();
5 $('#s4-mainarea').children().eq(1).css('margin-left', '0');
6 }
7
8 $(document).ready(function(){
9 v4MasterHideSidePanel();
10 });
11
12 </script>
This will hide the Side Panel / Quick Launch area on the v4.master – Master Page (Default Master Page for non-publishing sites)
NB: This method relies on JQuery
sábado, 25 de diciembre de 2010
SharePoint 2010 development random links
RE_Print
SharePoint 2010 development random links
Mental note – need to check links listed below about SharePoint 2010 – some interesting stuff in there. Probably something to do during the summer holidays…
- Getting started with the SharePoint 2010 packaging designers in Visual Studio 2010
- SharePoint 2010 List View Blog Series – Part 1 – Introduction to the new list view
- SharePoint 2010 List View Blog Series – Part 2 – Using the new SharePoint Lists
- SharePoint 2010 List View Blog Series – Part 3 – List view architecture
- SharePoint 2010 Content Iterator class
- Using JQuery and SPServices to display List Items
- An unexpected error has occurred – providing your own custom error pages in SharePoint 2010
- MSDN Webcasts about SharePoint Server 2010
- Visual Studio 2010 SharePoint Developer Tools Import Templates
- Creating Custom SharePoint Server 2010 Field Types and Field controls with Visual Studio 2010
- SharePoint 2010 Developer Training Kit
- SharePoint 2010 Activity Feed – Enterprise twitter
- SharePoint 2010 with filestream RBS provider
- Visualizing data using XSLT: Following up on SPC 2009 session on Building SharePoint mashups with SPD, Bing MAPS and REST Services
- Debugging event receivers in SharePoint 2010 !!!
- Codeplex Project for Word Automation Services
- MSDN Webcast – SharePoint Server 2010 (Part 2 of 8) : Developing rich solutions in Silverlight (level 400)
- Getting started with Business Intelligence in SharePoint Server 2010
- Extending the Outlook 2010 social connector
- SharePoint 2010 Presentations – Developer conference session files
- Publishing Silverlight applications in SharePoint 2010
- Integrating Silverlight BING maps with SharePoint 2010
Download links for SharePoint Foundation 2010 (WSS 4.0) and SharePoint Designer 2010
Download links for SharePoint Foundation 2010 (WSS 4.0) and SharePoint Designer 2010
Did you know that there’s a great way to learn to work with the SharePoint 2010 platform. Just download SharePoint Foundation 2010 - if you would follow the logic of naming from the previous versions, this would have been Windows SharePoint Services 4.0 – together with SharePoint Designer 2010. These tools do not have any additional license cost. So why not try them out…
- SharePoint Foundation 2010
- SharePoint Designer 2010 (32-bit)
- SharePoint Designer 2010 (64-bit) – Note: This is the 64-bit version of SharePoint Designer. SharePoint Designer 2010 only connects to SharePoint 2010. To connect to SharePoint 2007 and earlier sites you must continue to use SharePoint Designer 2007. If you elect to install both applications side-by-side, you must download the 32-bit version of SharePoint Designer 2010, and install it after installing SharePoint Designer 2007. Please also note that 64 bit Office applications will not run if SharePoint Designer 2007 is installed; 64-bit Office 2010 applications should only be used if not connecting to SharePoint 2007 servers.
- Search Server 2010 Express -If you’re using SharePoint Foundation, you can easily add search capabilities to your collaboration environment across SharePoint sites, file shares, web sites, Exchange Public Folders, and third party repositories using Microsoft Search Server 2010 Express
Microsoft free e-books – Visual Studio 2010 and SQL Server 2008 R2
Microsoft free e-books – Visual Studio 2010 and SQL Server 2008 R2
- Moving to Microsoft Visual Studio 2010 : The book is not a language primer, a language reference, or a single technology book. It’s a book that will help professional developers move from previous versions of Visual Studio (starting with 2003 and on up). It will cover the features of Visual Studio 2010 through an application. It will go through a lot of the exciting new language features and new versions of the most popular technologies without putting the emphasis on the technologies themselves. It will instead put the emphasis on how you would get to those new tools and features from Visual Studio 2010
- Introducing Microsoft SQL Server 2008 R2 : Part I, “Database Administration,” is written with the DBA in mind and introduces
readers to the numerous innovations in SQL Server 2008 R2. In Part II, “Business Intelligence Development,” readers discover components new to the SQL Server data platform, as well as significant enhancements to the reporting component.
jueves, 23 de diciembre de 2010
Adding Multilanguage Support
After you installed the necessary language packs you will have the option to enable the multilingual user interface (MUI) on a per site basis using site settings (this is also possible using the SharePoint Object Model – using SPWeb.AddSupportedUICulture).
I am following this instructions:
The working instructions are down below this one is just for reference of my mistake in using Beta Language Packs.
- http://jopx.blogspot.com/2010/01/multilingual-user-interface-mui-in.html
- Then downloading Spanish and French
- While I am downloading I will mak a snaphsot of my VM in case somtehing goes wrong
- Dowloaded language pack Spanish
- Language Setting shows in Site Setting :-)
- Changed Site language to spanish and ERROR !
- Installed French language pack
- Same error
- Removed Cookies and worked !
- Work in english - Still dont work in ananother language french or spanish in my case
- It seems that you should use a site template that support multilanguage :-)
- NOT WORKING
- Back to Snapshot
End of mistake
Here are the corrects instructions
- Reading instruction for http://technet.microsoft.com/en-us/library/cc288518.aspx
- Download Language Packs at http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=646e311a-aaf3-4d30-b03c-2f3c70d19a22
- Noticed that in the download page you should press the button CHANGE and download in DIFFERENTS FOLDERS
- Run the Language PAck and follow instructions
- In case of problem ALWAYS CHECK THAT YOUR DATABASES ARE STARTED
- Spanish Language Pack Installed and Working
- French Language Pack Installed and Working
Now read http://technet.microsoft.com/en-us/library/ff627856.aspx to understand that only interface element are translated not the content :-)
Multilangual content management and multilanguage menu are not implemented by MUI you will need your hown workflow to handle menu and multilingual content management.
I am following this instructions:
The working instructions are down below this one is just for reference of my mistake in using Beta Language Packs.
- http://jopx.blogspot.com/2010/01/multilingual-user-interface-mui-in.html
- Then downloading Spanish and French
- While I am downloading I will mak a snaphsot of my VM in case somtehing goes wrong
- Dowloaded language pack Spanish
- Language Setting shows in Site Setting :-)
- Changed Site language to spanish and ERROR !
- Installed French language pack
- Same error
- Removed Cookies and worked !
- Work in english - Still dont work in ananother language french or spanish in my case
- It seems that you should use a site template that support multilanguage :-)
- NOT WORKING
- Back to Snapshot
End of mistake
Here are the corrects instructions
- Reading instruction for http://technet.microsoft.com/en-us/library/cc288518.aspx
- Download Language Packs at http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=646e311a-aaf3-4d30-b03c-2f3c70d19a22
- Noticed that in the download page you should press the button CHANGE and download in DIFFERENTS FOLDERS
- Run the Language PAck and follow instructions
- In case of problem ALWAYS CHECK THAT YOUR DATABASES ARE STARTED
- Spanish Language Pack Installed and Working
- French Language Pack Installed and Working
Now read http://technet.microsoft.com/en-us/library/ff627856.aspx to understand that only interface element are translated not the content :-)
Multilangual content management and multilanguage menu are not implemented by MUI you will need your hown workflow to handle menu and multilingual content management.
Developer Dashboard with STSADM
Enabling/Disabling Developer Dashboard with STSADM
On a SharePoint 2010 installation, STSADM (by default) is in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN".To turn it off (execute either of these two commands)
stsadm -o setproperty -pn developer-dashboard -pv off
stsadm -o setproperty -propertyname developer-dashboard -propertyvalue off
stsadm -o setproperty -propertyname developer-dashboard -propertyvalue off
To turn it on demand (execute either of these two commands
stsadm -o setproperty -pn developer-dashboard -pv OnDemand
stsadm -o setproperty -propertyname developer-dashboard -propertyvalue OnDemand
stsadm -o setproperty -propertyname developer-dashboard -propertyvalue OnDemand
When you enable Developer Dashboard on demand, you will notice a small icon on the top right corner of the page as shown below. Clicking on this icon will put the Developer Dashboard on the bottom section of the page. You can use this icon to toggle ON or OFF the Developer Dashboard.
miércoles, 22 de diciembre de 2010
Fresh Start
I just setup a new dev environnement (well a refresh)
- Windows 2008 R2 on VMWARE
- SPF
- Sharepoint designer
I hope to have a more stable env and I will add some features
- Windows 2008 R2 on VMWARE
- SPF
- Sharepoint designer
I hope to have a more stable env and I will add some features
domingo, 15 de agosto de 2010
How to assign permissions to ApplicationPoolIdentity account
This is a great feature, but as you mentioned it's not fully implemented yet. You can add the app pool identity from the command prompt with something like icacls, then you can manage it from the GUI. For example, run something like this from the command prompt:
However, you don't need to use this at all. It's a bonus that you can use if you want. You can use the old way of creating a custom user per app pool and assigning the custom user to disk. That has full UI support.
This SID injection method is nice because it allows you to use a single user but fully isolate each site from each other without having to create unique users for each app pool. Pretty impressive, and it will be even better with UI support.
The windows service called Application Host Helper Service is the one that does the mappings between IIS and Windows users.
icacls c:\inetpub\wwwroot /grant "IIS APPPOOL\DefaultAppPool":(OI)(CI)(RX)
Then, in Windows Explorer, go to the wwwroot folder and edit the security permissions. You will see what looks like a group (the group icon) called DefaultAppPool. You can now edit the permissions. However, you don't need to use this at all. It's a bonus that you can use if you want. You can use the old way of creating a custom user per app pool and assigning the custom user to disk. That has full UI support.
This SID injection method is nice because it allows you to use a single user but fully isolate each site from each other without having to create unique users for each app pool. Pretty impressive, and it will be even better with UI support.
The windows service called Application Host Helper Service is the one that does the mappings between IIS and Windows users.
sábado, 14 de agosto de 2010
Sharepoint 2010 SQL Form Based Authentification the easy way - FBA - Claim based - Walkthrought
This manual is for my personal/team use and based in various post in the web - and I thank you all the authors with the link to their posts at the end of this document.
- Mirjam van Olst
- Donal Conlon
- Kirk Evans Blog
- speschka
You will also find links to various tools that depending on your needs can be very useful in your project.
There is various step to get FBA working. But the key factors is to understand that you will have to edit 3 web.config
- The Sharepoint central admin web.config
- The SecurityTokenServiceApplication web.config
- Your FBA application web.config
You wills setup:
- a conection to your user database aspnetdb.
- a provider for your users
- a provider for your roles
- a peoplepicker
1 STEP CREATE YOUR USER DATABASE
create the ASPNETDB by performing these steps:
•Go to the SQL Server database server
•On the database server, open Windows Explorer.
•Navigate to the path %System Drive%\Windows\Microsoft.NET\Framework\v2.0.50727.
•To start the ASP.NET SQL Server Setup Wizard, double-click aspnet_regsql.exe.
•Database Name: Give a name of ASPNETDB and the wizard will create the DB
•Complete the wizard
•Make sure the Application Pool accounts of the web application(s) and the Central Administration web site have access to the database. This is critical and should be careffuly checked.
2 STEPS are covered by this post Configuring claims and forms based authentication for use with a SQL provider in SharePoint 2010
Blogs references:
Configuring Forms Based Authentication for SharePoint 2010 using IIS7 February 23, 2010 Donal Conlon
Configuring claims and forms based authentication for use with a SQL provider in SharePoint 2010
Web Site Administration Tool Overview
Sharepoint-2010-forms-based-authentication-configuration-manager
Tools references:
FBAConfigMgr - This tool can update your 3 web.config - Use with care make backups before !
Visual Studio Express - This tool allow you to manipulate your user database
MembershipSeeder - This tool allow you to manipulate your user database
- Mirjam van Olst
- Donal Conlon
- Kirk Evans Blog
- speschka
You will also find links to various tools that depending on your needs can be very useful in your project.
There is various step to get FBA working. But the key factors is to understand that you will have to edit 3 web.config
- The Sharepoint central admin web.config
- The SecurityTokenServiceApplication web.config
- Your FBA application web.config
You wills setup:
- a conection to your user database aspnetdb.
- a provider for your users
- a provider for your roles
- a peoplepicker
1 STEP CREATE YOUR USER DATABASE
create the ASPNETDB by performing these steps:
•Go to the SQL Server database server
•On the database server, open Windows Explorer.
•Navigate to the path %System Drive%\Windows\Microsoft.NET\Framework\v2.0.50727.
•To start the ASP.NET SQL Server Setup Wizard, double-click aspnet_regsql.exe.
•Database Name: Give a name of ASPNETDB and the wizard will create the DB
•Complete the wizard
•Make sure the Application Pool accounts of the web application(s) and the Central Administration web site have access to the database. This is critical and should be careffuly checked.
2 STEPS are covered by this post Configuring claims and forms based authentication for use with a SQL provider in SharePoint 2010
Blogs references:
Configuring Forms Based Authentication for SharePoint 2010 using IIS7 February 23, 2010 Donal Conlon
Configuring claims and forms based authentication for use with a SQL provider in SharePoint 2010
Web Site Administration Tool Overview
Sharepoint-2010-forms-based-authentication-configuration-manager
Tools references:
FBAConfigMgr - This tool can update your 3 web.config - Use with care make backups before !
Visual Studio Express - This tool allow you to manipulate your user database
MembershipSeeder - This tool allow you to manipulate your user database
viernes, 30 de julio de 2010
Master Page Editing SPF 2010
To edit the master page you need to allow sharepoint designer to do so at the top level site collection has in
http://win-ahvg59orm0m/_layouts/settings.aspx
- then chose Sharepoint Designer setting say ok to all option (I am lazy)
- Restart Sharepoint Designer
The master pages in SPF 2010
A very detailed way of moving around in a master page
Creating a Custom Master Page in SharePoint 2010
Goes to v4.master and edit it
If you designed a custom master page for your SharePoint 2010 and the ribbon is in your way, SharePoint has a built-in control that lets you hide it from anonymous users in few easy steps. Open and check-out your master page, find where your ribbon control starts or look for <WebPartPages:SPWebPartManager id=”m” runat=”Server”/>. Place this control below <Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=”AddAndCustomizePages”>. Find where your ribbon control ends or look for <div id=s4-workspace> and place the closing control above it </SharePoint:SPSecurityTrimmedControl>. Save, check-in the master page and publish it to see the changes. From now on, only logged in users with the right permissions will be able to see the ribbon on the top.
You can also use SPSecurityTrimmedControl to hide from anonymous users almost any controls you want as long as you wrap it properly.
CheckIn the page
save
Et voila ...
PS: Steve, just add a Sign in link and point it to (/_layouts/Authenticate.aspx?Source=/Pages/default.aspx) so you can login. Once you’re logged in you will see the ribbon again.
http://win-ahvg59orm0m/_layouts/settings.aspx
- then chose Sharepoint Designer setting say ok to all option (I am lazy)
- Restart Sharepoint Designer
The master pages in SPF 2010
A very detailed way of moving around in a master page
Creating a Custom Master Page in SharePoint 2010
Goes to v4.master and edit it
If you designed a custom master page for your SharePoint 2010 and the ribbon is in your way, SharePoint has a built-in control that lets you hide it from anonymous users in few easy steps. Open and check-out your master page, find where your ribbon control starts or look for <WebPartPages:SPWebPartManager id=”m” runat=”Server”/>. Place this control below <Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=”AddAndCustomizePages”>. Find where your ribbon control ends or look for <div id=s4-workspace> and place the closing control above it </SharePoint:SPSecurityTrimmedControl>. Save, check-in the master page and publish it to see the changes. From now on, only logged in users with the right permissions will be able to see the ribbon on the top.
You can also use SPSecurityTrimmedControl to hide from anonymous users almost any controls you want as long as you wrap it properly.
CheckIn the page
save
Et voila ...
PS: Steve, just add a Sign in link and point it to (/_layouts/Authenticate.aspx?Source=/Pages/default.aspx) so you can login. Once you’re logged in you will see the ribbon again.
martes, 8 de junio de 2010
lunes, 3 de mayo de 2010
domingo, 25 de abril de 2010
sábado, 17 de abril de 2010
Sharepont 2010 Le nouveaux
http://blogs.dotnet-france.com/juliend/post/SharePoint2010-Introduction-a-SP2010-pour-developpeur.aspx
sábado, 10 de abril de 2010
viernes, 2 de abril de 2010
A Complete Web Part research in sharepoint 2010
Excellent WebPart Tutorial (even if it miss what I need :-)
Bad joke of the day - Microsoft is still using the wss class for connecting the out-of-the box web part !
Bad joke of the day - Microsoft is still using the wss class for connecting the out-of-the box web part !
Migrate WebPart to Sharepoint 2010
Using Visual Studio 2010
- Create a new Sharepoint Project
- In this project include a New webpart
- Note the namespace and the public class used in this new webpart
ie:
namespace Target2010c.Target2010
{
[ToolboxItemAttribute(false)]
public class Target2010 : WebPart
{
protected override void CreateChildControls()
{
}
}
}
- Using a editor edit your original code and replace your namespace and public class by the newly created.
- Paste your edited code in the new webpart
- Et voila
Worked for me
jueves, 1 de abril de 2010
lunes, 1 de marzo de 2010
sábado, 13 de febrero de 2010
Misery of the Content Editor Web Part
a) It is only compatible with IE no FireFox, Safari.
b) Management of hyperlink is messy (and IE make it worse read and read)
Decided to move to TinyMCE
a) How to install in sharepoint
- another version of the script
b) How to manipulate with Jquery
c) How to copy/paste from Word
Or Maybe
Webpart with FCKEditor (not tested)
Fixing Absolute URL (no tested)
Telerik WebPart (not tested too expensive for me )
b) Management of hyperlink is messy (and IE make it worse read and read)
Decided to move to TinyMCE
a) How to install in sharepoint
- another version of the script
b) How to manipulate with Jquery
c) How to copy/paste from Word
Or Maybe
Webpart with FCKEditor (not tested)
Fixing Absolute URL (no tested)
Telerik WebPart (not tested too expensive for me )
jueves, 11 de febrero de 2010
viernes, 15 de enero de 2010
Grouping by month a list
24 February, 2006
SharePoint list: Group by month
If you have a SharePoint list that contains a date column, you may want to create a view that groups all the items by month. For example, in a standard task list you can create a view that groups the tasks by which month the Due Date is in.
To accomplish this, create a calculated field that returns a single line of text and has the following formula:
=YEAR([Due Date])&"-"&CHOOSE(MONTH(DATEVALUE("1/"&MONTH([Due Date])&"/"&YEAR([Due Date]))),"01. January","02. February","03. March","04. April","05. May","06. June","07. July","08. August","09. September","10. October","11. November","12. December")
Then select this field under Group By when customising your view. It can also be used for filtering and a similar calculated field can be used to group by week or by year.
Thanks to Ivan Wilson's post, I realised I don't need an unmanageable long nested if-statement to accomplish this. The CHOOSE function is very useful.
To accomplish this, create a calculated field that returns a single line of text and has the following formula:
=YEAR([Due Date])&"-"&CHOOSE(MONTH(DATEVALUE("1/"&MONTH([Due Date])&"/"&YEAR([Due Date]))),"01. January","02. February","03. March","04. April","05. May","06. June","07. July","08. August","09. September","10. October","11. November","12. December")
Then select this field under Group By when customising your view. It can also be used for filtering and a similar calculated field can be used to group by week or by year.
Thanks to Ivan Wilson's post, I realised I don't need an unmanageable long nested if-statement to accomplish this. The CHOOSE function is very useful.
Labels: SharePoint
jueves, 14 de enero de 2010
sábado, 9 de enero de 2010
Suscribirse a:
Comentarios (Atom)