Forum Replies Created
-
AuthorPosts
-
Jett
ParticipantI updated to the latest versions and that fixed it. Evidently, I updated Connections and not the plugin.
Jett
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' ));Jett
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.Jett
ParticipantDo you know which file generates the directory list?
I should be able to get the code that creates the View My Directory Entry link and then add the edit extension to it.Thanks for your help.
Jett
ParticipantThanks Dom!
I can see the edit show up when I select the name now.
However, I was trying to get edit entry to show up when I view the entire directory to save the user the step of selecting their name.Any ideas?
Jett
ParticipantHi!
I’m trying to do the exact same thing:
1) I created a PHP Code Widget
2) Inserted the code above without the first and last line
3) Added the widget to show on my directory pageHowever get_query_var(‘cn-entry-slug’) returns false every time.
If I force it to true, I get Fatal error: Cannot use object of type connectionsLoadI just want to move the link to a different location on the page.
Any suggestions?
Thanks!
-
AuthorPosts
