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.30, custom field
- This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by
Steven Zahm.
-
AuthorPosts
-
12/06/2016 at 2:59 pm #402487
Meghan Murphy
ParticipantHi, I have three questions:
1) I would like to add a drop down list as a third field to the overlay. I added a copy of the card.php file to the themes/child-theme/connections-templates/gridder but I’ve never worked in .php before so I’m at a loss of where to add
<select>
<option value=”…”>…</option>
<option value=”…”>…</option>
<option value=”…”>…</option>
<option value=”…”>…</option>
</select>Where would this code go in the .php file?
2) Once I add the code, how would I modify it for each person since I’m assuming it would not appear as a field to fill out in the “Add Entry” section?
3) I bought CMAP and Gridder, but is there a way to change the CMAP to gridder? I’m assuming I need to buy a “gridder” for each site in a multisite?
Thanks So much!
Meghan
12/07/2016 at 3:27 pm #402640Steven Zahm
Keymaster@ Meghan
re: I would like to add a drop down list as a third field
Follow this tutorial on how to add checkbox group custom field.
Change
checkboxgrouptoselect. This will add a new select drop down with your options that can be used when adding/editing an entry.re: I bought CMAP and Gridder, but is there a way to change the CMAP to gridder? I’m assuming I need to buy a “gridder” for each site in a multisite?
Not sure I understand the question. You already own both. TO change the which is the active template navigate to the Connections : Templates admin page and activate the Gridder template. Hope that answers your question.
Hope this helps, let me know.
12/11/2016 at 10:34 pm #403233Meghan Murphy
ParticipantI was able to add a custom text field that appears on the entry, but I’m having difficulty getting the field to appear on the overlay under the title.
I don’t have a child theme so I created a gridder folder with a copy of the .php card and put it wp-content/connections-templates/gridder.
I took the code with the custom ID and added it to the card, but wondered if I added it in the wrong place:
Here’s a copy of the code. Let me know if you need permissions to get into the cpanel or my website at cnsm.uaf.edu/physics/people
'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(), ) ); ?> <?php if ( $atts['overlay'] == 'none' ) { ?> <span>;"></span> <?php } else { ?> <?php printf( '<span style="background-color: %2$s;color: %3$s">', $atts['overlay'] == 'hover' ? ' cn-gridder-overlay-hover' : ' cn-gridder-overlay-static', $atts['background_color'], $atts['color'] ); $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); if ( $atts['show_title'] ) $entry->getTitleBlock(); </span>((Here is where I entered the code))
$group = $entry->getMeta( array( 'key' => 'pulsar\_binary\_quark', // This should match exactly the field id used when registering the custom field. 'single' => TRUE // Do not change this. ) ); if ( ! empty( $group ) ) { echo '<ul>'; foreach ( $group as $option ) { printf( '<li>%1$s</li>', esc_html( $option ) ); } echo '</ul>'; } ?> <span></span> <!-- END .cn-gridder-overlay --> <?php } ?> </div> <!-- END .cn-gridder-thumb --> <?php printf( '<div class="cn-gridder-content" style="background-color: %1$s; color: %2$s;">', $atts['background_color'], $atts['color'] ); ?> <?php if ( $atts['overlay'] == 'none' ) : ?> <div class="cn-gridder-name"> <?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); ?> <?php if ( $atts['show_title'] ) $entry->getTitleBlock(); ?> </div> <?php endif; ?>-
This reply was modified 9 years, 8 months ago by
Steven Zahm. Reason: Fix code blocks
12/11/2016 at 10:55 pm #403234Meghan Murphy
ParticipantAlso, on an unrelated topic, I can’t find any documentation for the widget pack. I’m trying add the categories to the side. Is there a shortcode for that and the custom category extension?
Like gridder, I activated it only on the physics subsite and not through the general network plugins.
12/12/2016 at 9:36 am #403270Steven Zahm
Keymaster@ Meghan
I’d need to see the code you used to add the custom field as well as the code you added to the
card.phpfile. I did review the code you posted, but I need to see just the code you added.If you want, I do provide custom development services. So I could do this for you. If you are interested, use the contact link at the very bottom of the page and I give you quote.
As for the Widget Pack. You can follow the general instructions for installing an extension.
Configuration. Navigate to the WordPress Widgets admin page under the Appearance admin menu. Now, just like any other widget, you can any of the Connections Widgets to the theme’s sidebar. All the options for the Connections Category widget are fairly self explanatory but if you have any specific questions regarding it, let me know.
12/12/2016 at 9:40 am #403274Steven Zahm
Keymaster@ Meghan
Oh, fyi, the code you added could be working just fine. You may have to add some custom CSS to make the list display. Any new text not part of the original Gridder display will likely not show because the default font size and line height is set to
0. This default setting is required in order to have Gridder display as a grid without having a “stair step” show between the entries.YOu can see if the list is being output by looking at the page source (CTRL+U).
-
This reply was modified 9 years, 8 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
