Develop a custom editable Visual Web Part (WebPart) for SharePoint 2010 - sharepoint-2010

I want to develop a webpart that allows editors to amend its content using Sharepoint's Ribbon-based formatting controls, and then display that content in a nicely formatted way. The built-in content editor webpart isn't sufficient because I want to wrap the content in hardcoded HTML so as to enforce my site's graphical design. Also, I would like the web part to potentially contain more than one editable area, and the standard Content Editor webpart only has one.
My ideal would be a visual web part with a predefined HTML layout, with some editable "content areas" to allow modification in edit mode. When the webpart is saved it will just render its content areas as HTML. I have tried using <SharePoint:RichTextField> blocks in a visual web part ascx template but I don't think this is correct. Can anyone give advice?

Okay, nobody had an answer so I had to do it myself :)
http://zootfroot.blogspot.com/2010/09/develop-custom-editable-visual-web-part.html

Related

How to have customized control templates across multiple pages for .NET MAUI?

I am follwing the guide for Control Templates here:
https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/controltemplate
But I want to be able to use my Control Templates across different pages rather than on a single page. I have put the control template in its own folder but when implementing it on a different page, it is not showing up. The example in the website above copies code over from the templated controls to multiple pages which overall increases the amount of code per page. I want to have my custom controls in one folder and then access those controls on different pages without having to copy and paste the control xaml code in that page. Please guide me to some concrete examples of this in action! Thank you!

Adding word control to asp page?

Is it possible to add a Microsoft Office Word control to an aspx page? I want to be able to modify a load and modify a word document from a web page... I'm just not sure if this is possible?
I know there are AJAX controls out there that allow you to perform something somewhat similar, but I would like to use a Microsoft product if possible.
I am using Visual Studio 2010 and VB.NET to try and accomplish this.
You can use RadEditor for ASP.NET AJAX in your ASPX pages to import DOCX or RTF files, edit their contents in your browser and save them to DOCX,RFT or PDF format. The following examples show how to do that:
Import and Export to DOCX
Import and Export to RTF
Use Ms Word vía ActiveX in ASP.NET it's a bad bad idea. It's possible, but currently, this way is not supported by Microsoft, in fact (http://support.microsoft.com/default.aspx/kb/257757).
You will have troubles with performance, scalabity, user's word versions.... And you will have a lot out-controlled winword.exe processes, and so on.
For this reasons, I use a Silverlight Rich Edit Control, from Devxpress. I had a license already, so I didn't try other solutions, like Telerik's Richtextbox, or Google Docs.
Embed editable MS Word document on web page
Edit: I remembered that another way it's using WebDav. I mean, force to client MS Word to open a word doc in a WebDav location. Maybe you can consider it.
How to create a HTML link which forces MS Word to edit document on webdav server
This is the addin for IE:
http://www.microsoft.com/es-es/download/details.aspx?id=15123
Yes, from the reference i got, it look possible.
Follow this link : Click Here

SharePoint2010 content editor?

I am building a website that will make heavy use of the content editor webparts to allow for content to be added. The drawback to this is that by default the content editor provides a "Rich Text Editor" which is good for adding data but bad because it has the potential to break styling. I have two solutions :
First is to do some coding to somehow have predefined css styles added to the styles menu of the Rich text editor.
Second which should be quicker is to simply disable the Rich text editor i.e disabling the fonts, styles, etc from the Rich Text editor so that users can only enter data and not mess around with the styling.
For soultion two, is this possble and what would be the quickest way to achieve this?
Any assistance is greatly appreciated!
Thanks in advance
The whole point of the rich text editor is to allow the user to enter styled content as they see fit. If you don't want any styling to be applied through the RTE either create style rules in your CSS to overrride anything the user enters or else use content fields based on multiple lines of text rather than rich text.
Core Technology Systems has recently released a how to video on content management on SharePoint 2010. I have included a link to the website which has the link to the video and their YouTube channel.
http://coregb.com/blog/archive/2011/12/01/content-organiser-in-sharepoint2010.aspx

Change thumbnail size in Sharepoint 2010

I tried to find it using google, but there are only tips for 2007.
I want to change a few layout things, which are:
The thumbnail size of an image library
The thumbnail size in a slide library
I found this good explanation here:
http://vspug.com/keutmann/2007/01/27/how-to-resize-the-thumbnails-in-a-picture-library/
But I can't find the screenshot view (these nice options) anywhere inside my Sharepoint Designer. Its 2010, so maybe they moved it somewhere else. Anyone has an idea where to find this options tab from the screenshot?
Thanks a lot,
Chris
The linked article does not describe SharePoint Designer, but rather SharePoint Manager, which appears to be a third party tool created by the author.
You could give it a try. Like the U2U CAML Query Builder, it might still work for SharePoint 2010, especially if it uses web services to connect to the site.
But if it doesn't, you should be able to write a Feature Receiver that will accomplish the same thing by modifying the ThumbnailSize property. That has to be what the SharePoint Manager tool is doing.
Regarding changing the thumbnail size of the Slide Library (which you cannot use Sharepoint Manager to do unlike the picture library)
This worked for me to get a bigger thumbnail..
Note that the solution relies on having a naming convention for your files which you apply after you have loaded them up to the slide library eg ENG_02_0010, ENG_02_0020 rather than leaving them named as is when uploaded to Sharepoint.
Create another field called Preview say and make it a picture (format url as picture)
For each uploaded slide put the url link as http://siteName/slidelibraryName/_t/ENG_02_0010_pptx.jpg (same name as your slide with a _pptx.jpg extension)
Get rid of the standard thumbnail from your view and put this new column next to the selection box
Worked for me, much bigger and readable thumbnail!
PS
In SP designer you can find all the jpg thumbnails in the _t directory under the slide library
You can also use CSS on the page where you're displaying the thumbnail images. Here is an example:
<style type="text/css">
img[alt="Thumbnail"] {height:100% !Important;width:100% !Important;}
</style>
This looks for the images with an alt attribute of 'Thumbnail'. I successfully tested this with a Slide library in SharePoint 2013 using IE & Chrome.

How to add a web page with html editor in Iron Speed

I have a website that I have built by Iron Speed.
I have to add a new web page with HTML editor.
I looked for that about 2 hours and I didn't find any helpful article. All the articles that I have read supposed that there is a table (in the db) that will be covered by the web page. :(
Any help would be appreciated.
Sorry for my English ...
If you want to create a page with the HTML editor hooked up to a database field, then Iron Speed Designer will do it for you automatically if the text field in the database is large enough, i.e., if Iron Speed detects this is a large string field it will automatically add the HTML editor for that field.
If you don't have a page created already, just use the application wizard to create an add record or edit record page. If you have an existing page that already contains your database field, you can also enable the HTML editor for that field via the property sheet. (I'm assuming you're using the current release? Iron Speed Designer v7.X.)
Above answers are good.
If you want to add different HTML editor than you can create a different Web Page in Visual Studio
Or other way is just put the whole code of .aspx page in to Cell Editor ...
It will not show in Designer but executes perfectly...
Following on from Chris you can adjust the settings for when Iron Speed generates a HTML editor under Tools -> Application Generation Options. Then Expand General Application Options followed by Rich Text Editor Controls. Then switch the Threshold higher or lower as you need. I think the default is 500 chars.
This process should work in versions 6, 7 and 8. It might be a little different in earlier versions.