Display Root Category Only
-
DeadParrot
- Phoca Member

- Posts: 10
- Joined: 25 Jun 2009, 17:22
Display Root Category Only
I'm not too sure if this is possible but what I would like to do is display
the root category for each user instead of User>UserPics>PicsGroup>Pics
When they access their gallery, They automatically can see the bottom level. This gives a huge category list for each user.
What I would like is they Just see their Root level and have to browse, this means locating can be easier.
I can do it for one user at a time (linking to their directory in the menu item, browsing to that hitting button in the galleries) but I cannot figure out how to display certain (root user) categories only.
I hope this makes sense.
the root category for each user instead of User>UserPics>PicsGroup>Pics
When they access their gallery, They automatically can see the bottom level. This gives a huge category list for each user.
What I would like is they Just see their Root level and have to browse, this means locating can be easier.
I can do it for one user at a time (linking to their directory in the menu item, browsing to that hitting button in the galleries) but I cannot figure out how to display certain (root user) categories only.
I hope this makes sense.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display Root Category Only
Hi, I think this needs to be customized in the code, but no idea how, because before creating the category for some user, you don't know which folder and which category which user will use?
Maybe some new module or plugin which will get the user data from database and will join it with Phoca Gallery categories data
Jan
Maybe some new module or plugin which will get the user data from database and will join it with Phoca Gallery categories data
Jan
If you find Phoca extensions useful, please support the project
-
DeadParrot
- Phoca Member

- Posts: 10
- Joined: 25 Jun 2009, 17:22
Re: Display Root Category Only
Hey Jan,
I've assigned each Category to be accessible to one user (each user has his own)
these are not visible to other users.
However, when a user browses to the gallery area of my site, all the sub categories are visible.
Now instead of manually changing each subcategory. I would like to ensure that only the root category is visible each user (their own folder I create when I add users)
I was thinking, instead of
if I listed the categories
Only the Category I want to be visible would be and users could only see their own.
I'm guessing if this is correct, I probably need to RTFM again
I've assigned each Category to be accessible to one user (each user has his own)
these are not visible to other users.
However, when a user browses to the gallery area of my site, all the sub categories are visible.
Now instead of manually changing each subcategory. I would like to ensure that only the root category is visible each user (their own folder I create when I add users)
I was thinking, instead of
Code: Select all
'{phocagallery view=categories}'Code: Select all
{phocagallery view=category|categoryid=1}
{phocagallery view=category|categoryid=2}
etc etcI'm guessing if this is correct, I probably need to RTFM again
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display Root Category Only
Hi, you can set it in parameters, that unaccessible categories will be not visible.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
DeadParrot
- Phoca Member

- Posts: 10
- Joined: 25 Jun 2009, 17:22
Re: Display Root Category Only
I think I'm explaining this wrong
On the menu we have the Pics article.
in the article I have
Now for example categoryid 2 and category id 15 are 2 different users with different permissions and I dont want one seeing the others pics. Category 3 to Category 14 are User1's sub cats (I take it I have uploaded correctly
)
Easily sorted with permissions in the Phoca CP.
However, when the user goes to the gallery article they see the folders which contain their images. I would prefer if they saw their folder, then they could browse to their subcategory. e.g User1>>>Subcat1,2,3,4>>>>then the folder containing pics.
I hope I'm making sense.
On the menu we have the Pics article.
in the article I have
Code: Select all
{phocagallery view=categories}
Easily sorted with permissions in the Phoca CP.
However, when the user goes to the gallery article they see the folders which contain their images. I would prefer if they saw their folder, then they could browse to their subcategory. e.g User1>>>Subcat1,2,3,4>>>>then the folder containing pics.
I hope I'm making sense.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display Root Category Only
Hi, you can do this in component (Phoca Gallery) where you can set different behaviours, but in article there stands the rules of com_content, so I think, this needs to be customized somehow in the code 
But if you will display categories in article, every link then links to Phoca Gallery component and there you can set such rules (in menu link in parameters component - for the itemid which is used in article). You will set there that unaccessible categories will be not displayed. it means, the user who doesn't have rights to see the categories, will not see them only user who have rights or see them.
Jan
But if you will display categories in article, every link then links to Phoca Gallery component and there you can set such rules (in menu link in parameters component - for the itemid which is used in article). You will set there that unaccessible categories will be not displayed. it means, the user who doesn't have rights to see the categories, will not see them only user who have rights or see them.
Jan
If you find Phoca extensions useful, please support the project
-
DeadParrot
- Phoca Member

- Posts: 10
- Joined: 25 Jun 2009, 17:22
Re: Display Root Category Only
Thanks Jan,
I'll bend my noodle around that for a while
I'll bend my noodle around that for a while
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
DeadParrot
- Phoca Member

- Posts: 10
- Joined: 25 Jun 2009, 17:22
Re: Display Root Category Only
I had a bit of an idea about this.
If I discard the idea of an article altogether and set the menu item to Category layout I can create a main User Folder.
I can then put each users root directory in this.
As each user could only see their directory, problem solved.
Hopefully
If I discard the idea of an article altogether and set the menu item to Category layout I can create a main User Folder.
I can then put each users root directory in this.
As each user could only see their directory, problem solved.
Hopefully
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: