-
nyloth authored
* Now fully support the 'Label' - introduced in DB by nkoth - of a bloc (in listing table and when using the smarty function), * Use smarty pagination and self_query + find.tpl. This also make this feature AJAX-ready (for column sorting, pagination, find and actions), * Change smarty 'rcontent' function to allow no params (neither 'id' nor 'label') that will return a random content not related to a specific bloc, * New smarty compiler 'assign_content' that simplifies the use of dynamic contents in templates (for exemple, {assign_content label='my_label' var='test'} will put the data of the dynamic content in the $test variable, available in the smarty template. This is easier than using smarty capture and is useful to display the dynamic content only if the value match some conditions), * Use one query instead of two in TikiLib::get_actual_content(), * Change dcslib::list_content() to get all data from one query, in order to be able to easily sort on every fields, * Change dcslib::get_random_content() to allow no params, which means random with no specific contentId, * Display the current value of a dynamic content in the list of content blocs, * Remove the 'last versions' column which takes place and is not really useful, * To gain more place, move the 'Description' above the Label (in the Label column) as it is more and more done for table listings in tiki, * Move the cross icon ('Delete' action) to display it as the last action (as nearly everywhere in tiki)
b552ee16