I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Feature #1903

Wiki macro

Added by Andriy Lesyuk almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
27 Nov 2011
Due date:
04 Aug 2013
% Done:

100%

External issue:

Description

Add placeholder(s) to Wiki page content by adding a Wiki macro e.g. {{wiki_page_content}}.

This way when writing Wiki page an author can add an ad by using this macro e.g.:

h2. Heading

Hello this is some page...

{{wiki_page_content}}

h3. Section


Related issues

Related to WikiNG - Improvement #2206: Do not use {{hook}} name Closed 04 Aug 2013 12 Sep 2013

Associated revisions

Revision 19 (diff)
Added by Andriy Lesyuk over 6 years ago

Added Wiki macro (closes #1903)

History

#1 Updated by Andriy Lesyuk almost 8 years ago

  • Status changed from New to Open
  • Assignee set to Andriy Lesyuk
  • Target version set to 1.0.0

#2 Updated by Andriy Lesyuk almost 8 years ago

I like this syntax more:
  • !{{inline_ads}} - will call wiki_hooks_manager_inline_ads
  • !{{inline_ads(right)}} - will call wiki_hooks_manager_inline_ads_right

#3 Updated by Andriy Lesyuk over 6 years ago

I think about generating hook name, e.g., view_wiki_content_hd44e4d541df4df15d41f4f

#4 Updated by Andriy Lesyuk over 6 years ago

Or:
  • Hook name will be view_wiki_inline_content.
  • Wiki macro will be {hook(parameter=value)}.
  • Parameters will be “translated” into JS variables.
    For example:
    {hook(parameter=value)}
    

    Will be converted into:
    <script type="text/javascript">
    <!--
    parameter = "value";
    //-->
    </script>
    

#5 Updated by Andriy Lesyuk over 6 years ago

  • Due date set to 04 Aug 2013
  • Status changed from Open to In Progress
  • % Done changed from 0 to 100

Choose name {{inline_hook}}.

#6 Updated by Andriy Lesyuk over 6 years ago

  • Status changed from In Progress to Closed

Applied in changeset r19.

Also available in: Atom PDF

Terms of use | Privacy policy