Page 1 of 1

How to Make a View Private in a Component

Posted: Thu Nov 29, 2007 4:26 pm
by tfuller
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?

Re: How to Make a View Private in a Component

Posted: Fri Jan 18, 2008 2:49 am
by Aikidoka
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.

Re: How to Make a View Private in a Component

Posted: Fri Jan 18, 2008 4:19 pm
by tfuller
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!