-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d34854
commit 0d4cbf0
Showing
1 changed file
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||