CAVEATS FOR PLUGIN MODIFICATION - Aug 29th, 2011


Although it's possible and sometimes very handy to modify your plugins to pull data from other editors, It's important
that there are no spaces, blank lines, or other code before the code:

<?php


If you want to add any load records calls, add:

?>
<?php

after the code above, and insert the calls in a new set of php tags.

So your code might look like:

<?php


?>
<?php

require_once "/path_to_your/cmsAdmin/lib/viewer_functions.php";

// load records
list(your_tableRecords, $your_tableMetaData) = getRecords(array(
'tableName' => 'your_table',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$your_tableRecord = @$your_tableRecords[0]; // get first record

?>
<?php

the rest of your plugin code with modifications...


You can learn more about how to modify a plugin in the recipe about the SHOW HIDE FIELDS FOR USERS PLUGIN



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service