Example - RSS Feed

RSS for third party content

Concrete5 already has an RSS block, but its a bit tired and inflexible. If you want to do more with an RSS feed you either need to get coding for a block template and possibly a controller override, or you can explore the possibilities with Universal Content Puller.

As an RSS feed will be external to the site, the Content Source  to use will again be URL

Basic feed

To investigate the possibilities, we need an RSS feed. NASA is a good source. From those available, the example here uses Breaking News at https://www.nasa.gov/rss/dyn/breaking_news.rss.

The Multi Selector Content Transform can pick out items from XML data.

  • Source content type - XML / XHTML
  • Container css selector - channel
  • Level 1 - item
  • Level 2 - [blank] (for all children) + Return text with attributes, url src type title alt

For display, The Multi Level List Content Display has the flexibility to display the pulled RSS in many ways.

  • Level 1 - Paragraphs + First child value
  • Level 2 - Definition List, horizontal + Capitalised keys + Filter 1 Title Source Enclosure Type Guid Dc:identifier, Source Url, Dc:creator, content:encoded

The filters are to remove elements pulled from the XML that would clutter our display. Definition List, horizontal is a good list type as it shows all the headings (keys), so can help identify what to add to the filter.

Make frequent use of the Preview button to review the incoming data to the transform and display.

As the RSS feed can be long, its an ideal place to explore the pagination capabilities of UCP. Here the pagination is set very low so we don't fill too much of this page.

  • Outer list items to display - 2
  • Paginate - Below
  • Include block identity in pagination - No

By leaving out the block identity in the pagination, all variations of the RSS feed shown on this page will paginate together!

In the Advanced tab, the main settings we need are the Advanced Autolinker and to Render Image URLs as Images. An important point here is that the settings don't change the file size of images, just the maximum size they are displayed.

NASA Astronaut Don Pettit to Conduct Science During Fourth Mission

Pubdate
Wed, 27 Mar 2024 19:36:41 +0000
Category
International Space Station (ISS)
Category 2
Humans in Space
Category 3
ISS Research
Category 4
Missions
Description
During his fourth mission to the International Space Station, NASA astronaut Don Pettit will serve as a flight engineer and member of the Expedition 71/72 crew. After blasting off to space, Pettit will conduct scientific investigations and technology demonstrations to help prepare crew for future space missions. Pettit will launch on the Roscosmos Soyuz MS-26 […]

The Marshall Star for March 27, 2024

Pubdate
Wed, 27 Mar 2024 19:07:58 +0000
Category
Marshall Space Flight Center
Description
Marshall Hosts 37th Small Business Alliance Meeting By Celine Smith NASA’s Marshall Space Flight Center hosted its 37th Small Business Alliance meeting March 21 at the U.S. Space & Rocket Center’s Davidson Center for Space Exploration. The event brought together hundreds of attendees from 39 states and 21 countries to network and learn about opportunities […]

View settings

Getting the items in order

By default, the various elements are shown in the sequence they are declared in the XML of the RSS feed. That can be changed by entering a Shuffle sequence for the second list level.

The version below has a Shuffle set to Pubdate, Description, Enclosure Url, Link.

NASA Astronaut Don Pettit to Conduct Science During Fourth Mission

Pubdate
Wed, 27 Mar 2024 19:36:41 +0000
Description
During his fourth mission to the International Space Station, NASA astronaut Don Pettit will serve as a flight engineer and member of the Expedition 71/72 crew. After blasting off to space, Pettit will conduct scientific investigations and technology demonstrations to help prepare crew for future space missions. Pettit will launch on the Roscosmos Soyuz MS-26 […]
Category
International Space Station (ISS)
Category 2
Humans in Space
Category 3
ISS Research
Category 4
Missions

The Marshall Star for March 27, 2024

Pubdate
Wed, 27 Mar 2024 19:07:58 +0000
Description
Marshall Hosts 37th Small Business Alliance Meeting By Celine Smith NASA’s Marshall Space Flight Center hosted its 37th Small Business Alliance meeting March 21 at the U.S. Space & Rocket Center’s Davidson Center for Space Exploration. The event brought together hundreds of attendees from 39 states and 21 countries to network and learn about opportunities […]
Category
Marshall Space Flight Center

View settings

Removing the titles

