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.
JavaScript (old code)
$('#target-div').load( '<inp2:m_Link template="path/to/ajax/template" no_amp="1" js_escape="1"/>' );
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:
JavaScript (new code)
$('#target-div').load( '<inp2:m_Link render_template="path/to/ajax/template" no_amp="1" js_escape="1"/>' );
links_inside_ajax_template_fix.patch
Related Tasks
Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.