Populating Javascript values from CMS content

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Joff
Forum Members
Forum Members
Posts: 23
Joined: Wed Jan 25, 2006 10:54 pm

Populating Javascript values from CMS content

Post by Joff »

I'm using the news content and would like a Javascript ticker elsewhere on the site showing just the news headline, with a link to article.

There are several tickers on Dynamic Drive, but can anyone point me in the right direction for integrating it with CMS MS?
twitter: @joffff
viebig

Re: Populating Javascript values from CMS content

Post by viebig »

in my opnion, you should customize a mootools ticker, for example http://tekartist.org/labs/mootools/moostick/

the best thing about it is that you will just have to modify the js, not the code. Sure, you need to be familiar with mootools.

Try it!
alby

Re: Populating Javascript values from CMS content

Post by alby »

Joff wrote: I'm using the news content and would like a Javascript ticker elsewhere on the site showing just the news headline, with a link to article.

There are several tickers on Dynamic Drive, but can anyone point me in the right direction for integrating it with CMS MS?
I use one of those here

Alby
Joff
Forum Members
Forum Members
Posts: 23
Joined: Wed Jan 25, 2006 10:54 pm

Re: Populating Javascript values from CMS content

Post by Joff »

Thanks to both of you!

Alby, I should have said, it's a horizontal ticker I need, not vertical  :)  Thanks anyway, I think it's the same one I've used on another project too!
twitter: @joffff
Joff
Forum Members
Forum Members
Posts: 23
Joined: Wed Jan 25, 2006 10:54 pm

Re: Populating Javascript values from CMS content

Post by Joff »

For anyone interested, I went down the Mootools ticker route, adding the javascript call into the page with literal smarty tags.

Then, I created a second News template for the news module (called ticker or something), which returned all the news headlines as an unordered list.

Then the ticker code just works!  ;D
twitter: @joffff
viebig

Re: Populating Javascript values from CMS content

Post by viebig »

great Joff, share!
Joff
Forum Members
Forum Members
Posts: 23
Joined: Wed Jan 25, 2006 10:54 pm

Re: Populating Javascript values from CMS content

Post by Joff »

All in good time ;) 

I'm just making sure the client is happy for the site to be posted on here.  Failing that, I'll set up a demo on another domain.
twitter: @joffff
Post Reply

Return to “Developers Discussion”