[Pro] Newscycle cycling inline items rather than containers

I’m setting up a nifty news cycler with the cool NewsCycle action, but am having trouble getting it to cycle the content that I want.

I’m building a slideshow for a news website and I’d like to cycle composed html items, each containing an image at the top and three text divs below.

At the moment I’m getting a cycle of

  1. Full html element, including its sub-content
  2. Image from full html element
  3. Text div 1 from html element
  4. Text div 2 from html element
  5. Text div 3 from html element
  6. Repeat

I’ve tried creating the composed html divs in two ways: 1) by drawing an enclosing html item and drawing child items inside; and 2) drawing an enclosing html item and inserting html items via the Insert menu. Both produce the undesirable cycling.

How can I make my slideshow cycle only the full html elements? Thanks!

Derek


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Nov 2, 2012, at 12:02 PM, derekzinger wrote:

I’m setting up a nifty news cycler with the cool NewsCycle action, but am having trouble getting it to cycle the content that I want.

I’m building a slideshow for a news website and I’d like to cycle composed html items, each containing an image at the top and three text divs below.

At the moment I’m getting a cycle of

  1. Full html element, including its sub-content
  2. Image from full html element
  3. Text div 1 from html element
  4. Text div 2 from html element
  5. Text div 3 from html element
  6. Repeat

I’ve tried creating the composed html divs in two ways: 1) by drawing an enclosing html item and drawing child items inside; and 2) drawing an enclosing html item and inserting html items via the Insert menu. Both produce the undesirable cycling.

How can I make my slideshow cycle only the full html elements? Thanks!

The way that the Action is currently written, you can’t; not unless you use different elements in place of those inner "div"s.

You might try adding my HTML5 Element Action to the mix. Apply it to each of your nested DIVs, and change each one to an or or something like that. Then the outermost DIV will be the tag that gets cycled, and the nested s will come along for the ride. You might also just change the outer DIV to an as that would be semantically correct. Applying the HTML5 Element to any element on the page will change the page DOCTYPE to HTML5, too, and if a dumb browser loads it, the HTML5 Shiv will be loaded to force those browsers to treat the new shiny correctly.

Actually, while looking at this, it occurred to me that a one-character change would make this possible without requiring another Action in the page. Watch for an updated version of NewsCycle on ActionsForge.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Walter. This is going to be slotted into a PhPCake site, and I’m not sure if adding the html 5 action wouldn’t throw a spanner in the works. I’ll double check on this. Cheers!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I doubt that it would affect anything at the HTML level. Cake is a very nice, very abstract PHP framework, and it is totally agnostic about the HTML it generates. That’s all down to whatever you write in the View files, which like any other PHP code, can contain mixtures of HTML and PHP inline and inter-mingled. PHP doesn’t care one bit about the HTML per se – it’s all just text that’s being written to the Apache server’s output buffer.

Walter

On Nov 2, 2012, at 12:22 PM, derekzinger wrote:

Thanks, Walter. This is going to be slotted into a PhPCake site, and I’m not sure if adding the html 5 action wouldn’t throw a spanner in the works. I’ll double check on this. Cheers!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Crikey! Did you just update NewsCycle? I went to actionsforge to get html 5 and saw the new NewsCycle by chance.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, I’ll be, you did. Thanks, so much, Walter. It’s looking good!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options