Backend title tag

More
12 years 8 months ago - 12 years 7 months ago #24244 by gruz
Backend title tag was created by gruz
When working with FC at the stage of creating the structure I open several tabs to work parallelly.

[img


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:
[img


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.

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)
Last edit: 12 years 7 months ago by gruz.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24252 by micker
Replied by micker on topic Backend title tag
:o
thanks for your return !!!

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25083 by gruz
Replied by gruz on topic Backend title tag
Do something!

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25098 by ggppdk
Replied by ggppdk on topic Backend title tag
Give me time and i will move a mountain :D :D :D

Yes, yes i agree with you, and have noticed the titles

always usability should be a priority, just now fixing bugs added of new features, and to add more is always risky even if the changes are minor, plus the time needed to write and test something.

Since this may take a reasonable small time, please open a "defect" issue in bug tracker, and i will leave it marked as "defect" and not "enhancement" in order to implement it before final, (we have too many "small" stuff that when you try to implement you see that proper implementation is quite bigger than you initially imagined):

code.google.com/p/flexicontent/issues/list


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25106 by gruz
Replied by gruz on topic Backend title tag
Submitted

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.474 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline