I have VS 2010 installed on the same VM machine as my sharepoint 2010 server that I remote into. When I create a simple webpart and click "run", it appears to compile and deploy the webpart with no problems, and opens up http://[sharepointserver]/SitePages/Home.aspx.
In the demos I have seen, I expected to see my webpart page. So, I click on "edit" > "Insert" > "web part" > "custom" > choose my webpart.
Then my http://[sharepointserver]/SitePages/Home.aspx shows the webpart.
HOWEVER,
When I access that same url from my local machine (not remoted into the VM), I don't see the weppart on that page at all. I click refresh, and the webpart debugger indicates webpart pass-through activity, but the page is the standard "welcome to your site!" page.
Do I need to explicitly "deploy" this? It's confusing since they are the same url, being accessed from two different contexts (browsers).
When you edited the page and added your web part, did you save it and check it in?
Related
I'm taking over a SharePoint portal and noticed the previous developer used SharePoint Designer for all of the development whereas I use Visual Studio custom solutions/features for development.
NOTE: Site Publishing Features are enabled on a Team Site template for some web applications.
The issue I've noticed is the v4.master content type was changed from "Master Page" content type to "Page Layout" content type. This must have been done through the "Edit Properties" on the publishing site. When opening the site in SP Designer, the v4.master shows up in Page Layouts instead of Master Pages.
The v4.master also has the blue icon next to it meaning the page is customized and content is stored in the database which is causing performance issues. SharePoint is so slow that users are very frustrated. Also there are script tags in the masterpage pointing to jquery in the top level scripts directory. Personally, I would of created a delegate control for this instead of customizing the v4.master. NO Copy was made. (I totally dislike SP Designer, this tool gives too much power to inexperienced power users that like to put sharepoint developer on their resumes. I am definitely disabling SP Designer)
So, with all that said, what are the best practices or suggestions if any in fixing this issue?
What issues will this cause for future applications or site collections?
Should I develop and deploy a custom master as a feature then "Reset to Site Definition" on the v4.master?
Why does SharePoint allow users to change the Content Type on a Master Page to "Page Layout"? Why is this even an option, it doesn't even make sense?
All you need to do within the SharePoint Designer is publish the master page in the page layouts folder and approve it in the Master pages and page layouts in site settings. The master page will appear in the master pages section in SharePoint designer.
I've got a custom webpart in Sharepoint 2007 that works when used on the same machine sharepoint is installed on. When I browse to the page from a remote machine, the webpart renders but when you click the submit button, I get redirected to /_layouts/login.aspx?ReturnUrl=
Does anyone have any idea what is happening, or what I should do?
You can view the setting to enable annymous access here:
http://office.microsoft.com/en-us/windows-sharepoint-services-help/enable-anonymous-access-HA010113018.aspx
I want to place the RSS Viewer web part into a page layout I've created.
In the Sharepoint Designer (Sharepoint 2010) using the "Advanced Edit Mode" I tried to add the RSS Viewer web part but I cannot find it in the list. Under "Insert>Web part" I find many other web parts but the one I need is missing, also under "More web parts..." it cannot be found.
The web part is installed (I activated the feature). The web part can manually be added to a page into a web part zone when I don't use the Designer but edit the page directly in the browser but of course this is not what I need as I have to put it in the page layout.
Anyone got an Idea why the web part is not selectable/visible in the list?
As I've learned not all web parts are available in this listing.
The workaround would be to manually add the desired web part to a webpart zone on the page (not in the designer) and then open the page in the designer so that you can copy/paste the web part relevant code to the page layout of your desire.
So i just started trying to develop a simple webpart today for a sharepoint foundation i put on a virtual machine. I have no previous experience with sharepoint whatsoever.
As i cant run a sharepoint 2010 on my local machine for dev purposes i followed advices in this thread http://social.technet.microsoft.com/Forums/en/sharepoint2010programming/thread/cda807f6-4edf-4efc-8e9b-4d446356c8ae to able to actually develop something (just the registry bit).
I created the simple test web part (writes out "hi"), uploaded it to virtual machine, added it with add-spsolution and install-spsolution in powershell with success. When i do get-solution through powershell on my webpart it says deployed = true.
What am i missing from here to get it to actually show up somewhere in the web interface so i can add it to a page?
Cheers
You need to go into site settings and activate the feature. If its already activated edit the page > Insert WebPart > Look under Custom to find your webpart.
HTH
I'm using MOSS 2007 with Publishing Site and have added an Image Web Part to a page using Sharepoint Designer.
When I go into the browser to edit the page, the edit button on the web part does not appear.
Does anyone know why?
To edit a webpart in a browser it needs to be inserted inside a Web Part Zone, try adding one in your page then adding the webpart to it. If still no luck or if you already have a Web Part zone, go on its properties (right click => Web Part Zone Properties) and see if users are allowed to edit it in browser.