How to Make a View Private in a Component

Locked
User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

How to Make a View Private in a Component

Post by tfuller » Thu Nov 29, 2007 4:26 pm

Couldn't find the answer to this in searching the forums:

I have two views in the site portion of my 1.5 component. I need only one to show up when the user creates a menu item to the component. Right now both views show up, though one does not operate because it is only designed to work as a link from the first view.

view 1: studieslist
view 2: studiesview

Need only studieslist to be viewable when admin creates new menu item.

What is the method to do this? Is it to put an underscore in front of the view name like: _studiesview? If so, do I simply rename all instances (including folder names) of the word studiesview to _studiesview?

So for instance new would be:

folder: site | views | _studieslist (old was: site | views | studieslist)

folder: site | controllers | _studieslist.php (old was studieslist.php)

Within that file: class biblestudyController_studieslist extends JController (old was bibstudyControllerstudieslist)

Is this correct?
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org

Aikidoka
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 103
Joined: Tue Aug 23, 2005 4:10 pm
Contact:

Re: How to Make a View Private in a Component

Post by Aikidoka » Fri Jan 18, 2008 2:49 am

Did you find an answer to this?  I am in the same situation.  I have multiple views, but only one should be allowed as a menu item.

User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

Re: How to Make a View Private in a Component

Post by tfuller » Fri Jan 18, 2008 4:19 pm

I did find an answer and I put what I did on this post: http://forum.joomla.org/index.php/topic ... msg1115575

Hope this helps!
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org


Locked

Return to “Third Party Testing for Joomla! 1.5”