how to use webpart in static html

Nitin Patil asked on March 31, 2016 08:16

I have creat static html for slider banner, but i want dynamic content on the slider (ex. news, or feeds or twitter) can it possible to fetch dynamic content using any webpart? Or tell me other method for it.

Recent Answers


Petar Kozjak answered on March 31, 2016 09:34

Hi,

do you want to change content on every slide using CMS or you want to display content from other source?

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on March 31, 2016 10:28

Hi Nitin,

You can execute your own javascript and fetch content via Ajax.

Or you can use standard Kentico webparts for news and social media.

Or you can develop your own webpart for banner.

0 votesVote for this answer Mark as a Correct answer

Laura Frese answered on March 31, 2016 17:59 (last edited on March 31, 2016 18:11)

If you are using a slider banner - I like to create custom page types for the banner then use a repeater to show the banners. You can then use jQuery or any slider script to create the carousel / slider effect.

Having the page type allows you to create any structure for that page, then the editor can easily add that page type to the content tree and add the content into it.

There are a few social feed webparts in the marketplace You could use one of these, then hide the resulting feed and use jQuery to show it in your banner.

Creating page types
Create transformation for the page
Displaying the data on the page
Slick slider

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on April 1, 2016 11:41

Hello,

well, even it's called Static HTML, you can add there a dynamic content. You can either add there an inline widget like a repeater that loads content from some location of your content tree or any other wiget that does what you need or you can use macros to do the same (ApplyTransformation() over some page collection or custom macro methods that returns anything from the code)

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.