Workaround for using non-CSL styles with shortcode
-
I think I’ve found a work-around for using non-CSL styles with Zotpress, at least when using the shortcode.
According to something I found in the Zotero API documentation, a read request using the “style=” parameter can provide the style in one of two ways:
- the filename of the style in the CSL style repository or
- the URL of a remote CSL file
I created a new style file using the Zotero step-by-step instructions. Note particularly the sections beginning “Change the Style Title and ID”, just before section 3.
You will want to:- Use a dummy zotero.org/styles/filename in the ID attribute – this will avoid overwriting the existing style if you modified an existing style file to create yours
- Set the link attribute to the (internet-accessible) location where your CSL file can be found
- Use the recommended validator to check your style file
- Load your style into Zotero standalone using the Preferences -> Cite -> Stylestab
You should now be able to set the style attribute of the Zotero shortcode to the URL where your CSL file can be found, e.g.:
and have Zotpress use your style.
You can find an example here on my site (this is a test page, so it may change). I wanted to display a resource list built from items in my Zotero library, but I didn’t need or want the typical bibliography format.
- The topic ‘Workaround for using non-CSL styles with shortcode’ is closed to new replies.