About Textformatter Page Images
Allows you to insert images in a text area by referencing them with tags in the following format [[fieldName,Number,class]]. All Parameters are optional. Configurable base class and wrapper.
|Category 1||Markup Generation|
Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin).
|Category 2||Text Formatters|
Textformatter modules that provide run-time formatting for blocks of text (typically used with Text/Textarea fields).
Should be safe for use in production environments. *
|Compatibility||2.5, 2.6, 2.7, 3.0|
|Date Added||October 25, 2015|
|Last Updated||December 7, 2016|
This module's files should be placed in /site/modules/TextformatterPageImages/
How to install or uninstall modules
- includes an image-tag in the Textfield by using [[fieldname(optional),number(optional),class(optional)]]
- if using this module Names of Imagefields shouldn't start with a number
- If a class (CSS) is added Fieldname and/or Number and/or leading Comma is mandatory
- Comma is mandatory from two Parameters and up
Look at the Examples for easy understanding
[] matches the first or only one picture in the first or only one image-field if exists
[[images]] matches the first or only one picture in the named image-field
[] matches the fourth picture in the first or only one image-field
[[3,left]] matches the third picture in the first or only one image-field and adds the class left
[[,right]] matches the first or only one picture in the first or only one image-field and adds the class left
[[images,3,top]] matches the third picture in the image-field named 'images' and adds the class top
- One or more basic classes could be added to the image tag
- Define markup for wrapper
function wrapper() is hookable with instance of Pageimage as argument. The function return an array of 2 elements.
works proper together with other textformatters like markdown.
to Diogo for the nice module TextformatterImageTags which is the mother of this module.
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.