I’ve been hard at work on the next version of Connections. A couple of the new major enhancements are a completely revamped template loader and a brand new template manager in the admin. Here you will be able to manage the default templates per list type, install and delete templates.
In Connections, each entry can be set as an individual, organization or family and when displaying the list in the frontend, using the list_type shortcode attribute, you can display all entry types [the default setting] or just one of them. By default these would display using the default template, unless you specified an alternate template using the template_name [deprecated] shortcode attribute. Now with this template manager you can specify which template should be used by default for each entry type list.
The upcoming_list shortcode, used to display upcoming anniversaries and birthdays, didn’t support the use of templates, but while I was at it I added template support which can also be managed with this new templates manager.
The template loader will now load external CSS files and JavaScript files for templates. The CSS is printed in the tag right before displaying the entry list. All browsers do support this even though it is not or rather was not valid markup. With HTML5 this is now valid as long as it is scoped, which the template loader will set automatically. If a template has a JavaScript file, it will be enqueued and printed in the page footer on only the pages where the Connection’s shortcodes are used. This will reduce possibility of conflicts by loading the JavaScript only when needed.
Great! we are waiting for your new templates
I see in some of the sample websites that the words “Work Phone” are replaced by “Main Phone” or with no text at all (only the phone number). How is this done? I’ve searched all the files and can’t seem to find where this can be modified.
This done using custom templates.
Is the template builder in the current available version? I cannot find it anywhere on my menu on the Admin Panel.
No, the template manager will be coming as a feature in the next release.
I need help. I’ve spent about 8 hours trying to figure out how to remove “Select Relation: ” from the card.php template. I still want the data, just not to show “Select Relation: “. can anyone show me an example to do this and will this method apply to other items like “Website:”.
if your using any of the *Block PHP template tags, those will return preformatted chunks of HTML. You do no have to use these. For example instead of using the getConnectionGroupBlock tag you could use getConnectionGroup. This will return the data in an array that you can iterate thru and display the data any way you wish. The same would work for the website, use getWebsites instead of getWebsiteBlock.
when is the next version planned including template manager?
thx
I’m still polishing the documentation and features. But you can grab the dev version now and install it. I believe it to be fairly bug free. Here’s the link:
Hi Steve, that’s great. Thank you. Do they include templates with which I may use it?
Where is the link?
thx
Yes, it includes all the alternate templates that have always been available for use. Here the link:
http://downloads.wordpress.org/plugin/connections.zip
Perfekt, thank you. Good work. Keep it up ..
Hi Steve, I still have a question about the templates.
I want make something in the art:
http://pascochamber.org/member-directory/
it should be mentioned the following:
member photo
name of the member
Members address
Home Phone
cell phone
email
Date of Birth
Return to top buttom
It will be shown like pascochamber.org/member-directory/
and if possible, everything in German
Is there a template?
Are there additional templates for download somewhere?
thx
mrib
@mrib
You could create a custom template to suit your needs. That is a service I do provide for a fee. If you would like me to do it please contact me thru the help desk contact form. Thank you.