Sackgesicht VIP
Total posts: 1,636
19 Май 2016 05:27

A usefull feature would be a template switcher for full article templates. We could create additional templtes, which could be called through the article list context menu (edit, bookmark etc) from the list view. The name of the template could be the link title.

Then we could also utilize the link to a template view in modifying the list template and add a button there which will open the alternative template in a modal window or full view.

Последние изменения: 26 Май 2016

Метки Cobalt 9


Jeff VIP
Total posts: 745
19 Май 2016 05:30

Good idea!


Sergey
Total posts: 13,748
19 Май 2016 08:31

So you want that template name become part of URL. That make sense. That is simple task. But I can only add it to Cobalt 9 because that would break backward compatibility. Parameter for article template will be multiple values instead of single value.


Sackgesicht VIP
Total posts: 1,636
20 Май 2016 10:44

Is there a way to call a full article view with a specific template now?


Sergey
Total posts: 13,748
26 Май 2016 16:00

Right now, you can only create components/com_cobalt/views/record/tmpl/default.php layout override that will load default template or template from URL name.

<?php echo $this->loadTemplate('record_'.JFactory::getApplication()->input->get('tmpl_name', $this->type->params->get('properties.tmpl_article', 'default')));?>
Работает на Cobalt