-
- 463 Posts
Good Afternoon!
I'm trying to organise some member only downloads, but there is other content attributed to the downloads. I'm uing a weblink to link to the file but i have some other TV's content related to the template of the Weblink.
What i want to do is display the TV data in a chunk for getResources but only when they click the actual link, they get redirected to the login page if they are not logged in.
I can control access to the document already. but i want to control access too the [[*content]] field of the weblink only - is this possible?
Thanks
[ed. note: Tyreal2012 last edited this post 12 years, 3 months ago.]
I'm pretty sure phx (output modifiers) will be your answer; it has a conditional to check if the user is looged in. You can use that to output the URL as to the file if yes and another the link (in your case you'd want a link to the login page) if no.
http://rtfm.modx.com/display/revolution20/Input+and+Output+Filters+%28Output+Modifiers%29
[ed. note: sottwell last edited this post 12 years, 3 months ago.]
I'm afraid I don't know any more; I haven't gotten to that point in working with Revo yet. I'm sure someone who knows more about it will respond soon.
I suspect you'll actually need to see about making a custom snippet to return the desired URL; see the "Creating a Custom Modifier" section of the page I linked to.
Would you post your solution? I'd be very interested.