Posts

Showing posts from January, 2010

Access Lists from Subsites in SharePoint 2007

Yes, you can use CQWP. But ever tried Data Viewer Web Part? SPD, Insert, SharePoint Controls, Data View. Lets filter and sort everything with wizards and no code. Also, can use child lists in "Data Source Library" in the upper right pane, "Connect to another library..." link in the bottom. http://www.lcbridge.nl/vision/2009/dvwp.htm

Fix Ruined NewForm.aspx and other list forms

copy EditForm.aspx to DispForm.aspx Edit DispForm.aspx replace __webpartid for new guid. get it here http://www.somacon.com/p113.php change the last digit from ID / ID field change form type from 6(edit) to 8(new) More info here http://blogs.msdn.com/dszabo/archive/2007/02/20/custom-list-newform-aspx-ruined-in-wss-3-0.aspx

XSL Condition

<xsl:choose>   <xsl:when test="@Featured='1'">do yes/no field check stuff   </xsl:when>   <xsl:otherwise>do other stuff   </xsl:otherwise> </xsl:choose>

Enabling Anonymous Access In Lists

I'm posting this because I've done almost everything there is to do, and still got asked for passwords when entering list forms like DispForm.aspx or AllItems.aspx - Central Admin, Application Management, Authentication Providers, Default, Enable "Anonymous Access" - Website, Site Actions, Site Settings, Advanced Permitions, Settings, Anonymous Access, "Entire Web Site" - List, Settings, List Settings, Permissions for this list, "Anonymous Access", UNCHECK ALL run stsadm.exe –o deactivatefeature –url -filename ViewFormPagesLockdown\feature.xml - List, Settings, List Settings, Permissions for this list, "Anonymous Access", CHECK View and others you might want. Do this for all lists you need stsadm.exe –o activatefeature –url -filename ViewFormPagesLockdown\feature.xml Source http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/e91249b0-d182-416b-8f1c-ce589fca7f50

Internet Explorer keeps asking for password

there are two kinds of ways password can be kept this page uses both of them as a way of testing things http://www.debugtheweb.com/test/passwordautocomplete.asp 1) if you have autocomplete active (IE, Tools, Internet Options, Content, Settings), the first will ask you for passwords, if not, or if you've already clicked not to save the password once, it won't ask you no more you can also delete all browsing history, and delete HKCU\Software\Microsoft\Internet Explorer\IntelliForms\Storage1, Storage2, etc maybe doing some backups before, exporting those keys http://sharepointsolutions.blogspot.com/2008/06/how-do-i-make-our-sharepoint-site-stop.html 2) The second can be a site-related issue, or IE doesn't qualify the page as a login form for some reason. This second issue of commonly found in SharePoint Sites, both in IE and SharePoint Designer. They ask for the password, but it won't remember it when you tell it to. One way to fix this is set automatic authentication, whe...

SharePoint | An unexpected error has occured

Ever got "An unexpected error has occured. Throubleshoot with Windows SharePoint Services." Great info isn't it? Remember .NET? Just enable custom errors on web config! Look for "customErrors" and set the value to Off --> customErrors mode = "On" --> "Off" Look for "CallStack" and set the value to "true" --> CallStack = "false" --> "true" Look for "AllowPageLevelTrace" and set the value to "true" --> AllowPageLevelTrace = "false" --> "true"

List Insert View | Change Redirect URL

After you insert items in lists, the page goes to AllItems.aspx. This can be undesireable if you want to allow annonymous access to the form. Microsoft's documentation says to add RedirectUrl="yourUrl" to the submit button Others, as me, tried and only worked by replacing the sharepoint button by an html input button with javascript code. <input type="button" value="Save" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/Pages/ThankYou.aspx}')}" /> http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/7aff3de2-4250-47ac-9175-2fdc0a685005

Adding a List's Insert & Display View Forms to Page Layout

