Re: [Perchpole] Custom ['_Link']
>Still hoping for an init.php set-up though.
I'm not sure if we're both talking about the same thing, but if we want to have custom modifications that are specific to a site they way we do that is to create a custom plugin for a site named /cmsAdmin/plugins/sitename-custom.php
And if I wanted to change how _link worked I'd put it at the top of the page, something like this:
// load records
list($newsRecords, $newsMetaData) = getRecords(array(
'tableName' => 'news',
));
// create custom _link values
foreach (array_keys($newsRecords) as $index) {
$record = &$newsRecords[$index];
$record['_link'] = '';
$record['_link'] .= "?category=" . urlencode($record['category']);
$record['_link'] .= "&" .$record['_filename']. '-' . $record['num'];
unset($record);
}
Basically what that does is overwrite _link for all the records.
If you wanted to modify how _link worked site wide I could add a plugin filter hook for that value to CMSB. Then you could have a plugin that output custom _link values based on the table, record, etc.
Dave Edis - Senior Developer
interactivetools.com