Skip to content

Commit

Permalink
add info about image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDokuka committed Jul 6, 2015
1 parent 8d34854 commit 0d4cbf0
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion docs/tag-engine/image.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
Image Tag
=========


In this article:
- `Use in template`_


Use in template
---------------

ImCMS by default provide easy access to image, stored in the system. Also for using image in template all that needed are insert image-tag in the desired place.

Available list of tag attributes:
"""""""""""""""""""""""""""""""""

+--------------------+--------------+-------------------------------------------------+
| Attribute | Type | Description |
+====================+==============+=================================================+
| no | Integer | Identifier for current image |
+--------------------+--------------+-------------------------------------------------+
| document | Integer | Identify the linked document (default |
| | | - current document |
+--------------------+--------------+-------------------------------------------------+
| version | Integer | Identify version of text |
+--------------------+--------------+-------------------------------------------------+
| formats | String | Text format |
+--------------------+--------------+-------------------------------------------------+
| pre | String | Text or html tag that would be added befor text |
+--------------------+--------------+-------------------------------------------------+
| post | String | Text or html tag that would be added after text |
+--------------------+--------------+-------------------------------------------------+

Example:
""""""""
.. code-block:: jsp
<%@taglib prefix="imcms" uri="imcms" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Template</title>
<meta charset="utf-8"/>
</head>
<body>
<imcms:image no="1" document="1001" pre="<div>" post="</div>"/>
</body>
</html>

0 comments on commit 0d4cbf0

Please sign in to comment.