The update took a little longer than planned, but the newly updated cMap 2.0 template is finished and ready for download. I recommend reading this post for what’s new: http://connections-pro.com/2011/12/05/feature-preview-cmap/
The big change from the preview post is that the shortcode option names have been changed, the “cmap_” prefix has been removed. It was a bit overkill and made all the option names too long. Here’s a sample shortcode that can be used for cMap that changes the number of entries displayed per page, sets the pagination to be displayed at the bottom of the list and hides both the anniversary and birthday fields.
Here’s a list of options that are currently available with their default settings. I’m way behind on writing all the documentation everything needs, but that will come. There are a lot of options to customize the template, but I think that they are all pretty self explanatory.
- enable_search=TRUE
- enable_pagination=TRUE
- page_limit=20;
- pagination_position=’before’
- enable_category_select=TRUE
- show_empty_categories=TRUE
- show_category_count=FALSE
- category_select_position=’before’
- enable_category_by_root_parent=FALSE
- enable_map=TRUE
- enable_bio=TRUE
- enable_bio_head=TRUE
- enable_note=TRUE
- enable_note_head=TRUE
- enable_website_link=TRUE
- show_addresses=TRUE
- show_phone_numbers=TRUE
- show_email=TRUE
- show_im=TRUE
- show_social_media=TRUE
- show_birthday=TRUE
- show_anniversary=TRUE
- image=’logo’;
- image_width=NULL
- image_height=NULL
- image_fallback=’block’
- tray_image=’photo’
- tray_image_width=NULL
- tray_image_height=NULL
- tray_image_fallback=’none’
- map_frame_height=400
- str_select=’Select Category’
- str_select_all=’Show All Categories’
- str_image=’No Logo Available’
- str_tray_image=’No Photo Available’
- str_map_show=’Show Map’
- str_map_hide=’Close Map’
- str_bio_head=’Biography’
- str_bio_show=’Show Bio’
- str_bio_hide=’Close Bio’
- str_note_head=’Notes’
- str_note_show=’Show Notes’
- str_note_hide=’Close Notes’
- str_home_phone=’Home Phone’
- str_home_fax=’Home Fax’;
- str_cell_phone=’Cell Phone’
- str_work_phone=’Work Phone’
- str_work_fax=’Work Fax’
- str_personal_email=’Personal Email’
- str_work_email=’Work Email’
- str_visit_website=’Visit Website’
- name_format=’%prefix% %first% %middle% %last% %suffix%’
I’m so happy with this update. I just installed this on my live site and it looks great. My client will be thrilled with the new pagination and the search functionality.
The only this I’d like to see is a show_logo=’false’ option. I have hundreds of entries and no logos. That said, it was easy enough to comment out the image line in the template file to accomplish what I needed.
I’d also like to see another live example. Do you have one? My search is a little funky. I have to hit “return” button on my keyboard to search when my instinct is to click the magnifying glass. I wonder if that is how it is intended to function or if I have a conflict in my template.
Many thanks for this fabulous (and free) upgrade!
@Christina
Sure I can add an option to disable the image. I’ll put out an update within a week.
The intended design is to hit the enter key to perform a search. I think it provides a cleaner interface. Is that the only way the search is “funky? Here’s another site that is using it: http://www.virtuallyyours.com.au/vyva-team-members/
@Christina
It just occurred to me, you can already disable the logo. use the following shortcode:
I modified the style just a bit to allow for a “clickable” search button. Here are my modifications in case anyone else needs it. I quickly tested on IE7+, Safari, Chrome and FF.
I agree with you, but my client “old school”. I just know they’d be clicking the “search button” and I’d get a call saying it was broken. I’m hoping my style changes will keep that nice clean look but keep me from getting that phone call :-)
@Christina
Good point, maybe I’ll back track on that design choice.
I had the following errors in Connections > Templates in the WordPress backend at the very top of page:
“Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/www.domain.com/wp-content/plugins/connections/includes/class.template.php on line 168
Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/www.domain.com/wp-content/plugins/connections/includes/class.template.php on line 168”
What does that mean and how to fix it?
@owcv
That’s a non-fatal PHP warning message. Connections will still function correctly. I’ll be putting out an another bug fix later this week.
The interesting thing is that this code has not changed in about a year and only now some are receiving this waning message. Or maybe its just now being reported. All I do know for sure is that I do not receive this warning message.
Yep – I’m getting a similar error.
“Warning: closedir() expects parameter 1 to be resource, string given in ../public_html/wp-content/plugins/connections/includes/class.template.php on line 168”
thanks.
Steven, when can we expect similar changes to the Market template?
@kevin247
I plan on starting work on it this week. So lets so two weeks, max.
I just got the cMap template today and really like the functionality. I’m not able the override the phone number label. I used the short code option:
str_work_phone=’Phone’
Then I went into the funtions.php file and edited it as follows
$permittedAtts[‘str_work_phone’] = ‘Phone’;
Neither option worked. I was able to successfully change the the text for the Show Map link so I believe I’m doing it correctly.
This fix would be great. Ideally I’d like not to display the labels (for address and phone number) as I only have one per listing so the label isn’t really needed.
Thanks for the great plug-in!
@Dana
I’ve identified the bug and will issue a bug fix within the next day or so. Thanks for taking the time to report it!
Thanks for the quick response! I can’t tell you how happy I am to have found your plug-in and template. It is exactly what I was looking for!