mauricius Posted August 25, 2015 Share Posted August 25, 2015 ProcessSlider Module (alpha version) Repository https://github.com/mauricius/ProcessSlider Introduction Like many of you, I came to ProcessWire from Wordpress and immediately I fell in love with its power and its clean syntax. I have to say that PW has become my default choice for building websites. However there is only one thing that me and my clients miss from WordPress and is the ability to visually build image sliders through plugins (Nivo, Revolution Slider, LayerSlider, just to name a few). So I decided to create a module for this purpose. ProcessSlider essentialy is an editor for the wonderful Jssor plugin (http://www.jssor.com/) which is absolutely free. The module creates a new page under the Setup menu which allows users to easily add image sliders on the site using an intuitive visual editor. To each slider you can easily add images and other custom and animate them using the transition effects provided by the Jssor slider. The ProcessSlider module in reality is composed by three different modules: ProcessSlider: the main module InputfieldSlider/FieldtypeSlide: allows the user to use an existing slider inside a page MarkupSlider: converts the slider into Jssor compatible markup and optionally provides the necessary initialization script Features Custom slider size Drag and Drop interface Move and resize elements Slides background with images from existing PW pages Slider Preview (with the provided MarkupSlider module) Predefined style classes for Elements Add or remove Slides Add or remove elements Change slide order visually Jssor skins and bullets support Visual Timeline Optional responsive/fullwidth slider Predefined elements: Images, Text, Links, Image as link, Div blocks, Youtube Videos Animation Options (In and Out): Animation type, Delay, Duration The editor is built with Vue.js+Webpack and uses jQuery for D&D and resize functionalities. Release I'm going to release the module in a couple of weeks, there are still some minor tweaks and improvements that I would like to add. Demo Screencast (be sure to watch it at least at 720p) I hope it will be helpful to the community and I would be glad to get feedback or suggestions for improvement! Please also consider that it is my first PW module, so probably I'm missing some best practices, hopefully the most experienced developers can throw me some hints 23 Link to comment Share on other sites More sharing options...
horst Posted August 25, 2015 Share Posted August 25, 2015 (edited) Welcome @mauricius. This looks really awesome! PS: Best way to get early feedback is to publish a alpha- or beta-state github repo and post the link here. EDIT: PPS: yuhu, I saw & liked it first! Edited August 25, 2015 by horst 2 Link to comment Share on other sites More sharing options...
rick Posted August 25, 2015 Share Posted August 25, 2015 Welcome to the board mauricius. This is a great module! Thanks for your work. Can't wait to try it out. Do you plan an alpha release soon? [edit] Fast trigger finger 1 Link to comment Share on other sites More sharing options...
mauricius Posted August 25, 2015 Author Share Posted August 25, 2015 Thanks everyone! @rick Yeah, as I said I'm planning to release the first alpha version in a couple of weeks, your feedback will be very welcome. 2 Link to comment Share on other sites More sharing options...
Nicolas Posted August 25, 2015 Share Posted August 25, 2015 Welcome @mauricius. That's a great contribution. Hopefully will try it soon an upcoming project. Link to comment Share on other sites More sharing options...
maba Posted August 25, 2015 Share Posted August 25, 2015 Awesome! Thanks mauricius! Link to comment Share on other sites More sharing options...
kongondo Posted August 25, 2015 Share Posted August 25, 2015 @mauricius. This is a very beautiful implementation Welcome to PW and the forums... Link to comment Share on other sites More sharing options...
elabx Posted August 25, 2015 Share Posted August 25, 2015 This is so awesome!! Can't wait to put my hands on it! Link to comment Share on other sites More sharing options...
Beluga Posted August 26, 2015 Share Posted August 26, 2015 Interesting to see one of the new reactive JS thingies being used (Vue.js) I guess you could write a bit about how you decided to pick Vue.js and how it was to get into and work with. Link to comment Share on other sites More sharing options...
pwired Posted August 26, 2015 Share Posted August 26, 2015 Welcome and Hats off for what you are doing Mauricius. I thought I already saw them all out there. But jssor ? Really amazing ! Link to comment Share on other sites More sharing options...
mauricius Posted August 26, 2015 Author Share Posted August 26, 2015 Interesting to see one of the new reactive JS thingies being used (Vue.js) I guess you could write a bit about how you decided to pick Vue.js and how it was to get into and work with. Sure! I'm definetly going to write about it in a future blog post. It's my first project using Vue.js and I was very impressed with its potential, however the community is still quite small, so I had to figure out many things just by myself, especially regarding the implementation of sub-components, nevertheless I'm happy with the result. I'm planning to use it again in the future. Also thanks everyone for the warm welcome and positive reactions. 4 Link to comment Share on other sites More sharing options...
bernhard Posted August 29, 2015 Share Posted August 29, 2015 welcome mauricius! that's insane drag&drop timeline?! what comes next? an online pw video editing module?! looks really awesome! thanks for the screencast. i also didn't know jssor.com 1 Link to comment Share on other sites More sharing options...
mauricius Posted September 8, 2015 Author Share Posted September 8, 2015 The repository is available. See the first post for the link. It's in alpha-state however I'm already using it on my new personal website, which hopefully will be online tomorrow, so you can also take a look at the final result. 11 Link to comment Share on other sites More sharing options...
kongondo Posted September 10, 2015 Share Posted September 10, 2015 Hi mauricius, Tried to install this on a PW 2.5.25 dev site and got the following error Fatal error: Class ProcessSlider contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ConfigurableModule::getModuleConfigInputfields) in F:\xampp\htdocs\dev\site\modules\MarkupSlider\ProcessSlider.module on line 648 I didn't have time to investigate further. Thanks. Link to comment Share on other sites More sharing options...
mauricius Posted September 11, 2015 Author Share Posted September 11, 2015 Hi mauricius, Tried to install this on a PW 2.5.25 dev site and got the following error Fatal error: Class ProcessSlider contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ConfigurableModule::getModuleConfigInputfields) in F:\xampp\htdocs\dev\site\modules\MarkupSlider\ProcessSlider.module on line 648 I didn't have time to investigate further. Thanks. Hi kongondo, I think the error is relative to the new module configuration introduced in ProcessWire 2.5.5 (https://processwire.com/blog/posts/new-module-configuration-options/) which is used by ProcessSlider and ProcessMarkup. Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 11, 2015 Share Posted September 11, 2015 If you're using this you shouldn't implement ConfigurableModule. It's detecting the Config options without the interface. 2 Link to comment Share on other sites More sharing options...
mauricius Posted September 11, 2015 Author Share Posted September 11, 2015 You're right! I'm going to fix it this afternoon. Thanks! Link to comment Share on other sites More sharing options...
adrianmak Posted September 15, 2015 Share Posted September 15, 2015 a nice ui interface ~~~~~ Link to comment Share on other sites More sharing options...
manlio Posted October 30, 2015 Share Posted October 30, 2015 Really great module. It's perfect for client that wants total control over the slider. Thank you. Link to comment Share on other sites More sharing options...
deepentim Posted November 14, 2015 Share Posted November 14, 2015 Wherever I insterted the code on template file. the slider appears top of the table (navigation menu) <div id="container"> <?php $slider = $modules->get('MarkupSlider'); echo $slider->render($page->get('Slider'), $includeScript = true, $options = array()); ;?> </div> Link to comment Share on other sites More sharing options...
bernhard Posted November 14, 2015 Share Posted November 14, 2015 The site profile you are using has delayed output (on mobile search for that keyword) You need to put all the slider markup in the variable $content instead of echoing it: $content = $slider->render... 2 Link to comment Share on other sites More sharing options...
deepentim Posted November 15, 2015 Share Posted November 15, 2015 @BernhardB Yes that worked. Thanks indeed Link to comment Share on other sites More sharing options...
hamzaalibhatti Posted December 9, 2015 Share Posted December 9, 2015 implement a process slider module and set the field slider in template when place the code in template file its throw the error unknown slider here is the code i placed in template file $slider = $modules->get('MarkupSlider'); echo $slider->getStyles($arrows = false, $bullets = false); echo $slider->render($page->get('Slider1'), $includeScript = true, $options = array()); Link to comment Share on other sites More sharing options...
kongondo Posted December 9, 2015 Share Posted December 9, 2015 @hamzaalibhatti Did you install all the three modules that come with this module? i.e. ProcessSlider: the main module InputfieldSlider/FieldtypeSlide: allows the user to use an existing slider inside a page MarkupSlider: converts the slider into Jssor compatible markup and optionally provides the necessary initialization script Link to comment Share on other sites More sharing options...
kongondo Posted December 9, 2015 Share Posted December 9, 2015 OK, your error is being generated at this line. Can you confirm your slider is actually called Slider1? That line indicates your slider was not found. I am not sure whether its case sensitive. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now