Limit Number of Pages In Site

Your code modifications and patches you want to share with others.
Locked
User avatar
topwebs
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Wed Sep 06, 2006 1:14 pm
Location: St Louis, MO
Contact:

Limit Number of Pages In Site

Post by topwebs » Sat Jun 13, 2009 11:22 am

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.
Dan Walker - Web Designer & Developer @ Top Webs Network
Custom Joomla & Wordpress Websites
www.TopBusinessWebsites.com
www.TopChurchWebsites.com

gamupstate
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Tue May 26, 2009 7:55 pm

Re: Limit Number of Pages In Site

Post by gamupstate » Sat Jun 13, 2009 12:30 pm

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

User avatar
tusker
Joomla! Ace
Joomla! Ace
Posts: 1075
Joined: Tue Dec 25, 2007 2:15 pm
Location: Baroda - India
Contact:

Re: Limit Number of Pages In Site

Post by tusker » Sat Jun 13, 2009 12:54 pm

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?
ONE WORLD OPEN WORLD - WAR TODAY GIVE PEACE A CHANCE
http://indiavoice.info - India News & Information Portal
http://indiadaily.indiavoice.info - India Daily Infotainment

(Powered by Joomla!)

User avatar
topwebs
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Wed Sep 06, 2006 1:14 pm
Location: St Louis, MO
Contact:

Re: Limit Number of Pages In Site

Post by topwebs » Sat Jun 13, 2009 1:01 pm

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.
Dan Walker - Web Designer & Developer @ Top Webs Network
Custom Joomla & Wordpress Websites
www.TopBusinessWebsites.com
www.TopChurchWebsites.com

User avatar
tusker
Joomla! Ace
Joomla! Ace
Posts: 1075
Joined: Tue Dec 25, 2007 2:15 pm
Location: Baroda - India
Contact:

Re: Limit Number of Pages In Site

Post by tusker » Sat Jun 13, 2009 1:12 pm

you need some multiblogging component that way you can manage it better.
ONE WORLD OPEN WORLD - WAR TODAY GIVE PEACE A CHANCE
http://indiavoice.info - India News & Information Portal
http://indiadaily.indiavoice.info - India Daily Infotainment

(Powered by Joomla!)

User avatar
tusker
Joomla! Ace
Joomla! Ace
Posts: 1075
Joined: Tue Dec 25, 2007 2:15 pm
Location: Baroda - India
Contact:

Re: Limit Number of Pages In Site

Post by tusker » Sat Jun 13, 2009 1:13 pm

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.
ONE WORLD OPEN WORLD - WAR TODAY GIVE PEACE A CHANCE
http://indiavoice.info - India News & Information Portal
http://indiadaily.indiavoice.info - India Daily Infotainment

(Powered by Joomla!)

hisbdf
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue May 04, 2010 10:32 pm

Re: Limit Number of Pages In Site

Post by hisbdf » Tue May 04, 2010 10:36 pm

Is joomla can do that? Can you teach us how? Thanks!
http://www.google.com


Locked

Return to “Core Hacks and Patches”