The website that must be updated is: [url removed, login to view]
Property must be added in Video page in backoffice
Example url [url removed, login to view]
Now we can add/update/del following items:
Video file upload form
Add: video season property
When video is uploaded then the user must select from a pull down menu in season in which the video must be available in the front-end. Seasons are: winter , lente , zomer , herfst.
Change front-end template.
In the front-end at this time a check is done if there are video’s available for this page. If so the (max 2) videos are displayed. Here a extra function must be added. My client will upload 2 video’s per season (so for 1 page he uploads 8 video)
Now use following code to determine the current season
$seasons = array("winter","lente","zomer","herfst");
echo $seasons[(int)((date("n") %12)/3)];
date("n") produces a numeric month 1..12
date("n") %12 (modulus 12) converts month 12 (Dec) to 0
Then we divide by 3 and convert to an integer to produce four groups, 0,1,2,3.
Then we display the nth array element.
Do not display the nth element but use it as an index to select the correct video.
Upload some dummy video’s to test this feature.
credentials are given after project agreement