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?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
March 16, 2012 3:20am
Subscribe [2]#1 / Mar 16, 2012 3:20am
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
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
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
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
Dit not try it until now - have do make other things first. I will let you know.
#6 / Mar 21, 2012 6:42pm
Do keep us posted on how this works for you.
Sean