Loading...
 
Skip to main content

Plugin Img

Use this wiki plugin to display an image either inline or with styling and resizing. Images can be identified by URL address and by ID for images in Tiki file or image galleries or attachments on the Tiki site. The image can be styled and resized and can be included in a styled box with the image description or name displayed. Images can be set to enlarge on mouseover, or via colorbox, or in a separate web page.

Usage and Parameters

Here are some quick examples:

Pretty pears
Pretty pears

Click here for the code...
Copy to clipboard
{img src="img/wiki_up/393px-Pears.jpg" thumb="y" imalign="center" stylebox="border" button="y" desc="Pretty pears" max="200" rel="box"}


Note: click on image or button to enlarge
desc
Commit screenshot

Click here for the code...
Copy to clipboard
{img attId=37, thumb=mouseover, styleimage=border, desc=desc, max=150}


Note: mouse over or tap (on touch devices) image to bring up a popup
Tiki19 Slide2

Click here for the code...
Copy to clipboard
{img randomGalleryId="1" stylebox="border: 1px solid #000;-moz-box-shadow: 3px 3px 8px #3b120e; -webkit-box-shadow: 3px 3px 8px #3B120E; box-shadow: 3px 3px 8px #3B120E;" height="180" width="250"}


Note: random image picked from a file gallery with styled frame

Parameters

Below are the parameters for this plugin, categorized into tabs:

Plugin Manager error: img plugin not found

Plugin Manager error: img plugin not found

Plugin Manager error: img plugin not found

Plugin Manager error: img plugin not found

Plugin Manager error: img plugin not found

Plugin Manager error: img plugin not found

Plugin Manager error: img plugin not found


Examples

Image aligned right and hyperlinked

This code:

Copy to clipboard
{img attId="39" imalign="right" link="https://tiki.org" alt="Panama Hat"} This text after the img code will nevertheless be on the left because the image is right aligned. The text will also wrap around the image since the ''imalign'' parameter "floats" the image.


Would produce this on this site:

Panama Hat This text after the img code will nevertheless be on the left because the image is right aligned. The text will also wrap around the image since the imalign parameter "floats" the image.

The target of the link will always be "_blank".


 Tip
See Controlling Wrapping if you need to further control how the text or other elements are wrapping around your image

Add several images in a row

This code:

Copy to clipboard
{img attId="57|58|59" desc="desc" alt="Sample Images" thumb="y" stylebox="float: left; margin-right:10px"}

This might not be possible with all versions earlier than Tiki 4.

Would produce this on this site:


Sample Images
Apples
Sample Images
Oranges
Sample Images
Apples and oranges


Different image for a thumbnail

Below is an example of using a thumbnail image (apples) that is different than the image brought up when the thumbnail is clicked (oranges):

Copy to clipboard
{img attId="57" thumb="y" link="tiki-download_wiki_attachment.php?attId=58&display" rel="box[g]"}

Would produce this on this site:

Image


Zoom image on mouse over

 Please note
This parameter requires Preference feature jQuery Zoom enabled (Preference name: feature_jquery_zoom)

Below is an example of using a thumbnail image (apples) that enlarges when moused over:

Copy to clipboard
{img attId="57" thumb="zoom"}

Would produce this on this site:

Image


Zoom image in a modal box

Add the parameter thumb="zoombox". Then you will be able to get image magnification, when the source image is bigger than the size shown on screen. Full size image appears with zoom option in a "Colorbox" overlay when thumbnail is clicked.

 Please note
This parameter requires Preference feature jQuery Zoom enabled (Preference name: feature_jquery_zoom)

Below is an example of using a thumbnail image (pears) that enlarges in the Colorbox modal overlay:

Copy to clipboard
{img src="img/wiki_up/393px-Pears.jpg" thumb="zoombox"}

Would produce this on this site:

Image


Avoid images being resized and relocated in Slideshows

This S5 slideshow engine in Tiki (see PluginSlideShow) resizes and relocates images automagically by deafault, in order to allow quickly show content, and a small thumbnail of the image at the upper right corner of the slide.

If you prefer to have the image shown at its original size and position, you can add the parameter class="fixedSize" to your img call. Example:

This code would show the image as a small thumbnail in the upper right corner of the slide:


code to allow resizing and relocating the image
Copy to clipboard
{img src="display2" rel="box[g]" width="500"}


 
But this code would allow the image to be shown at the original size of 500px and at the same position where this code was written.

code to keep original size and position
Copy to clipboard
{img src="display2" rel="box[g]" width="500" class="fixedSize"}

For a better usage with Social Network

A parameter was added to facilitated integration with Social Network application.
To tell open graph what is the featured picture to be used in a post, story, etc...(and may be something different for twitter) you can use the "featured" parameter.

Copy to clipboard
{img type="src" src="display2228" alt="TikiFest Virtual 2021 banner" featured="y"}



Multi-resolution images (Retina display)

Added in Tiki18. See Multi-resolution images

Notes

When the SEFURLs feature is enabled you can enter "displayID" (where ID is the number of the image in the File Gallery) in the image source field (the src param).

  • Wiki-Syntax Images - General information about adding images to tiki pages
  • PluginColorbox - displays images in a file or image gallery in a slideshow (version 5.0)
  • PluginFiles - use the slideshow parameter to create pop-up slideshows
  • PluginGalleriffic - display images in a file gallery using the jQuery Galleriffic module
  • PluginSlider makes an embedded slideshow from whatever content you add there (images, text, video, etc, split between markers for new slide) .
  • PluginCarousel displays the images of a file gallery in a self-advancing carousel, as an embedded slideshow.



Created by lindon. Last Modification: Wednesday 02 February, 2022 22:07:40 GMT-0000 by drsassafras.

Attached files

ID Name Comment Uploaded Size Downloads
59 apples-and-oranges2.jpg Apples and oranges lindon 9.44 Kb 11555
58 oranges2.jpg Oranges lindon 8.84 Kb 12433
57 apples2a.jpg Apples lindon 9.14 Kb 11654
37 Gui-Commit.jpg Commit screenshot lindon 71.38 Kb 16624

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 50😎
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki