{"id":37640,"date":"2014-01-30T05:55:55","date_gmt":"2014-01-30T13:55:55","guid":{"rendered":"http:\/\/localhost\/exoblog\/?p=6449"},"modified":"2014-01-30T05:55:55","modified_gmt":"2014-01-30T13:55:55","slug":"build-great-animated-news-slider-5-minutes-exo-add","status":"publish","type":"post","link":"https:\/\/www.exoplatform.com\/blog\/build-great-animated-news-slider-5-minutes-exo-add\/","title":{"rendered":"Build a Great Animated News Slider in under 5 Minutes with this eXo Add-on"},"content":{"rendered":"<p>One of the most important strengths of the eXo Platform is the user experience. The end user can create new content using the content management system. Today, I\u2019ll show you how easy it is to add a News Slider in only five simple steps. It\u2019ll take only five minutes of your time. Follow the tutorial below and enjoy!<\/p>\n<p><!--more--><\/p>\n<h2>Tutorial (5 minutes)<\/h2>\n<h2>Installation in five steps<\/h2>\n<h3>1. Cloning a project<\/h3>\n<ul>\n<li>Go to the GitHub repository <a href=\"http:\/\/github.com\/exo-addons\/news-slider\" target=\"_blank\" rel=\"noopener\">exo-addons\/news-slider<\/a> and clone the project.<\/li>\n<\/ul>\n<h3>2. Adding resources<\/h3>\n<ul>\n<li>Go to the back office of the eXo Platform (using File Explorer).<\/li>\n<li>Add a content folder (<span class=\"navCode\">NewsFolder<\/span> for example) to store the news items (for example under <span class=\"navCode\">\/shared<\/span>). You can add news using the <span class=\"navCode\">Free Layout Webcontent<\/span> template. Add an image and a summary, which will be displayed as the preview in your News Slider. <em>For testing, we will use <span class=\"navCode\">NewsFolder.xml<\/span>, so import it into your file system.<\/em><\/li>\n<li>Upload the CSS file NewsSlider.css into any location (for example, under <span class=\"navCode\">\/shared\/css<\/span>) and copy its path <span class=\"navCode\">[1]<\/span>.<\/li>\n<li>Upload the JS filesjquery.easing.min.js and jquery.min.js (which are the jQuery libraries) to any location (for example, under <span class=\"navCode\">\/shared\/js<\/span>) and copy the path <span class=\"navCode\">[2]<\/span>.<\/li>\n<\/ul>\n<h3>3. Update the resource paths<\/h3>\n<ul>\n<li>Go to the template file <span class=\"navCode\">NewsSliderCLVTemplate.gtmpl<\/span> and update the paths of the resources, that is the JS and CSS files (already saved in <span class=\"navCode\">[1]<\/span> and <span class=\"navCode\">[2]<\/span>). Paste the exact paths into the src parameter:<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">link href=\u201d\/rest\/jcr\/repository\/collaboration\/sites content\/live\/shared\/css\/NewsSlider.css\u201d media=\u201dall\u201d rel=\u201dstylesheet\u201d type=\u201dtext\/css\u201d&gt;<\/pre>\n<p>and<\/p>\n<pre class=\"lang:default decode:true \">script type=\u201dtext\/javascript\u201d src=\u201d\/rest\/jcr\/repository\/collaboration\/sites content\/live\/shared\/js\/jquery.easing.1.3.js\u201d&gt;<\/pre>\n<ul>\n<li>If you haven\u2019t copied the paths, then go back to the files in <span class=\"navCode\">\/shared\/js<\/span> and <span class=\"navCode\">\/shared\/css<\/span>, right click on a file, select the final menu entry <span class=\"navCode\">Copy URL to clipboard<\/span> and then paste them as above.<\/li>\n<li>Ensure that the path is not a private link so that the news can be viewed by guests (if it is private delete <span class=\"navCode\">\/private<\/span> from the path).<\/li>\n<\/ul>\n<h3>4. Add the Content List Template<\/h3>\n<ul>\n<li>Adminstration &gt; Content &gt; Content Administration &gt; Template &gt; List &gt; Add Template<\/li>\n<li>Copy and paste the content of the GTMPL file with Template Name as <span class=\"navCode\">newsslider.gtmpl<\/span><\/li>\n<\/ul>\n<h3>5. Creating the application<\/h3>\n<ul>\n<li>Administration &gt; Content &gt; Site Explorer &gt; acme\/web contents &gt; Import &gt; <span class=\"navCode\">NewsFolder.xml<\/span> (in github newslider\/resources)<\/li>\n<li>Now we are ready to add our News Slider to a website.<\/li>\n<li>Edit this content list portlet. Configure it by selecting the news folder path (in our case <span class=\"navCode\">\/shared\/NewsFolder<\/span>) and select the new CLV template created above: <span class=\"navCode\">NewsSliderCLVTemplate.<\/span><\/li>\n<li>It\u2019s possible to configure the slider depending on the amount of news and whether it is broken into pages.<\/li>\n<\/ul>\n<p><strong>Enjoy! And <a href=\"https:\/\/community.exoplatform.com\/portal\/dw\/\" target=\"_blank\" rel=\"noopener\">join the eXo Community<\/a> for more resources.<\/strong><\/p>\n<p><i>Note: This post is an update of an original article about the Animated News Slider Add-on to reflect changes in using eXo Platform 4. You can find this resource and much more, in our <a href=\"https:\/\/www.exoplatform.com\/resource-center\/\" target=\"_blank\" rel=\"noopener\">Resource Center<\/a>.<\/i><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"One of the most important strengths of the eXo Platform is the user experience. The end user can create new content using the content management system. Today, I\u2019ll show you how easy it is to add a News Slider in only five simple steps. It\u2019ll take only five minutes of your time. Follow the tutorial [&hellip;]","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[699],"tags":[],"lang":"en","translations":{"en":37640},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/posts\/37640"}],"collection":[{"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/comments?post=37640"}],"version-history":[{"count":0,"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/posts\/37640\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/media?parent=37640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/categories?post=37640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.exoplatform.com\/blog\/wp-json\/wp\/v2\/tags?post=37640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}