For a variation, the Level 2 list type can be set to Paragraphs + none.

As a side effect, the Level 2 items no longer have headings, so they can only be filtered and shuffled by number. Hence an intermediary step is to set Paragraphs + Number 1,2,3 to see the numbers of the items. Then make a note of the numbers to filter, below these are 1 2 3 5 8 9 10, then change to Paragraphs + none for the finished list.

Having filtered, the numbers for shuffling are reset to a contguous 1,2,3... Here we need to actually count from the start of our filtered numbers. The publication date is the 4th item and the rest are already in the sequence we want, so simply setting Shuffle to 4 will achieve the desired effect.

NASA Astronaut Don Pettit to Conduct Science During Fourth Mission

NASA astronaut Don Pettit poses for a crew portrait at the Gagarin Cosmonaut Training Center.
NASA

During his fourth mission to the International Space Station, NASA astronaut Don Pettit will serve as a flight engineer and member of the Expedition 71/72 crew. After blasting off to space, Pettit will conduct scientific investigations and technology demonstrations to help prepare crew for future space missions.

Pettit will launch on the Roscosmos Soyuz MS-26 spacecraft in September 2024, accompanied by Roscosmos cosmonauts Alexey Ovchinin and Ivan Vagner. The trio will spend approximately six months aboard the orbital laboratory.

NASA selected Pettit as an astronaut in 1996. A veteran of three spaceflights, he made integral advancements in technology and demonstrations for human exploration. He served as a science officer for Expedition 6 in 2003, operated the robotic arm for STS-126 space shuttle Endeavour in 2008, and served as a flight engineer for Expedition 30/31 in 2012. Pettit has logged 370 days in space and conducted two spacewalks totaling 13 hours and 17 minutes.

The Expedition 6 crew launched on STS-113 space shuttle Endeavour expecting to return on STS-114 space shuttle Discovery after a two and a half month mission. Following the space shuttle Columbia accident that grounded the shuttle fleet, the crew returned on the Soyuz TMA-1 spacecraft after five and a half months, landing in Kazakhstan. On his next 16-day mission, STS-126, Pettit helped expand the living quarters of the space station and installed a regenerative life support system to reclaim potable water from urine. During Expedition 30/31, Pettit also captured the first commercial cargo spacecraft, the SpaceX Dragon, using the robotic arm.

A native from Silverton, Oregon, Pettit holds a bachelor’s degree in chemical engineering from Oregon State University, Corvallis, and a doctorate in chemical engineering from the University of Arizona, Tucson. Prior to his career with NASA, Pettit worked as a staff scientist at the Los Alamos National Laboratory in New Mexico.

For more than two decades, humans have lived and worked continuously aboard the International Space Station, advancing scientific knowledge and making research breakthroughs that are not possible on Earth. The station is a critical testbed for NASA to understand and overcome the challenges of long-duration spaceflight and to expand commercial opportunities in low Earth orbit. As commercial companies focus on providing human space transportation services and destinations as part of a robust low Earth orbit economy, NASA is able to focus more of its resources on deep space missions to the Moon and Mars.

Get breaking news, images and features from the space station on the station blog, Instagram, Facebook, and X.

Learn more about International Space Station research and operations at:

https://www.nasa.gov/station

-end-

Julian Coltre / Claire O’Shea
Headquarters, Washington
202-358-1100
julian.n.coltre@nasa.gov / claire.a.o’shea@nasa.gov

Courtney Beasley
Johnson Space Center, Houston
281-483-5111
courtney.m.beasley@nasa.gov

Share

Details

Last Updated
Mar 27, 2024

Wed, 27 Mar 2024 19:36:41 +0000

Humans in Space

ISS Research

The Marshall Star for March 27, 2024

Wed, 27 Mar 2024 19:07:58 +0000

www.nasa.gov/

Marshall Hosts 37th Small Business Alliance Meeting By Celine Smith NASA’s Marshall Space Flight Center hosted its 37th Small Business Alliance meeting March 21 at the U.S. Space & Rocket Center’s Davidson Center for Space Exploration. The event brought together hundreds of attendees from 39 states and 21 countries to network and learn about opportunities […]

View settings

Adding Style

We now have a few options for a readable RSS feed where we have complete control over what data is presented and the sequence it is shown.

