There are ways to enable mambots within a component but they do require editing the component, and it may not be designed correctly to run them. However it is possible to manually enable the mambot by adding the javascript directly to your source code.
You will need to add the following to the header of your template (to enable XHTML compliance) otherwise any before the next bit of code.
| Code: |
<script type="text/javascript" src="/mambots/content/sbdnicertables/javascript/nicer_tables.js"></script>
<style type="text/css" media="screen">@import "http://joomla10.simplebydesign.co.uk/mambots/content/sbdnicertables/sbdnicertables.css";</style>
|
You will only need the css line if you plan to format the look via css.
Once you have added that you will need to add the following below the table:
| Code: |
<script language="JavaScript" type="text/javascript">
var headerOff = 1;
var footerOff = 0;
var oddCol = '#cccccc';
var evenCol = '#ffffff';
var moverCol = '#f5f5f5';
var onclickCol = '#f5f5f5';
var oddStyle = 'sbdna';
var evenStyle = 'sbdna';
var moverStyle = 'sbdna';
var onclickStyle = 'sbdna';
var useCSS = 1;
tigra_tables('table_id', headerOff, footerOff, oddCol, evenCol, moverCol, onclickCol, oddStyle, evenStyle, moverStyle, onclickStyle, useCSS ); </script>
|
This is not enabling any of the filter/sorting. Basically you will need to replace table_id with the id of the table, and the configure the other parameters:
headerOff - when to start highlighting the rows from the top of the table
footerOff - when to stop hightlighting the rows from the bottom of the table
oddCol - odd rows colour
evenCol - even rows colour
moverCol - mouse over colour
onclickCol - on click row colour
oddStyle,evenStyle,moverStyle,onclickStyle - leave these
useCSS - use CSS for row info 1 yes, 0 no
If you require filter/sorting please let us know and we'll have a look and post the javascript you require.
Kind Regards