Magazine Model – Shortcodes
Say that you want to create a magazine subscription style content dripping where the content is available between a certain date range, and only active users (that had access to the content during that time period), are allowed to access it, you can easily do this using the new magazine model shortcodes in DAP.
Here are a few examples to show you how it'll work:
Case 1:
Content start: Oct 1st, 2020
Content end; Oct 31st, 2020.
Say the user signed up on Oct 10th, 2020.
Say now it's the month of November.
Shortcode:
[DAP hasaccessto='5' startdate='2020-10-01' enddate='2020-10-31' post_cancel_access='Y']
If user has access to product id = 5, then the user can access this content if they had access to it anytime in October and as long their access to product has not yet expired.
[DAP]
Result: User can access the content even though the content expired in Oct because user had access to it when they joined.
Case 2:
Content start: Oct 1st, 2020
Content end; Oct 31st, 2020.
Say the user signed up in November 2020 and has active access now.
Shortcode:
[DAP hasaccessto='5' startdate='2020-10-01' enddate='2020-10-31' post_cancel_access='Y']
If user currently has active access to product id = 5 but started in November 2020 or later, then the user cannot access this content as they started after the content had already expired.
[/DAP]
Result: User cannot access the content because user started after the content had already expired.
Case 3:
Content start: Oct 1st, 2020
Content end; Oct 31st, 2020.
Say the user signed up in August but access expired in September 2020.
Shortcode:
[DAP hasaccessto='5' startdate='2020-10-01' enddate='2020-10-31' post_cancel_access='Y']
If user does not have active access to product id = 5, no matter when they started, they can't access the content.
[/DAP]
Result:
User cannot access the content because user does not have active access to product.
Case 4:
Content start: Oct 1st, 2020
Content end; Oct 31st, 2020.
Say the user signed up in August, had access to content in October but access expired mid October.
Shortcode:
[DAP hasaccessto='5' startdate='2020-10-01' enddate='2020-10-31' post_cancel_access='Y']
User had access in October but as the user no longer has access, cant access content.
[/DAP]
Result:
User cannot access the content because user does not have active access to product.