Redirect all incoming URL's to the correct canonical URLThere are multiple URL's to open a page at your website, this might have a bad influence at your SEO status and Analytics results.
Tips, tricks and tutorials to make it even easier to work with CMS Made Simple. CMSMS is an open source Content Management System. It provides website developers with a simple, easy to use utility to allow building websites.Very simple solution to protect some content with a passwordIn this tutorial Velden will show you a way to implement a poor man's solution to protect some content with a password. It will display a simple form to enter a password and press a submit button to get access to protect content.Automatically send a featured article to social mediaSelect a random CGBlog article and post it once a day to the social media using IFTTT.Search Form AutocompleteWebsite visitors can quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.Use a UDT for content stylingUsing PHP-code for styling a content page or blog article is probably not the first thing that comes in mind. But because of the easy way to name and call the UDT, and the flexibility of its content it is very useful!!Easy way to use Font Awesome in CMS Made SimpleIn WYSIWYG editors Font Awesome code can be difficult to add, and when have multiple icons in templates it might be a bit confusing... Solution: a simple UDT!Admin (failed) login notificationYou want to have more control over your Admin panel? Who is entering it and when are people failing to login...Convert a string to availability imagesA simple and easy to use availability feature for CMS Made Simple™. A User Defined Tag (UDT) converts a comma seperated string of 0's and 1's into a list of images.Simple listA User Defined Tag (UDT) in CMS Made Simple™ to convert a plain text content block value into an array of lines.UDT that outputs the current seasonAt our community website I made a header with a changing photo of our village and the surrounding area. I made four folders with photos, one for each season. With a User Defined Tag I read the date and determine what season it is and set it in a Smarty string. With that I change the output of the photo gallery path.content_type UDT for use in CMSMS 1.12.x and 2.xIn several of my tips and tricks articles I use the content_type UDT to change the content type of the page. In the 2.x release of CMS Made Simple this method is changed and won't work anymore...Smartphone call me linkA small User Defined Tag that can be used to create clickable call-me links of telephone numbers when the website is opened in a mobile web browser. After clicking the link it first opens a pop-up box asking for confirmation, to prevent accidental phone calls.Mousetrap for template errorsSometimes difficult problems have simple solutions. I noticed in the adminlog of one of my CMS Made Simple™ websites some template errors have occurred, but I didn't know where exactly... Well, just browse the pages and search for the broken page you would say. But this is easier said than done, it is a huge website with let alone over 2000 blog articles. No way I could solve it this way. I created a...Call a Smarty tag from a UDTFor my pneumatic tube website I used the Products module for CMS Made Simple as an image library. The module was great for this purpose, I can add images and can store additional information in custom fields. But for adding a single image to a page I needed a large module tag with parameters. If at some point I want to change something here I need to change all tags in the pages... I searched and found a method to make this easier for me...Create a RSS feed without a moduleI will show you an example RSS feed in combination with the CGBlog module for CMS Made Simple. You can also use it for several other modules, like News, CGCalendar, etc. You need to change the Smarty tags in the feed template matching with the module used.Create dynamic sitemap, humans.txt and robots.txt filesTo help search engines like Bing and Google index your website you can use sitemaps and a robots.txt file. A module like SiteMapMadeSimple is a great solution to create your static sitemap. A disadvantage of the module is that after each content change the sitemap file is recreated. For very large websites it can take a while... I had that problem at one of my own websites. A few hunderd pages, a few thousand...Set, read and debug cookiesA cookie, also known as an HTTP cookie, web cookie, or browser cookie, is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website. You can use cookies to store user settings for i.e. website styling, language preferences, etc. I will show you how to set, read and debug cookies at your CMS Made Simple website.Send Email Notification on Page ChangeThis is a User Defined Tag / Event combination that sends an email when a page is changed.Show a list of the recently updated pagesOutputs a list of recently updated pages. This code is forked from the CMS Made Simple {recently_updated} plugin. At the existing CMSMS plugin it isn't possible to change the lay-out of the output. I needed it for my website though, so I created this UDT which gave me more flexibility.Admin Login Info MailerA simple mailing script based on the existing CMSMS mailer module, to send the newly added admin user's login info to his/her e-mail.Count days, is this page recent?With this User Defined Tag you can calculate the age of a content page and use it in your page/template to show a notice or style some text.Hide forms for certain IP addressesHide website forms for certain IP addresses (partial banning)Make a link to a fileUser Defined Tag to create a link to open a file, followed by the filesize.Get a page's root parent's hierarchy-positionThis User Defined Tag gets the hierarchy-position of a pages very top parent.Get a page's root parent's aliasThis User Defined Tag gets the alias of a pages very top parent.Count itemsSmall User Defined Tag that count items in an array, useful for several modules like News, CGBlog, Products, etc.List of imagesAn example UDT which reads the images in a folder and shows it in a unordered list. With JQuery, Fancybox and some styling you can use it to create a simple photogalery.Table of contentsGenerate a table of contents for your pages based on the heading tags. It requires, depending on how you want to use it, IDs or anchors in your page.Add a class to all page(groups)You can use this small tag to get yourself a class name for the current page. This is very useful when you want to apply particular CSS style only to a certain page, or a subset of pages.