Use file parameter to render shogiboard from kifu file

This example uses kifuID parameter to point to the document Id of the modX resource where a kakinoki style kif is stored.
%[!renderShogiBoard? &kifuID=`317` &smooth=`1` &startAt=`3`%]

This snippet call produce the shogiboard below. Note four buttons that are automatically added for a record navigation. Kifu record is stored as a modx resource and it's ID is 317. Since &startAt parameter is specified, the first display starts with move 3 (If no &startAt parameter is specified, then the board will start at move 0, as expected) Also note the use of smooth parameter. This causes each move to 'glide'

▲ Inaba△ Anyouji

This page was originally created 12 years, 11 months ago and last updated 3 years ago