Skip to content

Commit

Permalink
update structure
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDokuka committed Jul 24, 2015
1 parent c3226d2 commit 9699865
Showing 1 changed file with 65 additions and 3 deletions.
68 changes: 65 additions & 3 deletions docs/tag-engine/search.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,69 @@
.. include:: /common/stub-topic.txt
Search Tag
==========


In this article:
- `Introduction`_
- `Use in template`_


Introduction
------------
ImCMS support powerful and flex search engine that integrate with well-known Apache Solr. Each document in the system index in solr.


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

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 image |
+--------------------+--------------+--------------------------------------------------+
| id | String | Html attribute ``id`` |
+--------------------+--------------+--------------------------------------------------+
| pre | String | Text or html tag that would be added before |
| | | image tag |
+--------------------+--------------+--------------------------------------------------+
| post | String | Text or html tag that would be added after image |
| | | tag |
+--------------------+--------------+--------------------------------------------------+
| styleClass | String | Add html attribute ``class`` to image |
+--------------------+--------------+--------------------------------------------------+
| style | String | Add html attribute ``style`` to image |
+--------------------+--------------+--------------------------------------------------+

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>
|stub-icon| Search Tag
======================
Expand Down

0 comments on commit 9699865

Please sign in to comment.