Now we want to add a bit of style. Each item in the UCP list is assigned classes based on heading and position in the list, so styles could be added to the theme, or (slightly naughty) declared in an HTML block, or placed in a Header Extra Content attribute as we have done here. 

The styles can be localised to a specific UCP block by adding a unique wrapper class in the Advanced tab of the edit dialog. In this case example-styled.

[code]<style>
.ucp-body.example-styled .ucp-item-2-1{
    font-size:80%;
    font-style:italic;
}
.ucp-body.example-styled h3{
    clear:both;
}
</style>[/code]

NASA Astronaut Don Pettit to Conduct Science During Fourth Mission

Wed, 27 Mar 2024 19:36:41 +0000

Humans in Space

ISS Research

NASA astronaut Don Pettit poses for a crew portrait at the Gagarin Cosmonaut Training Center.
NASA

During his fourth mission to the International Space Station, NASA astronaut Don Pettit will serve as a flight engineer and member of the Expedition 71/72 crew. After blasting off to space, Pettit will conduct scientific investigations and technology demonstrations to help prepare crew for future space missions.

Pettit will launch on the Roscosmos Soyuz MS-26 spacecraft in September 2024, accompanied by Roscosmos cosmonauts Alexey Ovchinin and Ivan Vagner. The trio will spend approximately six months aboard the orbital laboratory.

NASA selected Pettit as an astronaut in 1996. A veteran of three spaceflights, he made integral advancements in technology and demonstrations for human exploration. He served as a science officer for Expedition 6 in 2003, operated the robotic arm for STS-126 space shuttle Endeavour in 2008, and served as a flight engineer for Expedition 30/31 in 2012. Pettit has logged 370 days in space and conducted two spacewalks totaling 13 hours and 17 minutes.

The Expedition 6 crew launched on STS-113 space shuttle Endeavour expecting to return on STS-114 space shuttle Discovery after a two and a half month mission. Following the space shuttle Columbia accident that grounded the shuttle fleet, the crew returned on the Soyuz TMA-1 spacecraft after five and a half months, landing in Kazakhstan. On his next 16-day mission, STS-126, Pettit helped expand the living quarters of the space station and installed a regenerative life support system to reclaim potable water from urine. During Expedition 30/31, Pettit also captured the first commercial cargo spacecraft, the SpaceX Dragon, using the robotic arm.

A native from Silverton, Oregon, Pettit holds a bachelor’s degree in chemical engineering from Oregon State University, Corvallis, and a doctorate in chemical engineering from the University of Arizona, Tucson. Prior to his career with NASA, Pettit worked as a staff scientist at the Los Alamos National Laboratory in New Mexico.

For more than two decades, humans have lived and worked continuously aboard the International Space Station, advancing scientific knowledge and making research breakthroughs that are not possible on Earth. The station is a critical testbed for NASA to understand and overcome the challenges of long-duration spaceflight and to expand commercial opportunities in low Earth orbit. As commercial companies focus on providing human space transportation services and destinations as part of a robust low Earth orbit economy, NASA is able to focus more of its resources on deep space missions to the Moon and Mars.

Get breaking news, images and features from the space station on the station blog, Instagram, Facebook, and X.

Learn more about International Space Station research and operations at:

https://www.nasa.gov/station

-end-

Julian Coltre / Claire O’Shea
Headquarters, Washington
202-358-1100
julian.n.coltre@nasa.gov / claire.a.o’shea@nasa.gov

Courtney Beasley
Johnson Space Center, Houston
281-483-5111
courtney.m.beasley@nasa.gov

Share

Details

Last Updated
Mar 27, 2024

The Marshall Star for March 27, 2024

Wed, 27 Mar 2024 19:07:58 +0000

www.nasa.gov/

Marshall Hosts 37th Small Business Alliance Meeting By Celine Smith NASA’s Marshall Space Flight Center hosted its 37th Small Business Alliance meeting March 21 at the U.S. Space & Rocket Center’s Davidson Center for Space Exploration. The event brought together hundreds of attendees from 39 states and 21 countries to network and learn about opportunities […]

View settings

Expandable lists

With v9.3.1, Universal Content Puller introduced an expandable list option to the Multi Level List content display.

