Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 5 replies, 2 voices, and was last updated 12 years, 10 months ago by
Steven Zahm.
-
AuthorPosts
-
09/24/2013 at 5:21 am #269804
James Wee
ParticipantDear Steven,
I realized that most of us who have bought a premium template and want to make minor changes are editing the core cmap template files in plugin/cmap/
1. What happens during the next cMap template update? Will it delete the old (edited) one and replace with the new one?
2. Will the custom template support all the features (shortcodes) in the activated template? In my case, the activated template is cMap.
09/24/2013 at 8:20 pm #269893Steven Zahm
Keymaster@ James
1. Yes, any changes you made would have to be done again. The latest template API for Connection is pretty robust but it does need a little more flexibility for tweakers. I plan on doing that, hopefully for the .8 or .9 release. The idea will be you will be able to dupe the part of the template and drop it in an update safe location and that location will override the core file / callback. Now that doesn’t mean the override won’t break; that’ll depend on what you changed but if it’s minor tweak it should be fine. Another downside is if a bug or a new feature was implemented in the file you overrode you will get that feature. Honestly though, I think it would break first. That would really depend on the feature.
2. No, Custom templates will only have the features you program in them. There is no inheritance. Unless, of course, you base your custom template on a template which already includes said features.
Hope that makes sense!
09/25/2013 at 7:44 am #269909James Wee
ParticipantMakes perfect sense.
In fact, I have already edited the cmap file in such a way that it displays the way I want.
However, I would like to translate the cmap plugin as a template. But that isn’t possible because in connections_templates, the content of the template must have template.php, that is not available in the cmap plugin.
Plus, I need to translate
card.php
card-single.php
cmap.min.css
cmap.min.js
cmap.php
as a template file in connections_templatesHow can I do that?
09/25/2013 at 10:54 am #269943Steven Zahm
Keymaster@ James
You can not move cMap into the
connections_templatefolder that is currently there only to support legacy templates.What do you want to translate in the template? All the strings can be set via shortcode options. See this FAQ for more details.
Here’s the complete list of str_***** options available to cMap.
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_contact='Contact' str_home_addr='Home' str_work_addr='Work' str_school_addr='School' str_other_addr='Other' 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'09/25/2013 at 11:06 am #269946James Wee
ParticipantOh that is not what i meant, what I meant was if I were to re-create a similar template to cmap in connections_templates. What should I do to enable all the functionality?
09/25/2013 at 12:08 pm #269956Steven Zahm
Keymaster@ James
Dupe the folder giving it a new name. Give these files a new name:
cmap.min.css cmap.min.js cmap.phpOpen the
cmap.phpand change every reference to cmap to something else. Make sure the reference to the css/js file names match whatever you renamed the files as.After you’ve done that, you should be able to safely Active the plugin and it should show up as template option on the Connections : Templates admin page.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
