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.6.11, circled, cn_link_options, filter, template
- This topic has 4 replies, 2 voices, and was last updated 6 years, 1 month ago by
Allan Davis.
-
AuthorPosts
-
10/18/2017 at 7:34 am #438202
Allan Davis
ParticipantHi,
I have a couple of questions.
- I would like the title of an entry in the directory to be a hyper link to that entry, however it doesn’t seem to work even when I have the option selected in the advanced settings.
- I would like to add an option to links, at the moment the options are either blog or website, how would I add a third option for a link?
Thanks,
Allan
10/18/2017 at 9:58 am #438205Steven Zahm
Keymaster@ Allan
RE: I would like the title of an entry in the directory to be a hyper link to that entry, however it doesn’t seem to work even when I have the option selected in the advanced settings
This is the design of Circled, it has the “View Profile” link to view the entry. The only way to change this would be to edit the core PHP template file for the template.
RE: I would like to add an option to links, at the moment the options are either blog or website, how would I add a third option for a link?
Install the Code Snippets plugin, copy paste the following example code, tweaking the type as desired. Save and Activate the snippet.
function cn_my_new_link_types( $options ) { $options['billing'] = 'Billing Website'; $options['claims'] = 'Claims Website'; return $options; } add_filter( 'cn_link_options', 'cn_my_new_link_types' );
You can add as many new link options as you wish.
Hope this helps!
10/18/2017 at 11:42 am #438220Allan Davis
ParticipantMany thanks Stephen, that did help. I have been able to add more options!
What would I need to do to enable the title of the entry to be a hyperlink to the entry? My client would like that ability for the directory.
I am quite familiar with php core files and I imagine I would have to create a file in the child theme directory so not to delete the changes when the software gets updated.
Thanks,
Allan
10/18/2017 at 12:22 pm #438221Steven Zahm
Keymaster@ Allan
Edit the
card.php
file found here:../wp-content/plugins/connections-circled/
Look for this line:
<h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); ?></h3>
Change it to:
<h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => TRUE ) ); ?></h3>
To make this tweak update safe (more or less :) ), see this tutorial on custom template override files.
Hope this helps!
10/19/2017 at 1:27 am #438237Allan Davis
ParticipantThank you Stephen, that worked perfectly and was easy to change.
Thank you for your help today.
Allan
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.