ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Remove first 10 characters from entries in channel tags?

January 26, 2012 9:23am

Subscribe [2]
  • #1 / Jan 26, 2012 9:23am

    JamesBrighton

    146 posts

    How can I remove the first 10 characters from displaying for entries in channel tags?

    I have the following:

    {exp:channel:entries channel="twitter" limit="5" orderby="date" sort="desc" status="open" dynamic="no" }
     {tweet}
    {/exp:channel:entries}

    This displays tweets that ive imported to a channel. The problem is that twitter adds ‘MyUsername: ’ to beginning of every tweet and there’s no way I know of to stop this happening with the twitter API.

    So I have something like:

    MyCompnay: This is my first tweet!

    But what I need is:

    This is my first tweet!

    Thanks

  • #2 / Jan 26, 2012 9:31am

    Boyink!

    5011 posts

    Look for a plugin on Devot-ee called Hacksaw.

  • #3 / Jan 26, 2012 9:32am

    JamesBrighton

    146 posts

    Ive already got that module installed but dont think it can do what i need. It can limit then number of characters, but thats not what im after.

    http://devot-ee.com/add-ons/hacksaw

  • #4 / Jan 26, 2012 9:44am

    Boyink!

    5011 posts

    Then I’d search the related string-manipulated plugins on Devot-ee. There’s bound to be one that will do a simple truncate from left type manipulation.

  • #5 / Jan 26, 2012 10:10am

    JamesBrighton

    146 posts

    http://devot-ee.com/add-ons/trimmer  does it nicely. Thanks

  • #6 / Jan 27, 2012 2:54pm

    Dan Decker

    7338 posts

    Hi James,

    I’m glad to see you found a solution for your needs. Is there anything else we can assist you with?

    Cheers!

  • #7 / Jan 30, 2012 5:12am

    JamesBrighton

    146 posts

    No, im all good, Thanks.

  • #8 / Jan 31, 2012 7:12pm

    Sean C. Smith

    3818 posts

    I’m going to close out this thread, but feel free to post again when you have more questions.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases