This is a templater component that allows to show list of issues somewhere within Claromentis. It doesn’t require any additional PHP code to work and can be inserted anywhere in VI template. All configuration is done using tag attributes within template.
Basic usage:
<component class="ICIssuesComponent" project_id="NN" fields="id,status,reporter">
This will show in row issues from Infocapture project with ID NN, as specified by project_id attribute.
Full list of parameters:
Custom layout allows to define any additional styling of issues table.
To do this, custom html template should be created, put somewhere within Claromentis and its location specified in template attribute. Path to template is entered without leading slash, starting from folder just below interface_.... As an example, location of default templates is “gallery/includes/component_horizontal.html” and “infocapture/issues_component.html”. Templates are usual Claromentis templates, so check this for help with their markup language.
This is a default template for issues table:
<div name="error" visible="0"></div> <div name="data"> <table width="100%" class="table_main"> <caption name="issues_caption"></caption> <thead> <tr name="issues_head" datasrc=""> <th name="th"></th> </tr> </thead> <tbody name="issues_data" datasrc=""> <tr name="tr" datasrc=""> <td name="td"></td> </tr> </tbody> <tfoot> <tr> <td colspan="2" name="issues_pager" datasrc=""></td> </tr> </tfoot> </table> </div>
The following names are available to use within this template:
And simple template for issues table. In simple template you can set custom apperance for data in table.
<div name="error" visible="0"></div> <div name="data"> <table width="100%" class="table_main"> <caption name="issues_caption"></caption> <col width="10" span="2"> <thead> <tr> <th><img width="14" height="12" src="/intranet/infocapture/images/comment.gif"></th> <th><img width="6" height="14" src="/intranet/infocapture/images/files.gif"></th> <th>ID</th> </tr> </thead> <tbody name="issues_data" datasrc=""> <tr> <td name="ic_col1"></td> <td name="ic_col2"></td> <td><b name="ic_col3"></b></td> </tr> </tbody> <tfoot> <tr> <td colspan="2" name="issues_pager" datasrc=""></td> </tr> </tfoot> </table> </div>
The following unique names are available to use within this template: