× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Different catalog according to joomla user

  • elrecu2001
4 years 4 months ago #5323 by elrecu2001
Different catalog according to joomla user was created by elrecu2001
Hi there.

I want to use wildcard {joodb ifis} to compare actual joomla user id with an integer field in my DB to show only the items that are available to that user, but I don't know how to get the current joomla user ID to do it.

Please, can you help me?

Please Log in to join the conversation.

More
4 years 4 months ago #5324 by Dirk
You can not compare with the current user id.
It's not part of the data.

You could write a plugin but that's not nessecary.

Just declare the field with the user ID in your Database as Joomla USER ID.

Then you can switch on Advanced => "Show only userdata" in the menu settings of your catalog.

Attachment Settings.jpg not found

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

  • elrecu2001
4 years 4 months ago #5325 by elrecu2001
Replied by elrecu2001 on topic Different catalog according to joomla user
Thank you very much!!!

This works perfectly

Regards

Please Log in to join the conversation.

Moderators: Dirkjoest