Posts

Showing posts from 2016

Automated Publish Module

Publishing restrictions are great they allow you to specify what date and time an item or version is publishable. This meets the use case where you might be creating content for your Christmas campaign and don't want it to go live until the 1st of December (or October if the current shop displays and adverts are anything to go by :S). The only issue with this is you have to manually publish after the time specified to get the content live. A common ask is for that content to go live out of normal office hours, say 00:01. Out of the box that would require someone to log in and hit publish. I was looking for something that would do this automatically. Two options spring to mind, but both have disadvantages: 1. Run a publish scheduled task at a defined interval, say 1hr. This will get the content live at the time you want, however the downsides are that it will publish any content that's publishable regardless of restrictions, it’s not only as accurate as the interval

Web Forms for marketers and Bootstrap

Image
Just thought I'd share an issue I had using Bootstrap themes and web forms for marketers. I had an issue embedding a wffm form in a bootsrap modal but got it working, not the most elegant solution but it did the job for me. The overall issue was that the modal dialog would grey out when opened with a wffm form embedded. The first step was to isolate the scope of any jquery variables I used. Wffm includes jquery and it broke my scripts. This is the standard way as described here: https://api.jquery.com/jquery.noconflict/ WFFM MVC also embeds the bootstrap css files and I had to modify this, this is probably not the most elegant way to do it but i simply changed the .modal { z-index: 1040 } to 1042. This is located in sitecore \sitecore modules\Web\Web Forms for Marketers\mvc\content It got it working for me so thought I would share.