Surendra Sharma

Surendra Sharma

Search This Blog

Showing posts with label module. Show all posts
Showing posts with label module. Show all posts

Wednesday, March 10, 2021

Sitecore Hackathon 2021 - CSV to YML Generator for JSS App

Happy to share that our SAM team participated in Sitecore Hackathon 2021 on Sat 6 Mar. We started our day at 6 AM and finished it around 10 PM.

Out of 4 different problem categories, we selected one of the category “Best use of Headless using JSS or .NET” as our problem statement.

We have developed CSV to YML Generator for JSS App. It works like a charm.

 

Architecture Diagram

CSV To YML Generator


Sharing below reference links for this module.

 

I deliberately skipping all module details here in the hope that you will watch the video 😉.

Love to hear your comment(s), feedback(s) or suggestion(s).

Result will be announced in upcoming weeks. Till that time - stay tuned.

Monday, June 24, 2019

Screenshot module for Sitecore

Happy to share that my "Screenshot" module for Sitecore is published on Marketplace. One can take screenshot of current Sitecore Content and Experience Editor easily by using this module.

Download and enjoy this free module.


Love to hear your comments and feedback.

Thursday, March 14, 2019

Sitecore Hackathon 2019 - Screenshot module


Happy to share that our RAS team participated in Sitecore Hackathon 2019 on Sat 2 Mar. We started our day at 6 AM and finished it around 10:30 PM.

Out of 6 different problem categories, we selected one of the category “Best enhancement to the Sitecore XP UI for Content Editors & Marketers” as our problem statement.

We have developed a Screenshot module for Sitecore Content and Experience Editor. It works like a charm.

Sharing below reference links for module video, Sitecore package and documentation.

I deliberately skipping all module details here in the hope that you will watch the video 😉.  Love to hear your comment(s), feedback(s) or suggestion(s).

RAS Team Sitecore Hackathon
RAS Team


Result will be announcements at the SUGCON EU 2019 on April 4th 2019 in London.

Till that time - stay tuned.

Friday, January 18, 2019

4th Sitecore Marketplace Module – Sitecore Social Feeds Manager

Sitecore Social Feeds Manager
Sitecore Social Feeds Manager

I am very excited to share my 4th module “Sitecore Social Feeds Manager” on Sitecore marketplace. You can download it from here.

We all know the importance of social media for product branding. Almost all websites showing their organization or products related social messages to their website.

I created this helix-based module for getting social feeds from Facebook, Twitter, Youtube and Instagram.

Steps to use this module
1. Download and installed this Sitecore package
2. Fill your Social keys for Facebook, Twitter and Youtube in item "/sitecore/content/Habitat/Global/Social/Social Media Manager"
3. Publish Sitecore items.
4. Access JSON result from URL http://<your.sitecore.instance>/api/sitecore/social/GetSocialFeeds?channelName=youtube&token=accesstoken.

By default, it shows recent 8 feeds from each social channel but you can control the number of feeds from Sitecore.

I also included “All” feeds option where you can access recent 2 feeds from each channel and show mix of total 8 feeds on your front end. Again, you can control total numbers of feeds from Sitecore for “All” use case.

I have excluded HTML part on this module as every website have different HTML and look and feel. So directly consume this JSON output and integrate it in your HTML at desired location.

A sample HTML for calling and using this JSON data by AJAX is

<div id="SocialFeedsDiv">

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

    <script>


        $(document).ready(function () {
            var b = null;
            $("#all").click(function () {
                loadfeeds("All")
            });

            $("#Facebook").click(function () {
                loadfeeds("Facebook")
            });

            $("#Twitter").click(function () {
                loadfeeds("Twitter")
            });

            $("#Youtube").click(function () {
                loadfeeds("Youtube")
            });

            $("#Instagram").click(function () {
                loadfeeds("Instagram")
            });


            function loadfeeds(channelName) {
                $.get("/api/sitecore/social/GetSocialFeeds?channelName=" + channelName + "&token=accesstoken", function (data, status) {
                    var index = 1;
                    $("#feedlist").html("");
                    $.each(data.responseResult, function (i, field) {
                        var imageurl = "";
                        if (field.ImageURL !="" || field.ImageURL != null) {
                            imageurl = "ImageURL : <a href='" + field.FeedURL + "' ><img src='" + field.ImageURL + "' alt='" + field.Title + "' /> </a> <br>";
                        }
                        $("#feedlist").append(
                            "<li>Sr No :" + index + "<br>" +
                            "FeedID :" + field.FeedID + "<br>" +
                            "PlatformName :" + field.PlatformName + "<br>" +
                            "Title :" + field.Title + "<br>" +
                            "Description :" + field.Description + "<br>" + imageurl
                            +
                            "FeedURL :" + field.FeedURL + "<br>" +
                            "Timestamp :" + field.Timestamp + "<br>" +
                            "From :" + field.From + "<br><br><br>" + "</li>"
                        );
                        index++;
                    });
                });
            }
        });

    </script>

     <br />
    <a href="javascript:void(0)" id="all">All</a><br />
    <a href="javascript:void(0)" id="Facebook">Facebook</a><br />
    <a href="javascript:void(0)" id="Twitter">Twitter</a><br />
    <a href="javascript:void(0)" id="Youtube">Youtube</a><br />
    <a href="javascript:void(0)" id="Instagram">Instagram</a><br />

    <div id="feed">

    </div>

    <br />
    <br />

    <div id="HTMLfeed">
        <ul id="feedlist"></ul>


    </div>

</div>

You may interested in my other 3 modules on Sitecore marketplace




I hope you will use these Sitecore modules. Stay tuned for more Sitecore related information.

Till that happy Sitecoring :)

Please leave your comments or share these marketplace modules if it’s useful for you.