Our next version of the NASA RSS feed is similar to the above, but with expanders enabled on the item headings. A couple more changes were required, to configure the use <div> elements for the level 1 item bodies rather than <p> elements. 

NASA Astronaut Don Pettit to Conduct Science During Fourth Mission

Wed, 27 Mar 2024 19:36:41 +0000

Humans in Space

ISS Research

NASA astronaut Don Pettit poses for a crew portrait at the Gagarin Cosmonaut Training Center.
NASA

During his fourth mission to the International Space Station, NASA astronaut Don Pettit will serve as a flight engineer and member of the Expedition 71/72 crew. After blasting off to space, Pettit will conduct scientific investigations and technology demonstrations to help prepare crew for future space missions.

Pettit will launch on the Roscosmos Soyuz MS-26 spacecraft in September 2024, accompanied by Roscosmos cosmonauts Alexey Ovchinin and Ivan Vagner. The trio will spend approximately six months aboard the orbital laboratory.

NASA selected Pettit as an astronaut in 1996. A veteran of three spaceflights, he made integral advancements in technology and demonstrations for human exploration. He served as a science officer for Expedition 6 in 2003, operated the robotic arm for STS-126 space shuttle Endeavour in 2008, and served as a flight engineer for Expedition 30/31 in 2012. Pettit has logged 370 days in space and conducted two spacewalks totaling 13 hours and 17 minutes.

The Expedition 6 crew launched on STS-113 space shuttle Endeavour expecting to return on STS-114 space shuttle Discovery after a two and a half month mission. Following the space shuttle Columbia accident that grounded the shuttle fleet, the crew returned on the Soyuz TMA-1 spacecraft after five and a half months, landing in Kazakhstan. On his next 16-day mission, STS-126, Pettit helped expand the living quarters of the space station and installed a regenerative life support system to reclaim potable water from urine. During Expedition 30/31, Pettit also captured the first commercial cargo spacecraft, the SpaceX Dragon, using the robotic arm.

A native from Silverton, Oregon, Pettit holds a bachelor’s degree in chemical engineering from Oregon State University, Corvallis, and a doctorate in chemical engineering from the University of Arizona, Tucson. Prior to his career with NASA, Pettit worked as a staff scientist at the Los Alamos National Laboratory in New Mexico.

For more than two decades, humans have lived and worked continuously aboard the International Space Station, advancing scientific knowledge and making research breakthroughs that are not possible on Earth. The station is a critical testbed for NASA to understand and overcome the challenges of long-duration spaceflight and to expand commercial opportunities in low Earth orbit. As commercial companies focus on providing human space transportation services and destinations as part of a robust low Earth orbit economy, NASA is able to focus more of its resources on deep space missions to the Moon and Mars.

Get breaking news, images and features from the space station on the station blog, Instagram, Facebook, and X.

Learn more about International Space Station research and operations at:

https://www.nasa.gov/station

-end-

Julian Coltre / Claire O’Shea
Headquarters, Washington
202-358-1100
julian.n.coltre@nasa.gov / claire.a.o’shea@nasa.gov

Courtney Beasley
Johnson Space Center, Houston
281-483-5111
courtney.m.beasley@nasa.gov

Share

Details

Last Updated
Mar 27, 2024

The Marshall Star for March 27, 2024

Wed, 27 Mar 2024 19:07:58 +0000

www.nasa.gov/

Marshall Hosts 37th Small Business Alliance Meeting By Celine Smith NASA’s Marshall Space Flight Center hosted its 37th Small Business Alliance meeting March 21 at the U.S. Space & Rocket Center’s Davidson Center for Space Exploration. The event brought together hundreds of attendees from 39 states and 21 countries to network and learn about opportunities […]

View settings

Additional Pages

About this Sidebar

Creating a sidebar for a group of pages without messing about with stacks is an easy use-case for Universal Content Puller.

This sidebar is edited once, within the main addon page for Universal Content Puller.

It is then pulled into all UCP sub-pages using a UCP block.

The Content Source is Parent Page, set to pull the Sidebar area from 2 pages from the top. The Content Transform is Selector, set to remove container and row classes that, when unnecessarily nested, could mess up the Bootstrap grid. The Content Display is Plain, which just outputs the transformed text.

In the advanced settings, sanitization is disabled as we trust the source page and don't want to strip out any formatting or functionality from the pulled sidebar.