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 / Field translation

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.

Field translation

More
11 years 2 months ago #14013 by raph17
Field translation was created by raph17
I inserted a field into the page title on view.html page on details view.
I have already 2 fields that give the page title but this ones are the cars brands and not strings.I tried to insert a field string but this one is not translated.What i have to do to have this string translated in the page title?

Thank you
More
11 years 2 months ago #14026 by loic
Replied by loic on topic Field translation
Hello,

Could you copy-paste the line here ?

It will allow me to check it.

Best regards.
More
11 years 2 months ago #14031 by raph17
Replied by raph17 on topic Field translation
/components/com_adsmanager/views/details/view.html.php

$document->setTitle( $content->ad_manufacturers." ".$content->ad_modelauto." - ".JText::_('ADSMANAGER_PAGE_TITLE')." ".$content->ad_kindof." ".JText::_($category->name));

The bold is showing but not translated.
More
11 years 2 months ago #14046 by loic
Replied by loic on topic Field translation
Hello,

Could you try this:
In the view.html.php file, cut and paste the line 109:
$document->setTitle( $content->ad_manufacturers." ".$content->ad_modelauto." - ".JText::_('ADSMANAGER_PAGE_TITLE')." ".$content->ad_kindof." ".JText::_($category->name));

Just after the line 129:
$field = new JHTMLAdsmanagerField($conf,$field_values,'1',$plugins);

Then replace all the $content->ad_something by $field->showFieldValue($content,$fields), like this:
$document->setTitle( $field->showFieldValue($content,$fields['ad_manufacturers'])." ".$field->showFieldValue($content,$fields['ad_modelauto'])." - ".JText::_('ADSMANAGER_PAGE_TITLE')." ".$field->showFieldValue($content,$fields['ad_kindof'])." ".JText::_($category->name));

Best regards.
More
11 years 2 months ago - 11 years 2 months ago #14054 by raph17
Replied by raph17 on topic Field translation
After testing and testing i found the problem.Your solution is good and works .My problem was that i put in the field value same string as field name.
After i changed the value to numbers it worked.

Think you can change this post to SOLVED

Thank you.

One more thing before ....

How can i include the category name ( instead of category name i get "all ads")
And i tried to move the ad id after the name
$segments[] = $query["id"]."-".getAdsmanagerRouteContent($query["id"]);

I tried this in router.php
case "details":
					if (isset($query["catid"])) {
						$segments[] = getAdsmanagerRouteCategory($query["catid"]);
						unset($query["catid"]);
					}
					$segments[] = getAdsmanagerRouteContent($query["id"])."-".$query["id"];
					unset($query["id"]);					
					unset($query["task"]);
					unset($query["view"]);
					break;
But dont works.....on list view the link is ok but when i click on it the url change but the view is still list not detail.
Last edit: 11 years 2 months ago by raph17.
More
11 years 1 month ago #14068 by loic
Replied by loic on topic Field translation
Hello,

In which page do your wish to display the name of the category ?
In the details page, it must works without doing any modification.

Best regards.
Time to create page: 0.087 seconds
Powered by Kunena Forum