Skip to content

Conversation

Sitetools
Copy link
Contributor

This is a new fragment to allow the embedding of Juicer.io widgets.

To test you can add this to your HomePage.ss template.
<div class="juicer-feed" data-feed-id="xxx" data-per="18" data-columns="6" data-interval="0"></div>
You'll need to add a data-feed-id.

Then add this to your HomePageController.php

public function index($request)
{
    Requirements::css('https://assets.juicer.io/embed.css');
    Requirements::javascript('https://assets.juicer.io/embed.js');
    return $this;
}

On the home page you should now see 6 tiles of the Juicer.io feed and no CSP errors.

@Sitetools Sitetools changed the title Adding new JuicerFragment.php file. Adding new JuicerFragment Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant