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 12 replies, 2 voices, and was last updated 10 years, 7 months ago by
Steven Zahm.
-
AuthorPosts
-
01/02/2016 at 10:00 am #359695
George Socha
ParticipantGreat plugin!
With cmap I would like to be able to show different content, and show content differently, based on categories selected for entities.
For example, right now I display information about different types of member organizations. When I go to an organization’s entry and select the category “Provider”, I would like the organization’s logo to be displayed on some of the pages where I show that organization. If I select “Corporation”, then on those pages I do not want the organization’s logo to appear. On yet other pages, I would like to show all organzations’ logos or no logos at all.
Similarly, I would like to have the same information displayed differently based on categories selected. For example, I might want the organization name to show in green when the category is “Provider” and show in blue when the category is “Corporation”.
How might I go about doing this?
Thanks!
01/02/2016 at 2:37 pm #359769Steven Zahm
Keymaster@ George
Hmmm… you should be able to do what you want with template override files.
For the different category overrides you would create a
card-category-{category-slug}.phpfor each category display you want to be customized.You would also need a custom
card-single.phpwhich renders the correct layout when viewing specific entry based on its category assignment.Hope that helps!
01/02/2016 at 5:54 pm #359780George Socha
ParticipantSteven,
I would like to show all these on a single page, not separate pages. Will two or more separate category override files work for a single page, all at the same time?
Also, I don’t want all of one type showing, and then all of another. Rather, I want them interspersed.
Thanks,
George
01/04/2016 at 3:38 pm #359883Steven Zahm
Keymaster@ George
re: I would like to show all these on a single page, not separate pages. Will two or more separate category override files work for a single page, all at the same time?
Then all you need are the
card-single.phpandcard.phptemplate override files.You would check to see what category the current entry is in and then change the layout as you need.
Something to consider as an alternative. All entries are CSS classed with their category slugs, so, you could use CSS to change the appearance that way too.
Hope that helps!
01/05/2016 at 10:30 am #359970George Socha
ParticipantSteve,
Maybe an example will help me understand this. I have a custom css file, “cmap-custom-css”, with which I can make changes to the appearance of information showing when I use cMap. For example, I can increase the size of the organization name by adding:
#cn-cmap span.org.fn { font-size: 1.5em; }I have not been able to figure out how to have the size of the organization name increase only for entries with the category whose slug is “provider-member-organization” and whose ID is “12”.
How do I do that?
Thanks!
01/05/2016 at 11:37 am #359986Steven Zahm
Keymaster@ George
If you can share a link to the page I can give a working example. Here is a demo example that should work:
#cn-cmap .category-slug span.org.fn { font-size: 1.5em; }You would replace
category-slugwith the appropriate category slug.01/05/2016 at 11:39 am #359987George Socha
ParticipantHere is the page: http://www.edrm.net/apersee-providers
I will try what you suggest.
01/05/2016 at 11:50 am #359990George Socha
ParticipantSuccess! Thanks!!
01/05/2016 at 12:41 pm #359993Steven Zahm
Keymaster@ George
Great to hear!
If you have a moment. I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections
01/05/2016 at 1:33 pm #360011George Socha
ParticipantSteve,
More questions. You had suggested making changes using template override files. Could you give an example to help with that? I have saved file, card.php, as directed, and when I make changes to that file they show up as I would expect.
I have not been able to figure out how to make changes show up only for a specific category. For example, for the category “not-active-member” I do not want any addresses showing up, even if an entity to which that category has been assigned has addresses associated with it.
First problem: I think I am supposed to rename the “card.php” file to something like “card-category-not-active-member.php”. If that were right, then changes to the card.php file would only show up for entities with that tag, right? I have got something wrong because when I change the contents of the renamed card none of the changes appear in the web page.
Second problem: Figuring out how to change the address information.
How would I make these things happen?
Thanks!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
