Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Swathi 87 posts 281 karma points
    Aug 20, 2015 @ 09:48
    Swathi
    0

    Tags need Read More and Read Less option

    Hi Luke,

    Im using Umbraco 7.1.4 and Smart blog 2.0.9. I cannot upgrade this as its already in use.

    The Tags currently have no limit and the list grows.

    Can you please help me with Read more, Read less option maybe?

    Swati

  • Luke Alderton 191 posts 508 karma points
    Aug 20, 2015 @ 10:39
    Luke Alderton
    0

    You should be able to just add a .take(10) on the end of the tag array.

  • Swathi 87 posts 281 karma points
    Aug 20, 2015 @ 10:41
    Swathi
    0

    Wont it just not accept more tags? i want all tags to display, but on click of read more since it will be too long

  • Luke Alderton 191 posts 508 karma points
    Aug 20, 2015 @ 10:43
    Luke Alderton
    0

    Is this on the side bar of the blog or under a post?

    If you wrap the tags in an element and then use jquery to animate the height with an overflow hidden set in css, you will be able to create a slide in/out effect.

  • Swathi 87 posts 281 karma points
    Aug 20, 2015 @ 10:44
    Swathi
    0

    in the side bar.

    Can you give some more information on the same please?

  • Luke Alderton 191 posts 508 karma points
    Aug 20, 2015 @ 10:54
    Luke Alderton
    1

    Unfortunately I don't have the time at the moment to code a solution for you however the process is very simple.

    You might be able to use something like this: http://api.jquery.com/slidedown/

    Or create your own solution using: http://api.jquery.com/animate/ or http://api.jquery.com/show/

    You could even go for a simpler option by setting the height of the element and adding overflow: scroll; to it.

  • Swathi 87 posts 281 karma points
    Aug 20, 2015 @ 10:59
    Swathi
    0

    thanks i will check this,

    If you can make it display around 5 lines of tags and hide the rest(to be shown on click of read more) it will be great.

    Please try to provide this feature sometime.

    Thanks for the help

  • Swathi 87 posts 281 karma points
    Sep 02, 2015 @ 11:53
    Swathi
    100

    Hi Luke,

    I used some scripts to work this. Thanks :)

  • Luke Alderton 191 posts 508 karma points
    Sep 02, 2015 @ 12:09
    Luke Alderton
    0

    Great to hear, glad you sorted it.

Please Sign in or register to post replies

Write your reply to:

Draft