dynamic content

karen.wilson's Avatar

karen.wilson

08 Jul, 2015 02:41 PM

I have a situation where dynamic content needs to be added to a page without republishing. At the bottom of our news releases, we'd like to have a section for "top stories". Those top stories will be pulled from the news homepage carousel. I'd like for the top story section at the bottom of each news release to be updated automatically online without having to republish the individual pages. Is that possible?

Karen Wilson
Web Designer
Southwestern Oklahoma State University
(580) 774-6147
[email blocked]<mailto:[email blocked]>

  1. 1 Posted by Wing Ming Chan on 08 Jul, 2015 05:53 PM

    Wing Ming Chan's Avatar

    Hi Karen,

    At Upstate, we use a lot of dynamic contents in Cascade. These contents come from two types of sources:

    1. Any contents not related to Cascade, including feeds, generated files, hand-crafted files, etc.
    2. Pages and files published from Cascade.

    To consume dynamic contents, we use PHP for server-side scripting. When a Cascade page is created and published, PHP code can be embedded, either with a PHP include pointing to a file or a script, or a function call. Once the page is published, there is no need to republish it.

    For contents generated from Cascade, we use workflows for automatic publishing or scheduled publishing. The published pages then can be included.

    One shortcoming with this approach is that the dynamic contents will not be available inside Cascade. To overcome this problem, we use a data definition block to tie two blocks together: a feed block (used to pull in the dynamic XML contents, possible transformed, to be displayed inside Cascade), and a text block (containing PHP code to be published in the page).

    Wing

  2. Ryan Griffith closed this discussion on 19 Aug, 2015 08:24 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac