Posts

Showing posts with the label Anonymous

How to get a display form in sharepoint public site

Image
This time I will present to you the difference between the two ways that would have the display form (or new/edit) in sharepoint public site . As I explained before, I had to activate the " Lockdown Feature " to lock the form from public Web site. Also, I said that if we want to see our form, we must create a new custom form using SharePoint designer. The SPD will help us to carry out the redirect (with " Supporting Files "). I was asked Yesterday to create a WebPart that displays links that lead to the Item list (our custom form). I know the code that refers to display form list.Forms[PAGETYPE.PAGE_DISPLAYFORM].ServerRelativeUrl; The problem is that this code refers to the original form (from list folder) and the "lockdown feature" lock me this path ( 401 unauthorized ). How I will get my form? Solving this problem I created a Console Application that will help me I found the following code: list.ContentTypes[0].DisplayFormUrl To get the ...

How to install and work with lockdown feature in SharePoint

Image
Lockdown Feature - if you want to lock anonymous users out of your SharePoint Forms pages on public site, Follow these steps: 1. Write this command on the server stsadm.exe –o activatefeature –url http://YourSite -name ViewFormPagesLockDown 2. Define Anonymous 2.1 Go to: Central Administration > Application Management > Authentication providers 2.2 Choose your site 2.3 Anonymous Access -> Enable anonymous access Now go to your site and define the site Anonymous. 2.3 Site Actions > Site Settings > Modify All Site Setting Users and Permissions > Advanced permissions > Actions > Anonymous Access > All sites Tips: 1 - If you broken your Permissions you will need to it (2.3) to all your sites 2 - Look this link: Work with a SharePoint list and Lockdown Feature

Create a custom list form in SharePoint

Image
This time I'll explain how to create a custom form in SharePoint 2007 . The same example I will explain about "new item" ( New Form ), you can intuitively, in the same way, build a form of editing ( Edit Form ) and a form of view item ( Display Form ). One reason to create a custom form is redesigned, another reason is the function LockDown Feature form STSADM - " Lock Down Feature " is a function for an Anonymous Site as I explained previously . We Knows the "New Form" that comes out of the box in SharePoint (See example screen "New Item" in MOSS 2007 picture below). We want to build a new form. The form that will be a new design and located in different library ( Not in Lists library ) - that the Lock Down Feature will not disturb us to work. First we'll create a copy of the original NewForm.aspx to Pages library . Now will change the name (preferably - not required). You can of course create a new aspx form in SharePoint D...

Work with a SharePoint list and Lockdown Feature

Tip time: When you want to prevent Anonymous Users access to forms of the list, such as Allitems.aspx, Newform.aspx, Editform.aspx and Diapform.aspx in a SharePoint anonymous web site - use the Lockdown Feature . But how can Anonymous Users view or edit details of the list? Two possible: Development WebPart that performs the action - sometimes worth especially in developing or buying that WebPart is generic. Create a Custom Form page with SharePoint Designer in the library that not found in the directory list. Intention to create a page in SPD in a Library such as Library Pages. The feature does not prevent the pages that are not the library related to the list itself.. The second way, Sveta and I found it in the hard way.

Problems with wrong Alternate Access Mappings in SharePoint

Image
Does it ever happen to you that you're overwhelmed with problems, and you have no idea where to start? ... That was recently the case for me. I started a new Internet Web site in SharePoint 2007 (Anonymous site). I created a new edit site in a different port . Everything looked normal, the web parts are standards. The usual design ... All good. Then ... Problems began to emerge: 1. One Web Part that works with the site columns , does not work well on the editing site. I looked the code, but everything looks ok... The usual site (port 80) is working properly. 2. For some reason, in the editor site, it's impossible to list using the datasheet . 3. The most serious problem, when entering into Share Point Designer, and trying to run " Detach from Page Layouts " to a page I get " object reference not set to an instance of an object ." What does this mean? I will not give you my rigors of the journey for finding a solution, (Google didn’t help this time),...