In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Relationship Graph View Issue ] Dependency Graph ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0001173 [In-Portal CMS] Template System feature request N/A 2011-11-29 02:31 2012-07-25 05:32
Reporter alex View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0001173: Wrong template on templates loaded via AJAX requests
Description 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>
Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker