Page 1 of 1

Limit Number of Pages In Site

Posted: Sat Jun 13, 2009 11:22 am
by topwebs
I would like to be able to limit the number of pages in a Joomla site. For example, one site may have a limit of 50 content pages and another would have a limit of 100 pages. Anybody have an idea, how I could enforce such limits? Would probably have something to do with counting the rows in the content table and not allowing over the limit.

Re: Limit Number of Pages In Site

Posted: Sat Jun 13, 2009 12:30 pm
by gamupstate
I'd recommend a Content Plugin, run it after Content is saved, give the plugin a parameter[maxContent] and check for the number of Approved/Published articles. If the number if published items is greater than maxContent, than unpublish the article being saved. That way you can have 75 content items, but only 50 can be "active"

http://docs.joomla.org/Reference:Conten ... gin_System

Re: Limit Number of Pages In Site

Posted: Sat Jun 13, 2009 12:54 pm
by tusker
this can be done with various ways but what are your requirements exactly. I mean why you want to limit it to a certain number?

Re: Limit Number of Pages In Site

Posted: Sat Jun 13, 2009 1:01 pm
by topwebs
tusker wrote:this can be done with various ways but what are your requirements exactly. I mean why you want to limit it to a certain number?
We're thinking about offering free sites with a limited number of pages, as a way to introduce people to Joomla and our services.

Re: Limit Number of Pages In Site

Posted: Sat Jun 13, 2009 1:12 pm
by tusker
you need some multiblogging component that way you can manage it better.

Re: Limit Number of Pages In Site

Posted: Sat Jun 13, 2009 1:13 pm
by tusker
Or you need default registration type set to author instead of registered user. But still very few limited features are available with default joomla install and you need a better multipage blogging component for your need. something like wordpress multiuser. Few joomla extensions for blogging are available which can be used for the purpose you require.

Re: Limit Number of Pages In Site

Posted: Tue May 04, 2010 10:36 pm
by hisbdf
Is joomla can do that? Can you teach us how? Thanks!
http://www.google.com