If a column of dataset contains HTML, you must add a key isSafeHtml for not encode it.
<?php
return array(
'data_mapping' => array(
// ...
'column_with_html' => array(
'title' => 'Column with HTML',
'column' => 'col_html',
'isSafeHtml' => true,
),
// ...
),
);
See also
In CRUD, when updating an item, success callback function is called after save (not before), like when inserting. If you use success in your developments, check that your code is compatible with a call after save.
Now, ->url() and ->urlResized() methods return absolutes URLs. You have two choices for update your developments:
check that you don’t concatenate base_url before where you use those methods.
Add a parameter equals to false at call-time.
<?php $attachement->url(false);
See also
Migration tries to guess the context of existing comments, but if you’ve implemented comments on a non contextable model, migration won’t be able to do it. In this case, you habe to set the context manually (comm_context column of nos_comment table) if you want to see those comments in new administration interface.
If you want to revert to the previous configuration:
Extend the related configuration file noviusos_blog::config or noviusos_news::config
Edit configuration like that:
<?php return array( 'thumbnail' => array( 'front' => array( 'list' => array( 'link_to_item' => false, 'max_width' => 200. ), 'item' => array( 'link_to_fullsize' => false, ), ), ), );
All URL enhancers must implement a getUrlEnhanced() method.
Those updates are not mandatory but desirable to be able to migrate without trouble when next version is released.
Deprecated code:
<?php
public static function get_url_model($item, $params = array())
{
$model = get_class($item);
switch ($model) {
case 'A\Class':
return $item->virtual_name).'.html';
break;
}
return false;
}
Replace with:
<?php
public static function getURLEnhanced($params = array())
{
$item = \Arr::get($params, 'item', false);
if ($item) {
$model = get_class($item);
switch ($model) {
case 'A\Class':
return $item->virtual_name).'.html';
break;
}
}
return false;
}
All snake_case methods are deprecated:
See also
See also
Model_Page->link() is deprecated, use Model_Page->htmlAnchor() instead.
Warning
Model_Page->link() returns only href and target attributs, Model_Page->htmlAnchor() returns the whole HTML tag <a>.
See also
New in version Chiba: 2.1
Those updates are not mandatory but desirable to be able to migrate without trouble when next version is released.
The set_renderer_options() method is deprecated, use setRendererOptions() instead.
The parse_options() method is deprecated, use parseOptions() instead.
The Chiba 2.1 version of Slideshow application has to make some migrations in the DB. See Run the migration.