Hey ModX,
I have made progress on the site and it’s almost ready to go - there are just a few more things to sort out before I am ready to look at creating a user for the client (which I assume has it’s own pitfalls and issues).
I have got my customisable rich text fields working correctly with my template variables, and I have created an image TV that acts as a link via creating it as part of a chunk. The client will be able to update the link and the image, and the text on the areas defined as editable.
http://tomphilli.ps/felixthecat/modx/index.php?id=5
My problem now is the image resizing - the client will be delivered images that are way too big for the site (as you can see in the above link). I’ve had a look on some forums and there seem to be lots of different approaches with how best to solve these issues.
What can I do to resize? I initially thought I would be able to include it as part of the code in the chunk like so:
<a href= [[*TV]]> <img src= [[*TV]] height="foo" width ="foo"> </a>
or similar, but this was causing the image to disappear and display just the text in it’s place.
I had a look at TVimageResizer, but that seems to be an evo spec rather than revo, and I haven’t used php enough to have any idea of what to do with that...
How can I get my images sized correctly?
My other issue will be the need to give the client a way of updating a pdf menu, to be a web link on the food page. I want the pdf to be opened in a new page or downloaded so it doesn’t disturb the flow of the site, what might be a good way to achieve this?
Thanks again,
wassailant