[Solved] warn if restricted item in search results

More
12 years 2 months ago - 11 years 9 months ago #35220 by walkyripa
Hi!

I'm trying to redirect user to a login form (as pop up) when a user click on the title of an item which is only for registered users...

I know how to catch if user is registered or public, and i know how to pop-up a login form. I already use this in the flexicontent category and it works well.

Unfortunately, in the search results, i can't catch the item access. $result->access doesn't exists... ($item->exists in category).

Can you help me on how to achieve that?

Thank you very much!

Merci à la communauté!
Last edit: 11 years 9 months ago by walkyripa.

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

More
12 years 2 months ago #35225 by ggppdk
I see why this can be important,
i ll add this

Instead of doing this manually, we should have a built-in parameter for turning ON the display of such a warning in all listing views.


About redirections i guess you already use this in FLEXIcontent component redirection parameters:

[attachment=0:2m4fvay4]<!-- ia0 -->fc_redirections.png<!-- ia0 -->[/attachment:2m4fvay4]


-- 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...
Attachments:

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

More
12 years 2 months ago #35387 by walkyripa
Thanks for your answer!

Yes, i already use this parameters.

Did you think of a "manual" workaround for the moment?

Thanks anyway!

Merci à la communauté!

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

More
12 years 2 months ago #35409 by ggppdk
I am adding exactly this for upcoming version,

1. the items in all views will have an access property that will be :
the logical end of

item access
main category access
content type access

Also besides the property items with no access will have an extra CSS class.

About search view i think the modified search plugins can be used by your version and i will give them to you to test


-- 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
12 years 2 months ago #35416 by walkyripa
great! thank you!

Merci à la communauté!

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

More
12 years 1 week ago #37591 by walkyripa
Hi!

ggppdk wrote: I am adding exactly this for upcoming version,
1. the items in all views will have an access property that will be :
the logical end of

item access / main category access / content type access

Also besides the property items with no access will have an extra CSS class.

About search view i think the modified search plugins can be used by your version and i will give them to you to test


Before i look to change code, did you achieve that point? If yes, how can we use it?

Thank you!

Merci à la communauté!

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.702 seconds
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
Save