Limit description length to 160 in 1.6.4

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Limit description length to 160 in 1.6.4

Post by Holger » Sat Jan 10, 2015 6:44 pm

cmb wrote:The presentation can obviously be improved -- any suggestions?
I think the presentation is simple and ok. But displaying only the number of characters seems to be useless for most users without a short description. Maybe we should extend the help-string?
BTW: it took me some time to find the feature because I've looked at Settings -> Language and not at the Meta - tab :roll: . Should that feature not added to Settings -> Language -> Meta -> Description too :? .

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Limit description length to 160 in 1.6.4

Post by cmb » Sun Jan 11, 2015 12:44 pm

Holger wrote:Maybe we should extend the help-string?
Yes, that's a good idea.
Holger wrote:BTW: it took me some time to find the feature because I've looked at Settings -> Language and not at the Meta - tab :roll: . Should that feature not added to Settings -> Language -> Meta -> Description too :? .
As I see now, svasti was speaking of the language setting only, so we have to care of this. It's not clear to me how to handle it: (a) adding a counter for all textareas, (b) hard coding an exception for the meta description only, or (c) introduce a new type in metaconfig? I'd prefer (b) or (c).
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: Limit description length to 160 in 1.6.4

Post by svasti » Wed Jan 14, 2015 8:05 pm

Just looked at the ongoing new version.
The intention of the counter was to be placed in Settings/Language/meta_description, as this is the most importent description for the site and read by the search engines.

I never thought of the pagedata description. Of course it would be useful there too.

The present implementation doesn't seem to work on my machine: "Description:[0]" is now visible and doens't change when I enter text. Not even after clicking submit. Only after going to another page and coming back to the description tab is the number of chars indicated. However usually one doesn't go back to this view, because one thinks the job of stating a specific description is finished.
cmb wrote:a) adding a counter for all textareas, (b) hard coding an exception for the meta description only, or (c) introduce a new type in metaconfig? I'd prefer (b) or (c).
Yes (b) or (c), I tend towards (b) as this seems to be rather special and limited in scope.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Limit description length to 160 in 1.6.4

Post by cmb » Wed Jan 14, 2015 10:01 pm

svasti wrote:The present implementation doesn't seem to work on my machine: "Description:[0]" is now visible and doens't change when I enter text. Not even after clicking submit. Only after going to another page and coming back to the description tab is the number of chars indicated.
Apparently the JavaScript doesn't work for you. Do you get any error message in the browser's console?
svasti wrote:
cmb wrote:a) adding a counter for all textareas, (b) hard coding an exception for the meta description only, or (c) introduce a new type in metaconfig? I'd prefer (b) or (c).
Yes (b) or (c), I tend towards (b) as this seems to be rather special and limited in scope.
I agree. If the need arises, we could extend that later.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: Limit description length to 160 in 1.6.4

Post by svasti » Wed Jan 14, 2015 10:53 pm

cmb wrote:Apparently the JavaScript doesn't work for you. Do you get any error message in the browser's console?
I don't know what it was. Somehow java script didn't work in this particular case, not in Firefox nor in Chrome. As I was hunting through the browser's console suddenly the computer monitor got a refresh and it started to work. :o
Anyhow its working now and I find it perfectly nice. Yes, the help file could give a little hint about the 150-160 max chars to be search engine friendly.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Limit description length to 160 in 1.6.4

Post by cmb » Wed Jan 14, 2015 11:16 pm

svasti wrote:I don't know what it was. Somehow java script didn't work in this particular case, not in Firefox nor in Chrome. As I was hunting through the browser's console suddenly the computer monitor got a refresh and it started to work. :o
Maybe admin.js was still loaded from the cache before.
svasti wrote:Anyhow its working now and I find it perfectly nice.
Good. :)
svasti wrote:Yes, the help file could give a little hint about the 150-160 max chars to be search engine friendly.
I will add this, and the change for the language settings.
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Limit description length to 160 in 1.6.4

Post by cmb » Sat Jan 17, 2015 2:46 pm

cmb wrote:
svasti wrote:Yes, the help file could give a little hint about the 150-160 max chars to be search engine friendly.
I will add this, and the change for the language settings.
Done (r1459 + r1460). However, currently there is no way to add help texts to the language settings, so I have documented the "maximum" length in the Wiki.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: Limit description length to 160 in 1.6.4

Post by svasti » Sat Jan 17, 2015 4:15 pm

Very nice

Post Reply