How to add paging in CMSRepeater from code side in kentico - kentico

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.

Related

Customizing a modern page using SpFx

I want to transform a classic site into a modern experience and I have the following customization, done on a classic list form.
The page contains two Webparts:
XsltListViewWebPart to display the list of items
ContentEditorWebPart to fetch some summary data
Problem :
The SPFx extension used to replace the default rendering of the list works only on the allitems.aspx page (it is not working on my custom page which contains ListWebpart)
I need to know how to be able to make SPFx extension working on that ListWebpart.
Or if it is possible to add a client side webpart inside my allitems.apx page.
We can't 'Edit' OOB modern list view currently.
When you add list view to a modern page, you could deploy react-script-editor to your tenant so you could add this webpart to modern page which works like script editor webpart in classic view.

Adding HTML controls to SharePonint 2010 quick launch

We are migrating Lotus Notes application to SharePoint 2010. There are around 200 views on navigation pane of Lotus Notes. In order to provide similar kind of look and feel on SharePoint I am thinking to add dropdown on quick launch of my site.
Is it possible to add HTML controls like dropdown and add a functionality to navigate to respective view? Or else what could be the better solution for this case?
Thanks,
Pratima
You can use the ASP.NET placeholders available in the masterpage to host a control or WebPart beside the Quick Launch. The actual QuickLauch is generally customized by JavaScript unless you want to replace it with a completely new class.

SharePoint 2010 custom breadcrumb, change only HTML

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

What is the best way to create an Html Table out of a sharepoint list in a Web Part?

I want to create a deployable .wsp Web Part and I want to fetch a Custom List and show it in an Html Table inside that web part.
I know how to create a .wsp web part, and I can also create the table overriding the RenderContents or CreateChildControls methods of WebPart class.
But I want to know the easy and best method for outputting an Html Table in a WebPart.
Should I use a UserControl so that, I can add any Asp.Net controls inside it and then load it in the Web Part ??
Please tell me any solutions ?
Puneet i would recommend using Data View webparts which uses xslt to customize the view in which a list data is rendered.
You can take help of SharePoint Desginer to add a Data View Web Part.
http://www.lcbridge.nl/vision/2009/dvwp.htm
Check out this video. It shows how to build a Visual Web Part (one that uses a user control for UI) in Visual Studio 2008 and shows how to bind data from a list to a GridView control.
http://www.vimeo.com/11285888

Creating Dynamic Sitemap in SharePoint

I have developed a publishing portal in sharepoint.I have a requirement wherein I need to create sitemap for the entire web application.
This should be dynamic, in the sense, whenever we update the contents of any given page in our web application, it should be reflected immediately in the sitemap page. What are the possible ways to achieve this and which is the best possible solution considering the scalability and easy configuration?
Thank you.
If you don't want to use a custom webpart, you could use normal navigation list to create your sitemap and it is automatically updated. You only need to style it in a way to resemble some kind of sitemap.
Here are some links to get you started with customizing your navigation:
Custom Navigation in SharePoint - The Full Monty
How to: Customize Navigation
Also there is the portal site map which provides the data source for your custom menu. Just read up on custom navigation and stuff like PublishingNavigation:PortalSiteMapDataSource and SharePoint:AspMenu.
There is a nice PowerShell script to create a sitemap for SHarepoint 2010, if you want to submit your sitemap to Google: Generate A Sitemap For SharePoint 2010 Using PowerShell'.
You can also install and customize the SharePoint Web part ("Table of Contents") to your liking. Read up on it here...
Take a look at our ECS product, it is close to what you need
http://www.infowisesolutions.com/product.aspx?id=ECS
It was built as a system of cross site collection navigation, with security trimming and permissions inheritance between site collection.

Resources