If you want to include the gig guide on your website please email me for help
With a few small lines of code you could include the welshgigs gig guide on your website or app. You can show the list with a number of options or limits:
- Full list
- Single venue (limit to show gigs for only your venue) - Great if you are a venue
- Limited date ranges (even show historic events)
Without any options, calling the gig guide is only three lines. Place these lines on your page where you would like the guide to appear.
|venue||The unique ID for the venue - the gig guide will only show gigs for that venue||Interger|
|time||Show the door times (if avaliable)||true / false||true|
|price||Show the ticket prices (if avaliable)||true / false||true|
|dateFormat||Format the date different to eg. Sunday 18th January||See dates table below||l jS F|
The dafe format should be within single quotes as the full example below shows
|l||A full textual representation of the day of the week||Sunday through Saturday|
|D||A textual representation of a day, three letters||Mon through Sun|
|j||Day of the month without leading zeros||1 to 31|
|S||English ordinal suffix for the day of the month||st, nd, rd or th. Works well with j|
|F||A full textual representation of a month||January through December|
|n||Numeric representation of a month, without leading zeros||1 through 12|
|Y||A full numeric representation of a year, 4 digits||1999 or 2003|
|y||A two digit representation of a year||99 or 03|
Making it fit your design
The gig guide is within a table structure. The main container has an id of "wg_gigguide". Using CSS you can style the guide to match your own website.
Including the code on your page will format the table as shown under the full example.
You can try the code yourself and see what it does before putting it on your website
The WelshGigs JSON API is currently offline. We are working on it and will post here when it is back online.