CalRecycle News Room Listing Documentation (for use only on the CalRecycle Internet sites)
CalRecycle displays departmental press releases and links to relevant news entries from various media outlets on its public webpages. Examples of this content can be found on the CalRecycle website and the DORIIS home page. This content is managed using the CalRecycle NewsRoom application. This documentation is intended for CalRecycle IT staff to display News Entries and/or Press Releases from NewsRoom on the CalRecycle Internet sites. CalRecycle does not support this for external use, and reserves the right to change or drop this service at any time.
News Entries
Instructions
The following parameters can be added to the querystring of the base URL to customize the News Entries output.
Base URL: https://www2.calrecycle.ca.gov/NewsRoom/Listing/NewsEntry
- LongDate (e.g. January 1, 2017)
- ShortDate (e.g. 1/1/2017)
- LongDateAbbreviatedMonth (e.g. Jan 1, 2017)
Note: Any combination of parameters can be added to the querystring to achieve the desired results.
Example URLs
Code
Note: Do not copy the code below from Microsoft Edge
To ensure jQuery is accessible on your page, add the following script to the <head> section of your page:
<script src="https://code.jquery.com/jquery-3.1.1.js" integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" crossorigin="anonymous"></script>
Add the following <span> tag and javascript on your page where you want the News Entries displayed:
<span id="NewsEntryListing"></span> <script language="javascript" type="text/javascript"> $(function () { $.ajax({ url: "https://www2.calrecycle.ca.gov/NewsRoom/Listing/NewsEntry", dataType: "html", cache: false, method: "GET" }).done(function (html) { $("#NewsEntryListing").html(html); }); }) </script>
Data Preview
There are no CalRecycle news articles posted.
Press Releases
Instructions
The following parameters can be added to the querystring of the base URL to customize the Press Releases output.
Base URL: https://www2.calrecycle.ca.gov/NewsRoom/Listing/PressRelease
- BeverageContainerFraud
- LongDate (e.g. January 1, 2017)
- ShortDate (e.g. 1/1/2017)
- LongDateAbbreviatedMonth (e.g. Jan 1, 2017)
- Asc
- Desc
- Before
- After
Note: Any combination of parameters can be added to the querystring to achieve the desired results.
Example URLs
Code
Note: Do not copy the code below from Microsoft Edge
To ensure jQuery is accessible on your page, add the following script to the <head> section of your page:
<script src="https://code.jquery.com/jquery-3.1.1.js" integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" crossorigin="anonymous"></script>
Add the following <span> tag and javascript on your page where you want the Press Releases displayed:
<span id="PressReleaseListing"></span> <script language="javascript" type="text/javascript"> $(function () { $.ajax({ url: "https://www2.calrecycle.ca.gov/NewsRoom/Listing/PressRelease", dataType: "html", cache: false, method: "GET" }).done(function (html) { $("#PressReleaseListing").html(html); }); }) </script>
Data Preview
- CalRecycle seeks input on packaging, plastic pollution rules (June 26, 2023)
- California Completes Cleanup of Homes Destroyed in 2022 Wildfire Season (June 19, 2023)
- Industry asked to help shape packaging, plastic pollution law (May 25, 2023)
- 2 New Arrests in $10 Million, Interstate Recycling Fraud Case (March 8, 2023)
- Mattress retailer penalized $68,916 for recycling violations (August 16, 2022)