Provide a way to show Content column in Admin
-
I realize in some cases the snippet content could be very long, but I think a column, on the PS admin page, which shows the snippet content is very useful.
Its rather easy and processing it as shown below, in
function column_default
, keeps it under control$content = nl2br2 (htmlspecialchars ($item[ $column_name]));
$content = mb_strimwidth($content, 0, 200, " ...");My nl2br2 is just
str_replace (array ("\r\n", "\r", "\n"), "[BR]", $string);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.