Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1431

Extensions for Joomla! 4.x • Re: Membreship/paywall to access old content

$
0
0
The paid content part shouldn't be an issue - any subscription extension would work.
https://extensions.joomla.org/instant-s ... bscription

The Paid members would for example, be placed in a user group called "Subscribed". That user group would then have the sole access to the articles in a category called "archived" or perhaps even access to articles with a status of "archived" (rather than published).

As to making the articles 'archived' after one month (I assume until then the articles are public access (?)), it could be automated e.g. through task scheduler (introduced in Joomla 4.1). A script could automatically run that either changes the article's category to "archived" or its status to "archived". This would be done through Task Scheduler in conjunction with the server's CRON Job functionality and (as I see it - and just thinking aloud) - based on the published date + 30 days. I'm not a coder so I don't know the specifics of what you need to write in that respect.

In Pseudo code, perhaps something like this (but would be coded in PHP, possibly as a plugin or something)

Code:

IF [published-date] = today() - 30 THEN  Move [Article] to [Category]ENDIF
Otherwise, it would be a manual task to make all the relevant articles "archived" through whatever means you plan to do so.

Statistics: Posted by AMurray — Tue Sep 10, 2024 10:00 pm



Viewing all articles
Browse latest Browse all 1431

Trending Articles