ACL levels shown at the frontend

More
10 years 10 months ago #43970 by ggppdk
Hello

the links no meant to appear for a virtual domain should not appear, instead you want to give out 404 server errors (=not found) ?

plus an inaccessible item (due to access level will give 403 error (=not accessible) and error 404,

finally you assign view access level to menu items of different menus appearing according to the current domain,
this is not relevant to the component, maybe you can do something by adding custom code inside a custom template, but FLEXIcontent is not displaying Access level of menu items



and i don't think that your approach is correct,

maybe this is possible and will do the trick:
Create a new multiselect field and call it domain, with values:

domain1.com::domain1.com %% domain2.com::domain2.com %% domain3.com::domain3.com %% domain4.com::domain4.com


you will set this for every item , to select the domains in which the item will appear

then near the top of your Joomla template add:
if ID of your field is 51
Code:
$domain = $_SERVER['HTTP_HOST']; $domain = str_ireplace('www.', '', $domain); JRequest::setVar('filter_51', $domain);

The above may work and filter your category views, but i have not tested it

Anyway i have no other suggestions

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43991 by gkhn

ggppdk wrote: Hello

the links no meant to appear for a virtual domain should not appear, instead you want to give out 404 server errors (=not found) ?

plus an inaccessible item (due to access level will give 403 error (=not accessible) and error 404,

finally you assign view access level to menu items of different menus appearing according to the current domain,
this is not relevant to the component, maybe you can do something by adding custom code inside a custom template, but FLEXIcontent is not displaying Access level of menu items



and i don't think that your approach is correct,

maybe this is possible and will do the trick:
Create a new multiselect field and call it domain, with values:

domain1.com::domain1.com %% domain2.com::domain2.com %% domain3.com::domain3.com %% domain4.com::domain4.com


you will set this for every item , to select the domains in which the item will appear

then near the top of your Joomla template add:
if ID of your field is 51

Code:
$domain = $_SERVER['HTTP_HOST']; $domain = str_ireplace('www.', '', $domain); JRequest::setVar('filter_51', $domain);

The above may work and filter your category views, but i have not tested it

Anyway i have no other suggestions

Regards

Thanks for the reply.
Yes I am trying to redirect the user to 404 page.

If I create a menu on x.com/mynicelink (view access level is x.com)
The user should not be able to access it via the virtual domain by going to y.com/mynicelink

Thats the whole idea. And when they visit y.com/mynicelink they are redirected to 404 page(just tested it now).

Plus I set a smart internal search engine. If I dont set view access levels of each item/category/menu, the user will be able to search the whole site (domain1 domain2 etc)

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43992 by ggppdk
OK

but how will the visiting user have different view access level?

users of different domains, will belong to different users groups thus they will be assigned different Access Level ?

e.g.
- he must login ?
- does the component that you mentioned do this ? (=give users different view levels according to current domain)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43997 by gkhn

ggppdk wrote: OK

but how will the visiting user have different view access level?

users of different domains, will belong to different users groups thus they will be assigned different Access Level ?

e.g.
- he must login ?
- does the component that you mentioned do this ? (=give users different view levels according to current domain)


Thats right.
The component creates a view access for each domain. If you want to leave it as public you can but the problem is as mentioned before, people can place the link /mylink and access the other sites' pages...

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #44001 by ggppdk
Hello

if you disable "show unauthorized links" parameter in component configurations for content lists,
then item links will not be shown


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #44009 by gkhn

ggppdk wrote: Hello

if you disable "show unauthorized links" parameter in component configurations for content lists,
then item links will not be shown


Actually there is a menu filtering functionality inside this virtual domain extension.

If I filter the menus, it works completely fine (only the menus though).

But if I have this search functionality what happens is that all the content from the other virtual domains are shown.
These are single item links created by flexicontent
/component/flexicontent/2-uncategorised/
I am not sure how I can hide these beacause there is no article/item filtering option inside this virtual domain extension.

I don't even know why the search result is showing the content on the other virtual domains anyways in the first place.

I can disable the search functionality permanently but since the single items and categories are accessible via non-sef urls(even though I filtered the menu items), it makes me wonder I will have URLs mixed up in search engines.(x.com/component/flexicontent/2-uncategorised/myitemblablaID=1 will be indexed while y.com/component/flexicontent/2-uncategorised/myitemblablaID=1 will also be indexed)
:?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.397 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline