I can easily add webparts to my custom master page, but they appear static (in page edit mode)...Is there a way i can add custom webparts in master page with user editing its properties (through property bag)
Have you tried adding the WebBrowsable attribute to your WebPart? See http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webbrowsableattribute.aspx
[Personalizable(), WebBrowsable(), WebDisplayName("My WebPart"), WebDescription("This is my editable WebPart")]
Sadly In master page, visual web-part is not editable as they dont exist in web part zone, so now we use user control as delegate control.
Related
I want to add a paging control on my custom web-part so I can customize the paging style. I am using a CMSRepeater for binding the data. Thanks
If you are using CMSRepeater you can try to add UniPager to it. This control is easy customizable. Please see this link: https://docs.kentico.com/k9/references/kentico-controls/generic-controls/paging-controls/unipager
You don't need to create a custom webpart to setup different styling for paging. Simply add a repeater to a page template and add the Universal Pager webpart to the page. In the Universal Pager webpart set the Web part control ID in the target control name from the repeater you want to hook it up to. Then in the Universal Pager webpart define your transformations. Again, no need for a custom webpart for this, just use 2 already created webparts together.
I'd like to ask if you came up with a solution that will allow for subsites to access a centralized document library at the parent level. I'm still trying to no avail. I've tried doc library templates, views, Doc Center and the best method i have OOTB is a page view web part on the subsites page display a view from the parents library. (by the way to remove the ribbon, append ?IsDlg=1 to the url and the ribbons hidden) cool tip. Say will you give be a Y/N on a solution that will allow one to keep a set of documents in the doc center and surface them in the sub-site.
There are another option without such hard coding. You can open any view of your document library, as mentioned earlier AllItems.aspx for example with SharePoint Designer. Open it for editing in advanced mode (there are option when you click right mouse button on file in SP Designer). Then just point mouse cursor inside web part and chose in ribbon web parts, Add to Site gallery, see the picture. Fill in name of new web part. That is all, now you can add this web part on any page on any web site from webpart gallery through the user interface or through the SP Designer by clicking Insert, Web Part in the ribbon on any page.
You can do this by editing the AllItems.aspx (or other view page) and scraping off the WebPartPages:ListViewWebPart and pasting it into a page on the subsite.
This will give you an error "List does not exits The page you selected contains a list that does not exist."
Then you need to get the WebID for the root site (where you took the ListViewWebpart from and replace the part of the webpart that looks like this:
<WebId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">00000000-0000-0000-0000-000000000000</WebId>
with (for example)
<WebId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">7b04dee8-b120-4dee-abea-28b77316ec7d</WebId>
I have a requirement for changing the way bread crumbs looks in sharepoint. Please note that the data source will still be sharepoint but i need to generate the html little differently than the one displayed by sharepoint.
for example, if you are in a custom list,sharepoint displays as site > custom list > all items.
I neeed to display site, custom list and all items (no change in the items that are got from sharepoint). The only change will be, the user interface will be generated with a combination of html ul tags with some custom css?
Can someone suggest me the best approach?
Thanks
The visual appearance of the SiteMapPath control that displays a breadcrumb can be modified by setting the attributes of the control or by configuring the templates that are available for the control. I think that the CssClass and NodeTemplate properties is what you need.
How to: Customize the Appearance of SiteMapPath Web Server Controls
SiteMapPath Properties
Using a template with the SiteMapPath control
To modify the content of the breadcrumb you need to create a custom site map provider inheriting from SPContentMapProvider.
SharePoint Branding Issues: Breadcrumb
How to Create custom XMLSiteMapProvider and render it in SharePoint 2007 MOSS
How to Open a custom webpart from the other custom webpart through a link buttom.
I have a custom webpart in which i have a link buttons of all other custom webparts in that page.On click event the particular webpart should be open.
can anyone please help me in solving this...
What do you mean by "Open a custom webpart" ?
If you want to make some operations on webparts, you can use the splimitedwebpartmanager
you need to follw this step to open the custom web part on page:
(1) create seperate page for each custom web part.
(2) add web part on the page.
(3) set url to related web part page.
hope this help.
I'm trying to create a SharePoint 2010 application page (AKA layout page) to display some information and allow users to perform some custom functionality.
I need to display custom ribbon tab for the functionality that I want to perform. And I want this custom tab to be displayed on the application page that I've created.
I've managed to create a custom ribbon tab and display it on list view ribbon through a SP feature. But how can I register this custom ribbon tab so that I will display on the application page that I've created?
Thanks,
Seems like you're looking for RibbonLayoutsPage class from Ribbon Utils for SharePoint 2010.
http://spribbon.codeplex.com
Is the custom application page in the _layouts folder and extends from LayoutsPageBase?
http://msdn.microsoft.com/en-us/library/ms460194.aspx
CustomActions have four possible RegistrationTypes
List
ContentType
ProgId
FileType
An application page has no List or ContentType, I dont think it is a ProgId (like infopath), that just leaves FileType. I have tried RegistrationType=FileType with RegistrationId=aspx but that doesn't work.
I'm just trying to think if i have ever seen an application page with ribbon buttons, but can't remember any. So I'm thinking it is not possible.
The ribbon definition does seem to have any either.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML