Skip to content

Adding new JuicerFragment #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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