Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto get current User #4

Open
manhunbas opened this issue Oct 16, 2020 · 0 comments
Open

Howto get current User #4

manhunbas opened this issue Oct 16, 2020 · 0 comments

Comments

@manhunbas
Copy link

Hi
In wfqbe there is this way to get data from the current user, how is this possible with this ext. ?

In the previous paragraphs we didn't speak about Typoscript Markers in our queries. Suppose for example that you need to retrieve all the fields of the logged-in user. You have to construct a query like this:

SELECT * FROM fe_users WHERE uid=###TS_WFQBE_FEUSER###

Then you have to provide a way to manage the TS_WFQBE_FEUSER marker to the extension. You can do this via Typoscript, by adding the following TS code in your template:

plugin.tx_wfqbe_pi1.customQuery.10 {

TS_WFQBE_FEUSER = TEXT

TS_WFQBE_FEUSER.data = TSFE:fe_user|user|uid

TS_WFQBE_FEUSER.overrideAlways = 1

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant