expressionengine-add-ons / HTML-Attribute-Content

ExpressionEngine Add-on
MIT License
5 stars 4 forks source link

Almost the same plugin three times #1

Open robsonsobral opened 10 years ago

robsonsobral commented 10 years ago

Hi!

Why not to merge this plugin, Word Limit and Char-Limit into one?

The three do almost the same thing and we all know that less addons on EECMS is better.

Thanks!

derekjones commented 10 years ago

I agree that the word and character limiter could be merged into one, but this plugin only has limiting as an option, not its main function. Switching the intent around to make it an option of a required limiter would be somewhat... limiting, if you'll forgive the pun.

robsonsobral commented 10 years ago

You're right. But I still think EECMS needs some way more "official" and "in-deth" to do this kind of thing.

If there's something missing on EECMS is "little tricks". I developed a site using a different CMS some weeks ago. I wasn't expecting to use its "little tricks" so much as I did.

EECMS has some very interesting ones, like the query string at the end of {stylesheet=, but we can have more utilities.

So, maybe we can take a step forward:

{exp:excerpter
  words=""
  characters =""
  strip_tags="yes|no"
  end_char="…"
  until="<!--more-->"
  full_words="yes|no"
  strip_markdown="yes|no"
  allow_tags="p"
  remove_tags="figure|table"
}

The strip_markdown is something I never saw, but it could be much useful.

The until, allow_tags and remove_tags are special for content imported from that famous weblog platform (I had to code something like this some months ago).


Now, you're hating me! ;-)