How to snip ad title length?

ClassiBase classifieds script Forums Tips and tricks How to snip ad title length?

This topic contains 1 reply, has 2 voices, and was last updated by  ClassiBase 2 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1858 Reply

    Elite Tan
    Participant

    Support, to snip ad description is using:
    . View::escape(Ad::snippet($ad,90)) .

    but how to snip ad title, I tried below code not working, please advice?
    -> View::escape(Ad::snippet($ad->title,50))

    #1869 Reply

    ClassiBase
    Keymaster

    You can trim your title using following code

    View::escape(TextTransform::excerpt($ad->title, 50))

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to snip ad title length?
Your information: