Вопрос

How can we add featured and unfeatured options for component in the admin backend.

I tried using the article manager (com_content). There we can select number of article and changes as featured. But there is no option for unfeatured in toolbar.

I have to add the featured options like publish/unpublish toolbar.

Thanks in advance.

Это было полезно?

Решение

I got the result. This is the following code to done the result.

In view.html.php add the follwing line for the unfeature toolbar.

JToolBarHelper::custom('featured.delete', 'remove.png', 'remove_f2.png', 'JTOOLBAR_REMOVE', true);

In featured controller, there is a function(delete) to remove the featured one to unfeatured.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top