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.
Tagged: 0.7.7.1, csv import, Tile Plus
- This topic has 15 replies, 2 voices, and was last updated 12 years, 10 months ago by
Steven Zahm.
-
AuthorPosts
-
10/16/2013 at 2:33 pm #271615
Susan Paigen
GuestFinally getting back to this:
Copy of cmap folder called “cmap-snc”
Changed $atts = array(
‘class’ => ‘CNT_SNCfull’,
‘name’ => ‘SNC Full’,
…and
class CNT_SNCfull {…
When I activate the new plugin the template is available in Connections > Templates, but CMAP IS NOT AVAILABLE (can’t be found)
I tried changing
if ( ! class_exists( ‘CN_cMap’ ) ) {class CN_cMap {
to
if ( ! class_exists( ‘CN_SNCfull’ ) ) {class CN_SNCfull {
but then the plugin won’t activate – I click the button but it doesn’t work.
How do I do this so the original cMap stays available as well? Or do I need to start with a template I don’t want to use? I would like to be able to make several custom templates off the same base.10/16/2013 at 3:40 pm #271634Steven Zahm
Keymaster@ Susan
Can you zip up your custom template files and upload it to you wp-upload folder and post a link to it here. If you do, I’ll take a look. It is likely that I may have missed something with my instructions.
10/16/2013 at 8:08 pm #271652Susan Paigen
Guesthttp://www.sierranevada.edu/wp-content/uploads/
I haven’t modified the template part at all, just trying to get started.
thanks, Susan
10/17/2013 at 1:00 pm #271732Steven Zahm
KeymasterI just emailed you a zip that you can install and activate. Anywhere you find “snc” upper or lowercase is where you have to make the change in both the base plugin file and the CSS file.
10/22/2013 at 6:38 pm #272100Susan Paigen
GuestWorked – at least I was able to activate without screwing up cMap. I will use the file you sent as a template if I need to make more versions.
If I want to make a revised version of one of the basic templates, do I duplicate the folder in connections > templates, rename, and edit? Or do I need to make another new plugin? (The old customized templates are all in a folder called “connections_templates” in wp-content, but I know that the structure has changed.)
Also, if I am working off a default template file, do I edit my-new.php, template.php, or both?
Is there documentation for customizing templates? I thought I’d found some in the past but couldn’t find anything today.
Thanks for your help, Susan10/23/2013 at 11:53 am #272162Steven Zahm
Keymaster@ Susan
Basically, yes. But there is more to it. You would have to include the file in the
connections.phpfile like the rest. But I do not recommend that. Instead, pull your renamed dupe to thepluginsfolder. You will then need to add the standard plugin header so WP will include it automatically. In the 0.8 release I’m updating all core templates to include that header by default so one can simply pull a core template to the plugins folder and activate it and tweak it to their hearts content. But this will override/make unavailable the core version. This is to allow update safe alterations. Now, if you dupe and change the names, the new dupe will show up as a new template. You’ll just need to make sure you change the code in all the correct places. For example, the class names and the template name and slug in the $atts array.Do not use the
connections_templatesfolder. That is only in place to support the legacy templates.If you’re working off a dupped core template or any template the file name doesn’t matter like it use to what does matter is the plugin header, class names, template name and slug in the atts array.
No, there’s no docs for creating templates as I’m still evolving the API. The best docs can be found in the
class.output.phpandclass.template-api.phpfiles and referencing cMap of how to hook into the correct actions/filters.Hope that helps.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
