ACL in joomla (access control list)? - joomla

would any one may please elaborate following statement bit further
"In this helloworld-example the actions to which access is
controlled are divided in three sections: at the component
level, the category level and the item level"
what is meant by component level access, category level access and item level access.
copied from
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_ACL#Describing_the_actions_you_want_to_control_the_access_to

It is the description of Joomla ACL waterfall hierarchy:
|- Global configuration
|- Component level
|- Component category level
|- Item Level (in default extensions only content articles)
So by default Component inherits all permissions from Global configuration, Category inherits from Component and Item from a Category where's located.
You may overwrite any rules at any level and these propagate down to levels below:
If you disable edit rights in component configuration for Managers group, they won't be able to edit any items.
If you do it in category level, they won't be able to edit items in that category
Disable editing rights for item applies only to that item

Related

How to create a level 3 menu item via db in a custom joomla component?

I am working on a Joomla 3.4 component that allows creating articles of a certain category from the front-end. The creation of the article is working as intended. Now, I want to add a menu entry for that article. Everything is working for that, except the values for the rgt and lft.
The menu entry is intended to be level 3. The parent's ID is set in the back-end configuration. Is there a Joomla expert who could give me a short explanation of how the lft and rgt values of the menu entry itself and probably its parent and the parent's parent would have to be set?

Setup multiple Magento designs on single website

I'm setting up a Magento site and have some design requirements that we can't quite get right. What is the best way to setup for the website, store, store view and then the categories for the needs below?
Overview:
One domain name, one set of customers
3 similar product lines that appeal to different industries
Specific Requirements:
The home page should show static content about the company and featured products from all three main categories of products
Each main category of products should have a distinct visual design that carries through when looking at any of the products in those categories
It should be seamless for customers to move from one category of products to another and have the design change without having to choose a store from a dropdown etc.
Home Page: Design A, any and all products may show.
Category 1: Design 1, products only from cat 1 show
Category 2: Design 2, products only from cat 2 show
Category 3: Design 3, products only from cat 3 show
Every combination of websites and stores and store views that we have tried results in strange behavior like changing a store and getting "There was no Home CMS page configured or found." instead of seeing the unique design and category it should be showing. So far we can only get the designs to be different by making new CMS pages which doesn't seem practical.
This seems like something that Magento is made to do and I have to be missing something.
Thank you for any help.
-Shane
Your design needs imply work and considerations from multiple areas of configuration. I'll tackle them in turn. The tl;dr is that there may be more than one way to accomplish what you want, with the number of options at your disposal depending on your needs.
1) One domain name, one set of customers
Domain names (URLs) are configurable for all configuration scopes: Global (aka "Default"), Website, and Store (aka "Store View"). Ultimately, Magento configuration comes down to the most granular/specific scope, which is the store ("Store View") scope. If a configuration value is not specified at the store scope, its value is derived (inherited) from the website or global scope.
Customers are configured to "belong" to all websites or to an individual website (System > Configuration > Customer Configuration: Account Sharing Options). There is no out-of-box capability to restrict customers to a particular store.
2) 3 similar product lines that appeal to different industries
Depends on things discussed below.
1) The home page should show static content about the company and featured products from all three main categories of products
Assuming that you are using the standard configuration of having the Mage_Cms module serve up the home page (System > Web > Default Pages), that CMS page should be visible for all store views. CMS blocks and pages are restricted based on store. Now, later on in your post you mention that you see different behavior in the home page "instead of seeing the unique design and category it should be showing", which indicates that you would like to have different but analogous content for each store's home page. You can use one homepage to do this, but rather than specify content in the content area, you'll need to include your content by specifying a block in Layout XML Update - this block will load a particular category based on the store.
2) Each main category of products should have a distinct visual design that carries through when looking at any of the products in those categories
Establishing theme variants from global scope is possible at the website- and store-wide scopes. Theme variants can also be specified per CMS page, product, and category [each entity having a tab in its admin panel for effecting this change], with the latter having the option of "waterfalling" its custom theme settings to "child" categories and products. Which approach you take depends on your catalog hierarchy as well as the variations present in your themes.
It should be noted that if you need to present different category structure, or if you need to enable/disable products differently based on context, then you will be dealing with multiple websites. This is because category structure relies on root categories, and only websites are associated with root categories. As a reminder, "websites" in Magento have no implicit connection to distinct URLs, it's just an unfortunate naming convention for a scope level.
3) It should be seamless for customers to move from one category of products to another and have the design change without having to choose a store from a dropdown etc.
Based on this final stated requirement, and assuming that you are relying on Magento's native navigation, you are locked into one category structure, and will be using the approach of waterfalling category design, which you will set for each top-level main category under your single root using the "Custom Design" tab:
Another approach would be to create three distinct websites with distinct root categories and then build a menu by hand which links to each of the three stores, but I think this is less ideal based on your stated needs. You could also use one root category and then hide categories by website. Again, less likely that this will be appropriate for you.
Based on the information above you might end up clarifying or adding to your question. I'll update my answer in response if necessary.

