Ah, I stepped into this thread a bit late. Hope this will help.
Quote from: Henrik at Feb 17, 2008, 08:51 AM
1) Include first <p> with any images, or
Obviously, if you’re comfortable using HTML, you can put styled text in the introtext field. I think also I have seen a note on the forums somewhere about a small tweak that can be made to turn the introtext field into a rich text field. Finally, to do as you want, you could easily use PHx and make a custom modifier. If you haven’t installed PHx yet you should definitely do so (Ditto includes its own internal version of PHx; not sure if it supports custom modifiers).
More here:
http://wiki.modxcms.com/index.php/PHx
Create a custom modifier as a snippet called something like phx:firstpar. Here’s an untested bit of code that should get you most of the way:
<?php
// Returns text up to and including a specific closing tag
// Pass tag without angle brackets. Tag defaults to 'p'
if (!$options) $options = 'p';
$options = '</' . $options . '>';
return substr($output, 0, strpos($output, $options) + strlen($options));
?>
Then your chunk could print the content up to the end of the first par with the tag
Quote from: Henrik at Feb 17, 2008, 08:51 AM
2) Make n "subject" image TVs, selectable by the webuser (article writer) from where he writes the article (i.e., checkbox or something)
There are several ways to do this. Check out the instructions on creating a DropDown List Menu or Listbox template variable about halfway down this page:
http://modxcms.com/creating-a-template-variable.html
Because you’re talking about having a set number of categories, you could just hard-code the image name in the TV input options:
Default==generic.gif||Cats==lolcats.jpg||Fads==facebook.jpg||Computers==happymac.gif
Hope this doesn’t look too daunting, but once you’ve done it a few times it’ll be second nature.