When working with FC at the stage of creating the structure I open several tabs to work parallelly.
And damn, the title tag is the same. And the very next 10 minutes I forget the order of the tabs.
That would be perfect, if the backend title was informative.
My suggestion is to add set title code to the views to have such a result:
So in each backend view. i.e.
administrator/components/com_flexicontent/views/item/view.html.php
after
Code:
$document = & JFactory::getDocument();
there should be added something like this
Code:
$document->setTitle(JText::_( 'FC '.JString::ucfirst($this->name)).' - '.$document->getTitle());
And well, not to alter all views, this may be done inside a plugin, or. what whould be better, the views should inherit not the code JView, but some FCJView class.
I mean each view should be declared not like
Code:
class FlexicontentViewItem extends JView {
but like
Code:
class FlexicontentViewItem extends FCJView {
And the newly created class FCJView can contain some wide-application same code, not to duplicate it many times.
Wrapper class for a big application is always a good idea.
So the base class may look like
Code:
class FCJView extends JView {
function __construct () {
parent::__construct();
$document = & JFactory::getDocument();
$document->setTitle(JText::_( 'FC '.JString::ucfirst($this->name)).' - '.$document->getTitle());
}
}
and the view class
Code:
//include tha base class
class FlexicontentViewItem extends FCJView {
will not need the set title to be added, in any view extension wide.