-
- 13 Posts
I've created a couple TV's to hold each page's Title and meta Description, for SEO purposes.
I see where I can define a max length on the text type TV in it's properties. Is there any way to show, as you type, the character length of a TV in the manager, maybe just underneath the input field? I've been spoiled by youst's SEO plugin on the Wordpress side, and am building a site for a client in MODX now. Is there an SEO plugin that makes it easy to stick to the 70 and 155 character best practices for title and description?
-
- 5,888 Posts
you can try this. Not sure, if it is still working.
http://modx.com/extras/package/charcountertv
Actually, you should take a look at filters.
<meta name="description" content="[[*description:empty=`[[*introtext]]`:ellipsis=`150`:replace=`SWAPTHIS==`]]">
This locks down the text to 150 characters in the template and does not require a TV. Ellipsis truncates the string and replace gets ride of the ellipsis. It also utilizes the introtext field as a back up if people forget to add a description.
Additionally, on some sites I have utilized the description for the page description and introtext for the keywords in the past but search engines no longer really use them.
Forum broke my code so replace SWAPTHIS with ampersand#8230;