02/20/2015 at 9:39 am
#320059
Keymaster
@ Sam
re: I also took a look at getRevisionBlock, but that returned blank when used within the cMap card-single template.
You need to use it like this:
`getRevisionDateBlock(); ?>
I never updated it to echo by default, which it should.
re: I tried to build my own function based on the class.entry-output to display “Added By”, “Edit By” and “Last Updated”.
You can pull the code from the Connections : Manage admin page:
echo '<span style="display: block;"><strong>' . __( 'Added By', 'connections' ) . ':</strong> ' . $entry->getAddedBy() . '</span>';
echo '<strong>' . __( 'Edit By', 'connections' ) . ':</strong> ' . $entry->getEditedBy();
echo '<strong>' . __( 'Last Updated', 'connections' ) . ':</strong> ' . $entry->getFormattedTimeStamp( 'm/d/Y g:ia' );
These are basically straight copy/pastes so they should work just fine once plunked down into their own functions.
Hope that helps!
