Home » Extensions » Snippets
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

With Snippets you can include text snippets in your content.

If you use Snippets, please post a rating and a review at the Joomla! Extensions Directory.

Description

You can make reusable snippets (pieces of text/content) and include them into your content via a tag, like {snippet my-first-snippet}

If you edit the article (or module or wherever you put the tag), you will still see the tag. But on frontend view you will see the content of the snippet instead.

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 tag

The 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 snippets

You 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:
©\2 - \1 - All rights reserved

You can pass along variables in the tag like:
{snippet copyright|My Company|2010}

This would output:
©2010 - My Company - All rights reserved

And with:

{snippet copyright|Another Company|2011}

You would get:

©2011 - Another Company - All rights reserved

Tutorials

Specs

Specifications

Snippets is a Joomla extension compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5.

The extension consists of:

  • a component
  • a system plugin
  • an editor button plugin

Requirements

Snippets will only work correctly if your setup meets these requirements:

  • Up-to-date version of Joomla!
  • PHP 5.3+
  • PHP mbstring (Multibyte String) functions should be enabled
  • MySQL 5+

Using PHP 5.2 (or lower)?
PHP 5.2 is old and support for it has stopped with the release of PHP 5.2.16 (16-Dec-2010). This means that PHP 5.2 cannot be considered stable or secure anymore.
If your host will not or cannot provide you with an up-to-date version of PHP, then you have reason enough to look for a decent host.
PHP 5.2 mainly has problems with installation of the zip packages. The extensions might work without problems for you once installed, but I can not give any guarantees on that.
>> For more detailed information, read: No more php 5.2 support - move on to php 5.3

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.

Installation

The 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:
docs.joomla.org/Installing_an_extension

Otherwise, please report this on the forum or let me know via the contact form.

Updating

If 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.

Downgrading

If 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 License

Snippets is an Open Source Joomla extension. It is in compliance with the GNU/GPL license:
Licence: GNU/GPL GNU General Public License, version 2

Joomla is also Open Source.

Support

Need 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.
If you can't find your answer there, please post your question. I am very willing to help!

You can also contact me via the contact form or via chat (if I'm online).

Changelog

Changelog

+ = 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 License

Snippets 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.
The License Code will remove the license message from the extensions administrator screens.

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 :)

more information...

 

 

Here you can see the difference between the use of the extensions without and with Commercial License Code.

WITHOUT Commercial License CodeWITH Commercial License Code
Full version download yes YES yes YES
Full functionality yes YES yes YES
Message in administrator license_invalid license_valid
Encrypted no NO no NO
Free updates yes YES yes YES
Free support yes YES yes YES
Free RSS news subscription yes YES yes YES
Free holiday to Barbados no NO no NO

Download

Downloads

Snippets 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.

  • Are you going to use this extension on a commercial website? Please consider buying a License Code

More downloads...

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?
Install the NoNumber! Extension Manager to easily keep them up-to-date.

Languages

This extension comes with the following languages:

  • [pt-BR] Brazilian Portuguese
  • [ca-ES] Catalan
  • [nl-NL] Dutch
  • [en-GB] English
  • [fr-FR] French
  • [el-GR] Greek
  • [it-IT] Italian
  • [ja-JP] Japanese
  • [lt-LT] Lithuanian
  • [ru-RU] Russian
  • [sl-SI] Slovenian
  • [es-ES] Spanish
  • [sv-SE] Swedish
  • [th-TH] Thai

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.

OpenTranslators

 
Open Source Training | Online Joomla! Training and Support
MaxCDN | Content Delivery Network | Accelerate your site to the max
hosting joomla