Skip to content

Commit

Permalink
hot fixes, basic menu tag docs
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDokuka committed Jul 22, 2015
1 parent 2248b47 commit 375f352
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def setup(app):
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['common/_static']
html_static_path = ['/common/_static']

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down
8 changes: 8 additions & 0 deletions docs/document-engine/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Document Engine
===============

.. toctree::
:titlesonly:

Type

3 changes: 2 additions & 1 deletion docs/getting-started/design/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Templates
In this article:
- `Create new template`_
- `Modify template`_
- `Summary`_
- `Summary`_


Create new template
Expand Down Expand Up @@ -48,6 +48,7 @@ Create new template
7. Choose created template from dropdown and click **"OK"** button



Modify template
---------------

Expand Down
7 changes: 4 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
.. _index:

ImCMS Documentation
=========================
===================

.. include:: ../common/stub-overview.txt
.. include:: /common/stub-overview.txt

.. toctree::
:titlesonly:

overview
getting-started/index
tag-engine/index
document-engine/index

.. include:: ../common/contribute.txt
.. include:: /common/contribute.txt


6 changes: 3 additions & 3 deletions docs/overview.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. include:: /../common/stub-topic.txt
.. include:: /common/stub-topic.txt

|stub-icon| Overview of ImCMS
===================================
=============================

.. include:: /../common/stub-notice.txt
.. include:: /common/stub-notice.txt

.. _issue: https://github.com/aspnet/Docs/issues/113
59 changes: 58 additions & 1 deletion docs/tag-engine/menu.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
Menu Tag
========



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

Introduction
------------
Well-known, an integral part of the page is menu it navigate users overall web-site, and describe what kind of content
was presented on. Since ImCMS based on document-presented pages each menu item can presented as specific document link (see also `Document Engine </document-engine/index>`_ section

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

For configure ``Loop`` tag in template just look at the code above.

.. code-block:: jsp
<imcms:loop no="1" pre="<div>" post="</div>">
...HTML or JPS tags here...
</imcms:loop>
Available list of tag attributes:
"""""""""""""""""""""""""""""""""

+--------------------+--------------+--------------------------------------------------+
| Attribute | Type | Description |
+====================+==============+==================================================+
| no | Integer | Identifier for current loop |
+--------------------+--------------+--------------------------------------------------+
| pre | String | Text or html tag that would be added before |
| | | loop tag |
+--------------------+--------------+--------------------------------------------------+
| post | String | Text or html tag that would be added after loop |
| | | tag |
+--------------------+--------------+--------------------------------------------------+

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:loop no="1" pre="<div>" post="</div>">
Hello world with loop content
</imcms:loop>
</body>
</html>

0 comments on commit 375f352

Please sign in to comment.