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.

Counting title and category character lenght?

March 16, 2012 3:20am

Subscribe [2]
  • #1 / Mar 16, 2012 3:20am

    Paradise

    84 posts

    Hi,

    is it possible to get the title and category character length?
    I want to show title and category if both together have a length of <=40.
    If they exceed 40 i just want to show the title.

    SQL?

  • #2 / Mar 16, 2012 6:58pm

    Sean C. Smith

    3818 posts

    Hi Paradise,

    There is no way to do that out of the box with ExpressionEngine. You could probably do this with a SQL query, but it would probably be simpler to use jQuery and then hide the category if the length is longer than 40 characters.

    You might also consider checking out CE String. I haven’t used this myself, but it might be able to do what you want.

    Sean

  • #3 / Mar 16, 2012 11:29pm

    Paradise

    84 posts

    The problem with javascript is that it does not work for search engines.
    And thats the reason why i need it.

    Ok, i check CE String.

  • #4 / Mar 19, 2012 1:13pm

    Shane Eckert

    7174 posts

    Hey Paradies,

    How are thing going?

    Did CE String work for you?

    Please let us know if there is anything else you need.

    Cheers,

  • #5 / Mar 20, 2012 4:21am

    Paradise

    84 posts

    Dit not try it until now - have do make other things first. I will let you know.

  • #6 / Mar 21, 2012 6:42pm

    Sean C. Smith

    3818 posts

    Do keep us posted on how this works for you.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases