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.1.7, getTitleBlock, slim, template
- This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
02/21/2015 at 9:35 am #320185
Magnus A
ParticipantQ1) Is there a way in Slim to display the Title in the collapsed single name row, as displayed when all items are collapsed?
I want something like “John Doe, Chairman”Q2) Is there a way to request a special sort order for one category list, så “Chairman” person comes first in list, regardsless of his/her name?
Q3) Is there a way to display the Slim list as “all expanded” from start on a page load, but want other (larger) lists collapsed as normal?
02/21/2015 at 10:31 am #320186Steven Zahm
Keymaster@ Magnus
re: Is there a way in Slim to display the Title in the collapsed single name row, as displayed when all items are collapsed?
I want something like “John Doe, Chairman”
There is not a builtin in way to do this, the template would have to be altered. You would need to edit thecard.phpfile found here:
../wp-content/plugins/connections-slim/Look for this line:
echo '<h3 class="cn-accordion-item" data-div-id="cn-detail-' , $uuid , '"' , ' style="border-bottom: ' , $atts['color'] , ' 1px solid; color:' , $atts['color'] , ';"><span class="cn-sprite' . $open . '" style="background-color: ' , $atts['color'] , ';"></span>' , $entry->getNameBlock( array( 'format' => $atts['name_format'] ) ) , '</h3>';And change it to:
echo '<h3 class="cn-accordion-item" data-div-id="cn-detail-' , $uuid , '"' , ' style="border-bottom: ' , $atts['color'] , ' 1px solid; color:' , $atts['color'] , ';"><span class="cn-sprite' . $open . '" style="background-color: ' , $atts['color'] , ';"></span>' , $entry->getNameBlock( array( 'format' => $atts['name_format'] ) ) . ' ' . $entry->getTitleBlock() , '</h3>';And then remove this line:
if ( $atts['show_title'] )$entry->getTitleBlock();re: Is there a way to request a special sort order for one category list, så “Chairman” person comes first in list, regardsless of his/her name?
Sorry, no, something would have to be custom developed for you to do this.re: Is there a way to display the Slim list as “all expanded” from start on a page load, but want other (larger) lists collapsed as normal?
You can do this, however, it will affect all lists. So I guess the answers would be no, sorry.I hope you do find this helpful.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
