DescriptionYou can make reusable snippets (pieces of text/content) and include them into your content via a tag, like {snippet my-first-snippet} You can use this to insert much used content for instance. Then, if you change the content of the snippet, it changes everywhere you have used the tag. The Snippets tagThe Snippets editor button will help you insert Snippets tag. You don't have to use this, you can also just type the tag directly into your content. The tags look like: {snippet snippet-id} So to place a snippet you have given the id 'copyright', you would have to place: {snippet copyright} Using dynamic snippetsYou can pass along 'variables' with the tag which can be placed inside the snippet. This way you can use one snippet and it will generate different output, depending on what you pass along in the tag. Then in the Snippet itself, you can put placeholders for variables with \1, \2, etc. So in the copyright example, your Snippet could look like: You can pass along variables in the tag like: This would output: And with: {snippet copyright|Another Company|2011} You would get: ©2011 - Another Company - All rights reserved Tutorials
SpecsSpecificationsSnippets is a Joomla extension compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5. The extension consists of:
RequirementsSnippets will only work correctly if your setup meets these requirements:
Using PHP 5.2 (or lower)? I can not provide support for setups that do not meet the above requirements. The core Joomla files should of course not be altered in any way. InstallationThe easiest way to install/update is via the NoNumber! Extension Manager. If you have problems installing Snippets, please try the manual installation process as described here: Otherwise, please report this on the forum or let me know via the contact form. UpdatingIf you want to update to the latest version, you do not have to uninstall first. The easiest way to install/update is via the NoNumber! Extension Manager. You can also update simply by installing the package via the Joomla core installation process. DowngradingIf for some reason you need to downgrade, it is best to uninstall the extension first. Also, you will have to uninstall the NoNumber! Framework plugin (system) (and the NoNumber Elements plugin if you have it installed). After that you can simply install the older version zip file. Please note that I cannot not provide support on older versions! Open Source LicenseSnippets is an Open Source Joomla extension. It is in compliance with the GNU/GPL license: Joomla is also Open Source. SupportNeed more help?Before requesting help, make sure your installation and setup meet the requirements (see the Specs) and your extensions are up-to-date. If you need more help, please take a look in the NoNumber! Forum. You can also contact me via the contact form or via chat (if I'm online). ChangelogChangelog + = Added ! = Removed ^ = Changed # = Fixed
26-Jan-2012 : v1.3.4 # Fixed styling issues in Editor Button popup (Joomla 1.7+) # Fixed issue with pagination on Editor Button popup not working (Joomla 1.7+) # Fixed issue with modal links opening in full window (Joomla 1.7+) 13-Jan-2012 : v1.3.3 + Added translations: fr-FR + Added Snippet ID to the list (Joomla 1.7+) ^ Improved speed on frontend # Fixed issue with html entities in Snippet IDs not working # Fixed issue with having more than 20 items causing them to not work (Joomla 1.7+) # Fixed issue with installer not removing the folder/zip from the tmp 12-Dec-2011 : v1.3.2 + Added translations: sl-SI # Fixed issue with duplicating items not working (Joomla 1.7) # Fixed issue with error about tagArea (Joomla 1.7) 05-Dec-2011 : v1.3.1 # Fixed issue with core search pages not working because of !NoNumber! Framework 01-Dec-2011 : v1.3.0 + Joomla 1.7 compatible! ^ Cleaned up more code 07-Nov-2011 : v1.2.2 + Added translations: th-TH ^ Cleaned code syntax (no longer guaranteed support for php 5.2.x and lower) # Fixed issue with tags being handled in some edit forms 17-Oct-2011 : v1.2.1 + Added translations: sv-SE # Fixed security issue in !NoNumber! Framework plugin 08-Oct-2011 : v1.2.0 ^ Improved installer ^ Moved translation language files to main package (no more language packs) ^ Cleaned up some code (like no more use of DS) ^ Changed !NoNumber! Elements plugin to !NoNumber! Framework ^ Moved common language strings to !NoNumber! Framework files ! Removed help page (no help button links to online info) 21-Apr-2011 : v1.0.6 + Added Save as Copy button # Fixed issue with content returning as html entities # Fixed issue with slashes in content 30-Mar-2011 : v1.0.5 # Fixed issue with problems when html has multiple body tags # Fixed issue with copying multiple items # Fixed issue with slashes not being handled correctly when copying items # Fixed issue plugin being executed on raw format pages # Fixed issue with help popup in item view not working # Fixed some language string issues 01-Mar-2011 : v1.0.4 ^ Changed language files to be J1.6 ready # Fixed issue with editor button not working for registered/author level # Fixed issue with tags being interpreted in frontend editor fields with very large contents # Fixed issue with backslashes in content # Fixed language string in configuration 11-Feb-2011 : v1.0.3 ^ Changed extension icon / logo # Fixed issue with untranslated language strings in config popup # Fixed issue with public access to editor button popup page (security fix!) 13-Dec-2010 : v1.0.2 # Fixed issues with document being called to early # Fixed some issues with loading of language strings # Cleaned up some code 26-Nov-2010 : v1.0.1 # Fixed issue with errors in Snippets editor button window on some setups 25-Nov-2010 : v1.0.0 + Added checks to see if !NoNumber! Elements plugin is installed/enabled ^ Fixed and updated all language strings # Fixed issue with tags being handled in edit fields 16-Nov-2010 : v0.5.0 # Fixed extension causing pages to break on some setups # Fixed issue with not working in some forms (where they should) 15-Nov-2010 : v0.4.0 ^ Made !MooTools 1.2 compatible ^ Moved some styling to global plugin # Fixed issue with leading/trailing paragraph tags being stripped when they shouldn't # Fixed issue with hiding !HTML comments not working 28-Oct-2010 : v0.3.1 # Fixed problem with menu items element (also affecting other !NoNumber! extensions) 27-Oct-2010 : v0.3.0 ^ Moved popup styles and images to !NoNumber! Elements plugin ^ Made syntax also be handled in !AncyMailing # Changed code to make snippets also be handled before content plugins Commercial LicenseSnippets is completely free and you DON'T need a Commercial License Code to use it. However, if you use my extensions on websites that you make money from, I would appreciate it if you purchase a License Code. Note: If you don't want to pay for the License Code and want to continue to use the extension for free, please do. You will just have to ignore the license message in the administrator. Note: If you have donated before and feel you should get some reduction on the price, please contact me about it... we'll sort it out :)
Here you can see the difference between the use of the extensions without and with Commercial License Code.
DownloadDownloadsSnippets is compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5 NOTE: Snippets needs PHP 5.3+. Please see the specs for more requirements.
Please clear your browsers cache after updating an extension. NOTE: Joomla 1.6 is no longer supported. Joomla 1.6 reached end-of-life in August 2011. If you have a site running on Joomla 1.6 you are urged to upgrade to Joomla! 2.5. Snippets will probably still work on Joomla 1.6, but any issues specific to Joomla 1.6 will not be fixed. Tip!Are you using multiple NoNumber! extensions? LanguagesThis extension comes with the following languages:
No language pack for your language?I welcome you to help out and get involved with translations for NoNumber! extensions. I am using Transifex for the translations of all NoNumber! extensions. So I kindly ask you to join Transifex. There is a translation team/group set up especially for Joomla projects: OpenTranslators. To join, see the different steps on the right under: Translator Guide: http://opentranslators.org/en/how-to You can find all the NoNumber! projects here: https://www.transifex.net/projects/tag/nonumber/ All language files will be updated and packed with every new release of the individual extensions. |