can you give me an example for use this placeholder?

I think he's asking specifically about the {user||$my->id} one.

What that does is uses the standard "default" method for placeholders. With any placeholder, you can specify ||something as the default to use if the placeholder doesn't exist or is empty.

The {user||$my->id} one is fairly specific to Community Builder, which provides &user=123 on the query string when calling plugins for a CB user profile. So if you use a Fabrik content plugin in a Community builder page, you can get the user ID of the profile being viewed (rather than the logged on user) with {user}. If the same view might be used elsewhere (where you want the logged on user, not the profile being viewed) you can use that {user||$my->id} to get either the profile user ID (if present) or logged on user ID.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top