Skip to main content
For reference only. Please use a different board for new questions

Customize the title

More
11 years 11 months ago #814 by radekolbas
Replied by radekolbas on topic Re: Customize the title
in default_full.php

Please Log in to join the conversation.

More
11 years 6 months ago #1394 by sidewind
Replied by sidewind on topic Re: Customize the title
Dear Bram,

I know that the sitename in the title was removed from the component, but with this function it is still possible to show it like i want on every page exept the home page from the menu.

Is it possible to show it on the frontpage too?
Maybe with a simple solution?

Thanx,

Sander.

Joomla versie: 2.5.28 & 3.4.3
Datafeed component versie: 2.5.2038 & 3.1.2072

www.kledingstunts.nl
www.bestelsuperdeals.nl

test shop: test.superdeals-online.nl

Please Log in to join the conversation.

More
11 years 6 months ago #1398 by redactie
Replied by redactie on topic Re: Customize the title
you will need to customize the default.php ( use joomla template override)
Code:
if ( $title=$this->where['title'] ) { $title= df_title($document->getTitle(), $this->where['title']); $document->setTitle( $title ); $document->setDescription( $title ); $document->setMetaData ("keywords",str_replace("-",",",$title)); } else { #title is empty on the first page $app = JFactory::getApplication(); $site = $app->getCfg('sitename'); $document->setTitle( $document->getTitle() . ' - ' . $site ); }
The following user(s) said Thank You: sidewind

Please Log in to join the conversation.

More
11 years 6 months ago #1399 by sidewind
Replied by sidewind on topic Re: Customize the title
Bram,

Thank you very much. I found already some joomla code to get it from the menu.
From the joomla file view.html.php for com_wrapper.

Your code is much shorter, better and easier ;-)

Greetz,

Sander.

Joomla versie: 2.5.28 & 3.4.3
Datafeed component versie: 2.5.2038 & 3.1.2072

www.kledingstunts.nl
www.bestelsuperdeals.nl

test shop: test.superdeals-online.nl

Please Log in to join the conversation.

Time to create page: 0.340 seconds