course categories in main menu

koljanich
Forums
Hello! Can I add list of course categories in main menu to user (not admin)? Can I add link to my menu like this: "mysite/course-categories" ? I want to register users to see the entire hierarchy of categories, as shown in the administrative panel: "mysite/admin/opigno/content/course-categories", but only links, without edit.
axel

Hi

Hi

To add a new menu entry you can simply go to the main menu settings and add one, at:

http://yourdomain.tld/admin/structure/menu/manage/main-menu

Then, to have a list of course categories, not editable by users, maybe the simplest way is to create a view listing all taxonomy terms for "course categories".

 

koljanich

The main menu and so

The main menu and so accessible. I want to give users access to the categories of courses available at "mysite / admin / opigno / content / course-categories". But if I allow users access to this folder would not that strong of a security breach? And one more thing. I have not found in "permissions" the permission to view Course categories. Only "Course categories: Edit terms in vocabulary" and "Course categories: Delete terms in vocabulary".
axel

Yes you would open a security

Yes you would open a security breach.

That's why I advise you to create a separate view to avoid this security problem.

There is no permission to only view categories.

koljanich

And so I want to open a

And so I want to open a separate view. But what is the link? Page "mysite / admin / opigno / content / course-categories" users can not open. And I can not set read permissions for this page.
axel

I'm not sure to understand

I'm not sure to understand your question.

If you create a separate view you will be able to define the URL you want for it.

It's not possible to easily define a read only permission for the current list of categories page. This could be changed but would require to slightly change Opigno code.

Once again, I think the separate view would be the easiest way to do what you are looking for.

Best regards,

koljanich

To create a separate view I

To create a separate view I do: Content types -> Add -> Add existing field -> Term reference: opingo_cource_categories. What I need to choose from the list "Form element to edit the data" to get a list of references? Without switches or drop-down list?
axel

No, simple go to Structure

No, simple go to Structure then Views, and then follow the guided steps.

The categories are a taxonomy term.

Feel free to post on this forum in case of questions to configure the view.

koljanich

Thank you! It's almost what I

Thank you! It's almost what I was looking for! But how do I make Clone of Training catalogue to display the full tree of courses with Course categories? For example, I have a categories (Stages) of I,II and III in each of these categories is mathematics, physics, etc. In mathematics, physics, there are cources. How to make displayed I Stage Mathematics Fundamentals of Mathematics II Stage Mathematics Algebra III Stage Mathematics Trigonometry. That is displayed all the hierarchy tree, which I create in admin / structure / taxonomy / course_categories. Now I have shown: Fundamentals of Mathematics, Algebra, Trigonometry. A filter can be chosen 1,2,3, Mathematics. It will be very inconvenient for users. It is necessary to display all the tree hierarchy.
axel

Hi,

Hi,

Why don't you simply use classes?

I Stage, II Stage and III Stage would be classes, matehmatics a course and you would have the presentation you are looking for in the training catalogue.

If you want to use categories, then you will have to alter the training catalogue view, and maybe change some css (but it will be maybe a little more complicated than creating the view for categories). Feel free to post on this forum in case of question

 

koljanich

Classes - it's not quite what

Classes - it's not quite what I need. I have a large catalog with three or more levels. Now there is only Stage (I,II,III), Objects (Mathematics) and Discipline (Foundations of Mathematics, Algebra, Trigonometry). And later, I may receive another Level 4 - Specialization. It will be a tree-like structure. Therefore, I believe that it is better to organize it at once. Please help change the CSS. Tell me in what file, and what changes I should make. Thanks for the help
axel

Hi

Hi

First you have to change the view, and then consider the CSS.

It's impossible to tell you what to do right now, without knowing how you will alter the view and how precisely you want to display the content of the calalog.

You will have to post some precise questions otherwise we won't be able to help you remotely from this forum. In case you want a closer help directly on your server, you can also have a look at our professional services.