How to create a hierarchical Joomla! menu structure

I need an advice ...
I'm using joomla 1.7.2.
I want to plan a site, the site should be very hierarchical.
Actually it will contain categories and sub categories and sub categories and ... And finally all relevant articles that will be under the sub-sub ... Category that was selected.
My ambition from Joomla is to create a main categories menu that looks something like that (never mind the graphics at the moment):
menu example here
Clicking a category will lead to the same look a like menu with his sub-categories.
I guess you could create an article for each category that will contain a menu that will display the relevant sub-categories. but it seems incorrect.
Is there a more correct way to build the hierarchical structure of the site menus?
Sorry about the long text.
I would appreciate any response.
Yoni.
Seems like you are going to make your users click a lot of links to get to the content. How deep do you plan to go? You might want to look in to one of the many mega menus to make it a little easier to get to what they are looking for.
In any case, the basic functionality you are looking for is built in to the core Joomla menu. First, you would need to create a single menu with the structure you described. Link the parent menus to the Joomla category. The trick is in the parameters of the menu module. You will need one menu module for each level of categories you have in your hierarchy. Each module will need to be assigned to every menu item on the corresponding level and the start and end level parameters will need to be set to one level below the current level (0 being the root or top level). You will also want to have sub menu display turned off.
when you click through the links the menu will only display the child menus of the current menu item you are on.
If you want to create an hierarchical menu in Joomla you have to "split" the menu in different parts. Please follow these tutorials:
TODO: Creating a split menu in Jooma
Video TODO: Joomla's
Split Menu System

Setting up permissions for a multilingual joomla site

I'm building a multilingual joomla 1.7 website that will have to support up to 25 countries with each country being a website on its own, the site will be managed by different teams for each country, basically what i'm trying to achieve is, setting up the permissions system so that each team can only see content that belong to its country. now, i'm wondering how to achieve this in the following cases:
1. setting the permissions for standard joomla articles...may be using categories??
2.since i have coded a custom component for managing products on the site, how to implement the permissions in my own component.....
it's easy to implement the multilingual feature on the front-end but how about the backend in terms of access control?
any ideas, thoughts would be greatly appreciated :)
Cheers,
Maybe you have resolved your problem earlier but may be somebody else needs help on this.
First of all you have to create a User groups for every country (or a couple for
start, example Ireland, England).
Then you have to create a AccessLevels groups for those groups and set (select)
corresponding usergroup on it (e. ACL_Ireland / Ireland, ACL_England / England).
Then you can create a top level category for every country (ACL_Ireland, ACL_England, ...)
Users of other countries are not able to see top and sublevel categories if you set the category permission for single ACL and deny access from others.
Move to Category manager and create top level category for country Ireland.
Name it like "Ireland".
Set it permission for ACL_Ireland.
Remove all permissions from other country ACL's.
Save & close category.
Select the category from list of categories.
Select Add to root, Copy under Batch process the selected categories and click Process.
Category is copied as a new entry on category list.
Open category as editing and change name as England, save and close.
Select category England, ACL_England from Batch process the selected
categories and click Process.
Category England now have different acl-rights and can be accessed only by users in England - group.
Articles created in those categories are inherited permissions from top level category
so you are not needed to give persmissions on single articles.
Repeat this to categories of all needed countries and ACL's.
You have to also restrict access from those acl's to Users component because theycan be else change permissions by themself and see documents of other coutries.
It is necessary to design the accessing model before implementing it because it could be heady job to change permissons to all goups and acl's later.

Joomla conditional pages and menus

I'm trying to make a "Chapter selector" for my organization's website. I want to be able to select, say, the "Bay Area chapter" and have the site display articles and events for the Bay Area chapter (while keeping the chapter-independent parts of the site the same). How do I accomplish this?
I'd need a little more detail but here are some of the things to consider -
I am a fan of K2 for being able to nest categories, but you can at least categorize all of your Chapter information in to separate categories within a single section in the Joomla content manager.
For each Category you will need a menu item - Articles > Category > Category blog Layout
In the module manager you will need corresponding modules that display category related information. Be sure to associate the modules to the correct menu items in the module's Menu Assignment area.
I'd do the chapter selector as a menu. Create a menu to contain your chapters and then publish a module for that menu which allows you to pick your items with that chapter.

Resources