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

458 views Asked by At

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.

1

There are 1 answers

0
Mohammed Nagoor On BEST ANSWER

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.