Help! Add-on Doesn't Allow Images Even With Attribute Addition (Also No WYSIWYG)
Permalink Browser Info Environment
PortlandLabs,
I'm working on a pro bono project for the local Pride festival here. Regretfully, the Calendar add-on doesn't allow the addition of imagery for the client. I had such high hopes for this add-on. There is also no WYSIWYG for the client to update content, add links, and other data into the block. Please help.
I've added the necessary attribute (H=event_image / N=Event Image), but there is no way to add it into the Event List block itself for viewing. It adds to the lightbox as a link only, but the client doesn't even need the calendar block and only needs the event list. I don't want to request a refund, but I need a little assistance adding the WYSIWYG editor and the image for the client's needs. Could I be missing something?
I have attached an image of what the client has approved for their website, and it doesn't seem that difficult to accomplish if we can get these necessary items in the block's functionality. I welcome any assistance you could provide.
Thanks again guys and keep up the great work!
I'm working on a pro bono project for the local Pride festival here. Regretfully, the Calendar add-on doesn't allow the addition of imagery for the client. I had such high hopes for this add-on. There is also no WYSIWYG for the client to update content, add links, and other data into the block. Please help.
I've added the necessary attribute (H=event_image / N=Event Image), but there is no way to add it into the Event List block itself for viewing. It adds to the lightbox as a link only, but the client doesn't even need the calendar block and only needs the event list. I don't want to request a refund, but I need a little assistance adding the WYSIWYG editor and the image for the client's needs. Could I be missing something?
I have attached an image of what the client has approved for their website, and it doesn't seem that difficult to accomplish if we can get these necessary items in the block's functionality. I welcome any assistance you could provide.
Thanks again guys and keep up the great work!
Type: | Pre-Sale |
---|---|
Status: | Resolved |
I've used concrete5 for years, but the attribute system has always been a point of issue for ALL blocks in all packages. It's just not an easy thing to when there are so many options and different ways to add them.
I fully planned on making a new template for this, but the issue is actually adding the attributes into the view of the template itself. I was unable to get an image to show, other text (location for example), or anything else. Just errors would pop up. There are no comments in the PHP to make this work, either.
Any help in this regard would be great. Can you send me the PHP code string to add the attributes into the view? If we had this, I believe we'd be sailing. Can you provide some input on this?
Again, thank you guys so very much.
I fully planned on making a new template for this, but the issue is actually adding the attributes into the view of the template itself. I was unable to get an image to show, other text (location for example), or anything else. Just errors would pop up. There are no comments in the PHP to make this work, either.
Any help in this regard would be great. Can you send me the PHP code string to add the attributes into the view? If we had this, I believe we'd be sailing. Can you provide some input on this?
Again, thank you guys so very much.
I'm not sure on the exact code you're gong to want, but this might help:
Once you have a url to the file you can just output like <img src='<?= $url ?>'>
// Get a file from a file attribute: $event->getAttribute('thumbnail'); // Get the latest version of the thumbnail: $version = $thumbnail->getVersion(); // Get a thumbnail url for "medium": $url = $version->getThumbnailUrl('medium');
Once you have a url to the file you can just output like <img src='<?= $url ?>'>
For such a custom view I'd recommend making a custom block template for the event list. That way you can use whatever attributes you have available and display them however you'd like.
Best wishes,
Korvin