Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Page title in list view

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Page title in list view

More
11 years 3 months ago #12896 by catalinads
Page title in list view was created by catalinads
I want to have the page title in list view not only category name ... i also want the parent category .

Thomas told me : you should have the parent category name in the "$pathlist" varialble used to render the breadcrumbs of adsmanager

but ..cant manage to get it there...
for example in default grid there is : <?php echo htmlspecialchars($content->parent)." / ".htmlspecialchars($content->cat)?><br/>
More
11 years 3 months ago #12907 by loic
Replied by loic on topic Page title in list view
Hello,

The page title is what is displayed at the top of your windows ?
If that the case, it is set in the view.html.php of each view, for the list view, it is in 'components.com_adsmanager/views/list/view.html.php', line 258:
$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE'). JText::_($category->name) );

Try something like that:
$document->setTitle( JText::_('ADSMANAGER_PAGE_TITLE'). JText::_($category->parent).'-'. JText::_($category->name) );

Best regards.
More
11 years 3 months ago #12909 by catalinads
Replied by catalinads on topic Page title in list view
Loic.. i have tried this but is not working. Works only in details view.. because there i can use content.
In list unfortunately.. it doesnt work.
content not defined.
anyway.. i think that with content i cant.. because is not an ad .. is a category
More
11 years 3 months ago #12931 by tompap
Replied by tompap on topic Page title in list view
not sure to get the point about list problem ?

If you want the content if the list it's a list of contents
$this->contents ?

If you want to get category information. in $this->pathlist
you have the "breadcrumbs" to the current category
More
11 years 3 months ago - 11 years 3 months ago #12951 by catalinads
Replied by catalinads on topic Page title in list view
I have three main categories A .. B .. and C
Each one has a number of subcategories : for example A has 1...2...3..4

Page title for subcateg is : 1 ... some text
I would like to have: A - 1 ... some text

The parent categ name.

And fixed. Thanks:
$nb = count($this->pathlist);
for ($i = $nb - 1 ; $i >0;$i--)
$document->setTitle( $this->pathlist[$i]->text .....
Last edit: 11 years 3 months ago by catalinads.
More
11 years 3 months ago #12971 by tompap
Replied by tompap on topic Page title in list view
Great ;)
Time to create page: 0.082 seconds
Powered by Kunena Forum