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 / [SOLVED] change title from results page

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.

[SOLVED] change title from results page

More
11 years 2 months ago - 11 years 2 months ago #3695 by global
hello,
I would like to change the title (h1 contentheading) of the results page.
I need to insert, querying the db, the title ... from "result" to results matching items -> category name. How can I do?
thanks for the help

sorry for my english :(

good night
Last edit: 11 years 2 months ago by loic.
The following user(s) said Thank You: adarr
More
11 years 2 months ago - 11 years 2 months ago #3704 by tompap
Replied by tompap on topic change title from results page
You could override the view "result" views/result/tmpl/default.php

joomprod.com/documentation/doc-view-override.html
Last edit: 11 years 2 months ago by tompap.
The following user(s) said Thank You: adarr
More
11 years 2 months ago - 11 years 2 months ago #3760 by global
Replied by global on topic change title from results page
You could override the view "result" views/result/tmpl/default.php
 
joomprod.com/documentation/doc-view-override.html

thaks for your reply.

I would like to change the title of the page results based on user choices in mod_adsmanager_search.
For ad_region and ad_city I used the method echo $ _POST ['ad_city'] and echo $ _POST ['ad_region'] and it work .

For the selected category in the mod_adsmanager_search, I can't display the value "name" , but only its id value (catid) .

In the page of the results I would like to create a title like this:

example ... 'Results for category [category name] from ad_region in ad_city'

thanks in advance for your help

good day
Last edit: 11 years 2 months ago by global.
The following user(s) said Thank You: adarr
More
11 years 2 months ago #3775 by loic
Replied by loic on topic change title from results page
Hello,

If you have the id of the category, you can recover its name by adding this code to your override file :
$catmodel = new AdsmanagerModelCategory();
$category = $catmodel->getCategory($_POST['catid']);

Then, you just have to add this line to display the name of the cateogry :
echo $category->name;

Best Regards
The following user(s) said Thank You: adarr
More
11 years 2 months ago #3781 by global
Replied by global on topic [SOLVED] change title from results page
Thanks.... work fine!!


Best Regards
The following user(s) said Thank You: adarr
More
11 years 2 months ago #3934 by tompap
Replied by tompap on topic [SOLVED] change title from results page
Great!
The following user(s) said Thank You: adarr
Time to create page: 0.790 seconds
Powered by Kunena Forum