Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/40b20b5037d02cea#

In-Portal uses *<inp2:m_Link .../> *tag to build links to this/other pages
of website.

When:

   - template is not specified, then link to current page will be created;
   - template is specified, then link to given page will be created.

However, when parts of a page are loaded via ajax requests, e.g.

<script type="text/javascript">
 $('#target-div').load( '<inp2:m_Link
*template="path/to/ajax/template"*no_amp="1" js_escape="1"/>' );
</script>

then within "path/to/ajax/template" template current template will now be "
path/to/ajax/template" instead of template used to display the page that
made that ajax request.

Attached patch solves this problem allowing to specify alternative
template, that should be used by template parser to display page content.
Fixed version of JavaScript code from example above now will look like:

<script type="text/javascript">
$('#target-div').load( '<inp2:m_Link *
render_template="path/to/ajax/template"* no_amp="1" js_escape="1"/>' );
</script>

Task:

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.


Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

  • No labels