Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
I want to print "Read More " only after 100 characters.
I have a view with 4 articles .3 of them have only 20 characters and i dont want to print "Read More".I doesnt make sense the full article is in the teaser.
How can I fix that?
Comments
Comment #1
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commentedHi ltodoran,
This issue is fixed in Drupal's latest version but for those users who uses version 6.22, below is the work around.
You can use following module for adding Custom PHP Field in your view
- Views CustomField module
And by adding following code you can display View More Link based on Condition which you want.
More Details :- http://www.amaslo.com/2012/12/drupal-conditional-read-more-link-in.html
Let me know in case of any concern/query regarding this.
Thanks,
Snehal Brahmbhatt | AddWeb Solution
Email: contact@addwebsolution.com