It is possible to expose metadata associated with the current user, but through design areas in the parse file?
I have a show_if area that apprears when users have write access. It gives their user details, etc, and also has a place for a profile image. Now, I want to be able to store the URL of that profile image in a metadata field, which can I can print that out inside an img tag, so that it will load the image that is associate with each user.
This is really the only was I could think of doing this, as it is outside the body, and in the parse file, so no go on paint layouts.
Maybe some else has ideas how this could be done, if the metadata does not work.
Here is what I used:
And it came out as:
<!-- Information //-->
<meta name="User.Image" content="/images/test_image1.jpg" /></pre><br />
The metadata design area only displays metadata for the currently painting asset.
You could nest an asset listing that sets a dynamic root node of the current user and (ab)use that potentially. Not entirely sure how, off the top of my head. If the Profile image is stored under the User's workspace, then it is pretty straight-forward.
[quote]The metadata design area only displays metadata for the currently painting asset.
You could nest an asset listing that sets a dynamic root node of the current user and (ab)use that potentially. Not entirely sure how, off the top of my head. If the Profile image is stored under the User's workspace, then it is pretty straight-forward.[/quote]
That was actually my initial idea. But when I tried to put a nest_content area inside of a show_if area it did not seem to work (no nest_content area showed up for me to customize). Either it does not work, or I am missing something.