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 / Public Forum / Main Forum / [RESOLVED] How to clip text in the ads title in ?

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.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] How to clip text in the ads title in ?

  • yaltabest@yandex.ru
  • Topic Author
  • Offline
  • Gold
  • Gold
More
11 years 3 months ago - 11 years 3 months ago #3027 by yaltabest@yandex.ru
[RESOLVED] How to clip text in the ads title in ? was created by yaltabest@yandex.ru
How to truncate text in the ads title in ads module?

And more important, why there is no this option in admin settings???
Last edit: 11 years 3 months ago by tompap.
The following user(s) said Thank You: adarr
More
11 years 3 months ago #3044 by tompap
And more important, why there is no this option in admin settings???

==> Because no one request or suggest this feature first :) .
Did you check other modules for com_content (like a slidow, etc...) This option is not present a lot of times.
It's not a "standard option"

In any case you can do a template override of the module
and replace code like : $content->ad_headline, by JString::substr($content->ad_headline,0,50);
The following user(s) said Thank You: yaltabest@yandex.ru, adarr
  • yaltabest@yandex.ru
  • Topic Author
  • Offline
  • Gold
  • Gold
More
11 years 3 months ago - 11 years 3 months ago #3072 by yaltabest@yandex.ru
Replied by yaltabest@yandex.ru on topic How to clip text in the ads title in ads module?
How I can add symbols like ... in ads title if it was truncated?

P.S. Fixed:

if (JString::strlen($row->ad_headline) > 35) {	
 
		$adstitle = JString::substr($row->ad_headline, 0, 35 )."...";
 
		}
		else
		{$adstitle = $row->ad_headline;
 
		}
 
			$linkTarget = TRoute::_("index.php?option=com_adsmanager&view=details&id=".$row->id."&catid=".$row->catid);
			echo "<a href='$linkTarget'>".$adstitle."</a>";
Last edit: 11 years 3 months ago by yaltabest@yandex.ru.
The following user(s) said Thank You: adarr
More
11 years 3 months ago #3084 by tompap
Yes this is a correct solution
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.142 seconds
Powered by Kunena Forum