Okay, here’s a little problem that a day’s worth of work hasn’t cracked.
I have a template variable called "breakingnews", defined as text and associated with the Marquee widget. It stops on mouse hover and scrolls horizontally. It is assigned to a template and in the document associated with this template the TV’s value is
@EVAL return $modx->runSnippet('Ditto', array('parents'=>14, 'tpl'=>'breakingnews_chunk'));
At the moment, all the chunk does is return [+introtext+].
And that’s where the problem arises.
First, introtext is essentially a textarea variable. Can anyone tell me how I can squish it into one line which will scroll across the (variable width) content area of the page? I.e. if the line is longer than the content width, I don’t want it to wrap around. I’ve tried changing the call to run my own snippet which strips out ’\r\n’. But unless I did something wrong, that doesn’t work. Examing the generated frame source suggests that there aren’t any newlines. But it is in a tag that identifies it as a textarea with rows. So I need to figure out how to undo that, in a sense.
The second problem is that I’d like someone to be redirected to the page from which the introtext is retrieved when they click on the marquee. The default Ditto template provides a hotlink, but only associates it with the title, I think. Can the marquee itself be associated with a page?
Thanks in advance for any pointers, thoughts, etc.
MattC