Open SharePoint Designer Right click the page, pick detach from page layout Click an area inside the page, within the html Click Insert on the top menu, go to SharePoint Controls and select Custom List Form (this option only appears if you select an empty area, and not an item such as web parts) Select the list to insert the view from, and pick the view mode (new, edit, display) NOTE: For Display View, i.e., A page you can call with ?ID=1 for example, for some reason, ID searches will only return accurate results once you Publish AND Approve the page!

Expand / Collapse Feature for Web Parts

Great web part for collapsing web part contents You import the webpart to the bottom of the page, (or create a content editor web part and paste the script, hide the chrome) Then, create a new web part (I've created a new CEWP and used chrome as question and body as answer for FAQ look page), or use one you already have. Remember, for auto collapsing at page load, go to webpart properties, apearance, chrome state, "Minimized" You can download & import the dwp CollapseWPs dwp WebPart or create it yourself and add the script to the CEWP's source CollapseWPs script http://pathtosharepoint.wordpress.com/2008/10/25/expandcollapse-buttons-for-your-web-parts

MOSS Web Application | Enable Annonymous Access after creation

Central Administration “Application Management” “Authentication Providers” under “Application Security” Click on the “Default” zone (or whatever zone you want to enable anonymous access for) Under “Anonymous Access” click the check box to enable it and click “Save” http://sharepointlogics.com/2009/05/how-to-enable-anonymous-access-in.html

Where is clippy!? What's the font's name?

The new teaser video for Office 2010 http://www.neatorama.com/2010/01/12/microsoft-office-the-movie/

Cool WebParts from TamTam

- Rss reader ( ajax style, caching and no javascipt warnings ) ( strips imgs !! ) - MSN Weather - Facebook based on search/profiles - Birthdays based on search/profiles - Flickr photo webpart (simple) - Flickr photo webpart (with lightbox 2.03) http://tamtam.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=6888

Convert VSeWSS projects into SharePoint 2010 projects

thank you Paul Andrew! http://blogs.msdn.com/pandrew/archive/2010/01/11/just-published-the-beta-for-the-vsewss-to-visual-studio-2010-upgrade-template.aspx 5) SharePoint themes have been detected in this project. The handling of themes has been changed in SharePoint 14. SharePoint 12 themes can be activated in backwards compatibility mode by setting SPWeb.UIVersion = 3 and subsequently calling SPWeb.Update(). Due to changes in the handling of themes in SharePoint 14, it is necessary to use the backwards compatibility mode. Otherwise, these themes will successfully be deployed and activated, but will have no visual impact.

Adding mp4 extention to iis

Videos in mp4 aren't availble out of the box > inetmgr > site > mime types > add File name extention: .mp4 MIME Type: Video/mp4

Find and Trace user IP .NET/PHP

PHP <? $domain = GetHostByName($REMOTE_ADDR); ?> .NET Request.ServerVariables("remote_addr") Trace IP http://www.ip-adress.com/ip_tracer/ Other variables http://forums.asp.net/t/892765.aspx

SharePoint | Opening files require logins?!

So your sharepoint users login into the site and still have to log in each time they open a file? Try these http://sharepointinsight.wordpress.com/2008/07/18/how-to-get-rid-of-login-prompt-while-opening-documents-in-microsoft-office/ http://support.microsoft.com/default.aspx/kb/943280

MOSS2007 | New goal: Custom Chromes

Image
Any ideias anyone? The goal is to actually add a sixth style to webpart headers Unfortunatly, it looks likea this part is an embedded enumeration and cannot be overriten :-( So in order to customize our webparts, will have to deploy css resources. http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/47e6d6cc-f144-49e3-b578-e18fc8ec258c Sorry folks, no can do. If anyone has proof otherwise, please say so.

DNN Text/HTML Replacement Tokens Options

Tokens for html replacement A perk for dnn developers http://www.dnncreative.com/Forum/tabid/88/forumid/5/postid/7307/view/topic/Default.aspx http://www.datasprings.com/Resources/ArticlesInformation/DNNTextHTMLTokenReplacementOptions.aspx

twitter feed connection

just started twittering blog posts check out http://twitterfeed.com

MOSS 2007 | Editing Publishing Pages

Image
Retrieving field names Adding fields to page layouts Editing newly-added fields