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!

1 Attachment

Type: Pre-Sale
Status: Resolved
marrow
View Replies:
Korvin replied on at Permalink Reply
Korvin
Hi,
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
marrow replied on at Permalink Reply
marrow
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.
Korvin replied on at Permalink Reply
Korvin
I'm not sure on the exact code you're gong to want, but this might help:

// 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 ?>'>

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.8
Version Installed - 5.7.5.8
Database Version - 20160412000000

# concrete5 Packages
Calendar (1.0.0), Simple Slider (1.0), SVG Image (0.9.4), SVG Social Media Icons (0.9.9).

# concrete5 Overrides
languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.21

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, filter, ftp, gd, gettext, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 64M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:49.0) Gecko/20100101 Firefox/49.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.