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: 8.5.28, category display, category list, cMap, getCategoryBlock(), slim plus, template
- This topic has 7 replies, 3 voices, and was last updated 5 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
10/24/2016 at 12:19 am #396962
Trevor Leyenhorst
GuestHi Steven,
Thanks for the great plugin. Slim Plus works well for our not-for-profit association of interpreters. The only lacking function I wish we had is the option to add the selected categories as keywords under each participant’s card. It is not redundant information because when browsing the full list of interpreters, people need to know their categories (qualifications, screens, etc) at a glance, without having to search and realize the interpreter they were looking at does or doesn’t have the category. As soon as you add this functionality I will pay to upgrade! Please add:
- Option to add selected categories within the Card
- Customization options of where and how to display the categories
For an example, go to http://wavli.com/find-an-interpreter/directory-of-interpreters/
Click on a name and you’ll see all the information they entered, except for the categories they chose. I wish it displayed as a slightly greyed-out line underneath the bio, “Categories: Registered Sign Language Interpreter, Master’s Degree, WTK” etc. Better yet, have each listed category as a button that can be pressed to start a new search within the list.
Thanks and hope to hear from you soon!
Trevor
10/24/2016 at 11:38 am #397058Steven Zahm
Keymaster@ Trevor
You can add this right now, but does require a minor PHP code edit. You can read the instructions in this forum post that I gave another user requesting the same.
Hope that helps!
10/27/2016 at 5:44 pm #397655Anne Reith
ParticipantHello Steven,
Thank you for your help on this problem, I am having the same problem and followed the steps on the link above and while they worked they don’t seem to solve my issue. Let me know if this is unique enough for a distinct forum post.
I previously paid for customization so categories and subcategories would display as unordered lists and while this worked in the past, automatically displaying category information when it was selected like this (click “see full bio” and note the bolded categories), whenever I add a new entry, the checked categories do not display at all.
I followed your above steps to edit the card.php and new entries displayed a single list sentence of all categories which was a great start! But it also added that sentence of all categories to old entries and did nothing to change their unordered list structure.
My question is, what code set all the old entries to display as structured lists and why is that not affecting newly created entries. I can say confidently category lists were never manually added even though the lists appear in the entry content block.
Thank you very much for your help and let me know if you need clarification or access to see anything
10/28/2016 at 10:32 am #397720Steven Zahm
Keymaster@ Anne
re: I am having the same problem and followed the steps on the link above and while they worked they don’t seem to solve my issue.
Yes, it appears your issue is distinct. Looking at your site, you are using a very old version of the cMap template which has been altered (as you mentioned).
This at a basic level is a continuation of this thread from a few years ago.
re: My question is, what code set all the old entries to display as structured lists and why is that not affecting newly created entries. I can say confidently category lists were never manually added even though the lists appear in the entry content block.
Hmmm… looking at the page source, it appears the categories were added manually as an unordered list to the bio field. I say this because the actual category names do not match the categories list in the bio.
This would definitely explain why when you added the code you saw it twice on old entries (once from the manually added list and once from the code you added). This also explains why when you added new entries you do not see the categories… because they were not entered in the bio like the old entries.
10/28/2016 at 9:05 pm #397835Anne
GuestThank you for finding that old post. Yes it appears to be the same issue from the past where the template was modified.
it appears the categories were added manually as an unordered list to the bio field.
Yes I believe you’re probably right. The owner of the site insisted that the plugin customization automatically added the unordered lists to the bio simply by clicking on the categories… but your points and all other evidence points to the contrary. I agree with you but want to cover all my bases for what might be creating that section.
The last place that I want to check is whatever php or shortcode prints the bio or what file controls the contents of the bio. I have spent hours looking through cMap plugin php and the general plugin and still can’t find anything referencing the bio section. This is the only place I can think the old developer would have customized to produce content that appears to be manually added in the bio section.
Thank you again for all of your help!
10/31/2016 at 11:40 am #398080Steven Zahm
Keymaster@ Anne
re: The owner of the site insisted that the plugin customization automatically added the unordered lists to the bio simply by clicking on the categories…
This can be done with a slight tweak to the code which output the categories. You would use this code instead:
$entry->getCategoryBlock( array( 'type' => 'list' ) );
You of course would have to remove the categories that were manually added to the bio field when you edit an entry. You would also have to play with the styling of the list in order to achieve a similar look (bolded parent category names).
re: I have spent hours looking through cMap plugin php and the general plugin and still can’t find anything referencing the bio section. This is the only place I can think the old developer would have customized to produce content that appears to be manually added in the bio section.
The bio will be output by the
$entry->getBioBlock()
function in both thecard.php
andcard-single.php
files. If your customized version does or not is up in the air I suppose since they is really no way of me to know how the template was modified. That said, looking at the page source, it definitely looks like it is still using$entry->getBioBlock()
.Hope this helps!
11/01/2016 at 1:41 pm #398269Anne
GuestI understand thank you very much. I will try to reach out to the developer who customized our version. In case I cannot reach him I will use the above code and delete all the old, manually entered information. If I do that (please excuse the total n00b question) how would I assign a css class or ID to the above list so I can make style edits?
Thank you again for all of your help!
11/01/2016 at 3:44 pm #398276Steven Zahm
Keymaster@ Anne
The output of the
$entry->getCategoryBlock( array( 'type' => 'list' ) );
function outputs an unordered list which includes quite a few classes you can use for your CSS selectors. So you should have quite a bit of freedom to style the list as you desire. -
AuthorPosts
You must be logged in to reply to this topic.