eZ Community » Forums » Setup & design » Organizing Folders
expandshrink

Organizing Folders

Organizing Folders

Monday 27 February 2012 6:57:28 pm - 4 replies

Hello friends,

I want to create folders in my content structure in order to organize my data, but I don't want navigational folders. In other words, when I create a folder in the content structure, someone that visit my website can access to this folder by the following address:

    www.my_website.com/my-folder

And I don't want that, I just want to create folders to organize data and not to be seen by everyone.

Thank you for your help.

Regards,

Ricardo

Tuesday 28 February 2012 9:56:38 am

Hey Ricardo

I know three options:

1) create your own navigation class (my favorite solution) and use the folders for your organisation
2) create a new class (container) for your administration (and remove by the role Anonymous the right for the view) 
3) create a new role content/read for Anonymous, and add the visible nodes

Modified on Tuesday 28 February 2012 9:57:18 am by David Hohl

Thursday 01 March 2012 1:10:47 pm

 

Hello David,

Thank you for your answer. I wich to know how can I create my own navigation class. I tried to do that but all the classes that I created appear in the website address.

 

Regards

Monday 05 March 2012 8:39:59 am

Hey Ricardo,

Ok, I will try to describe happy.gif Emoticon
1) First of all - setup/class - create new class example "Navigation".

2) create in your extension -> contentstructuremenu.ini.append.php with

 [TreeMenu]
ShowClasses[]=navigation

this is for the backend on the left.
3) add in the content structure a navigation node, left click on the node and switch it with your nodeId 2. (it is no really necessary)
4) nice to do: add in your extension -> icon.ini.append.php
[ClassIcons]ClassMap
[navigation]=filesystems/folder.png

5) create in your extension -> menu.ini.append.php

 [MenuContentSettings]
TopIdentifierList[]
TopIdentifierList[]=navigation
 
[MenuSettings]
#HideLeftMenuClasses[]
HideLeftMenuClasses[]=folder

Well I hope that was all. happy.gif Emoticon

Modified on Monday 05 March 2012 8:58:39 am by David Hohl

Monday 05 March 2012 4:54:08 pm

Thank you again for your help.

This method doesn't resolve the web address problem but it removes the left navigation menu from the page wich help and I can turn around the problem.

It would be perfect if it was possible to hide the folder. I will try to explain the problem again maybe you missunderstood what I really want.

I have the following structure in my content:

Frontpage1 with {Folder 1; Folder 2; etc}

Folder 1 with {object 1; object 2; etc}

The address of my page results as:

www.my_page_name.com/Frontpage1/Folder1/object1

What I want is:

www.my_page_name.com/Frontpage1/object1

without the reference to the folder or the navigation class.

BTW  the last part of the code should be:

 [MenuSettings]
HideLeftMenuClasses[]=navigation

Right? because with folder you are hidding the left menu of the folder class.

Thank you.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu