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 14 replies, 3 voices, and was last updated 8 years, 11 months ago by
Jett.
-
AuthorPosts
-
12/28/2014 at 11:31 am #313560
Steven Zahm
KeymasterThe code is in the
connections_link.php
file. The function you’ll need to edit is thelistAction()
function. The code in that function is what creates the view entry link.I think this code will add a working link:
if ( is_user_logged_in() && ( self::$entryID == $entry->getId() ) && ( current_user_can( 'connections_edit_entry' ) || current_user_can( 'connections_edit_entry_moderated' ) ) ) { cnURL::permalink( array( 'type' => 'edit', 'slug' => $entry->getSlug(), 'text' => __( 'Edit Entry', 'connections_form' ), 'return' => FALSE ) ); }
I haven’t tested it and I assume you have the Form Extension because the link will resolve to the page with Form.
Hope that helps!
12/28/2014 at 11:38 am #313574Steven Zahm
Keymasterbtw…
I have added this to my feature request tracker. It is a good idea, so I will be adding it as an option. I also plan on to adding a widget for both the list and entry actions to core Connections so the widgets could be used instead of being shown before the result list or entry… we’ll maybe I’ll release them as a free extension instead.
12/28/2014 at 3:29 pm #313588Jett
ParticipantThank you so much!
I did purchase the Form extension.I was able to get it working, however, I was getting an error on
getSlug()
so I just appended /edit to the View My Directory Entry link.I look forward to the the widget!
Thanks again to both of you.12/28/2014 at 4:27 pm #313590dominic loiacono
ParticipantJett,
Could you walk me through what you did to get the link on the results page?
The several attempts i made at using it would stop the output of the file.
- Did you delete contents of the function or add to it (and where)
- Did you have to edit your template card.php as well?
- How did you change the code?
- Is anything checked/unchecked in the settings page?
Thanks
Dom
Steven: Looking forward to the new features thanks.
12/28/2014 at 4:37 pm #313591Jett
ParticipantIn the connections_link.php file and within the listActions function, I duplicated the code that generates the View My Directory Entry and added the word edit to the end of the link. see code below.
I wasn’t able to get it to work in the widget so it just has another line under the View My Directory Entry
preg_match( '/href="(.*?)"/', cnURL::permalink( array( 'slug' => $entry->slug, 'return' => TRUE ) ), $matches ); $permalink = $matches[1]; echo '
'; printf( '%2$s',esc_url( $permalink ), _( 'Update My Directory Entry', 'connections_link' )); -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.