I'm trying to setup a portfolio page, and one of the items is a filefield which links to an image.
That part works.
I want to have this filefield, when clicked, to show the image in a lightbox2 window, that also works.
The only problem is, instead of the "image" showing, I want to show a text link that says "View Image", and when someone clicks on that, then the image shows in lightbox.
I'm also using a view to display all my portfolio items in a grid.
I have a custom view-views-fields file for the portfolio. So I can output $fields['field_full_showcase_fid']->content where I want...
I was thinking of instead of outputing the ->content, outputing something else... but var_dump($fields) just produces a white page with no error, so I have no idea what $fields contains that may be useful here.
I assume I can, somehow, make a link manually and then direct it to the filepath thats located in $fields['field_full_showcase_fid']->?
Any help would be greatly appreciated.
Thank you!
Comments
Ok I have no idea how to
Ok I have no idea how to solve this issue but what I did was:
I got rid of the old FileField
I replaced it with a Text field which holds the "path" to the image, which will be uploaded via FTP to a specific folder.
Then in my view-views-fields
I can do something like:
Its not an ideal solution, but it works!