Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Raymond
Sorry, not, there is not.
It’s been requested that a “District” field be added to the plugin. If I add this field, perhaps it could be used to accomplish your needs?
Steven Zahm
Keymaster@ Omar Brenes
That option will only affect the entry profile page, not the listings page. There’s not actually a way to turn off the placeholder because the template was designed around having that circular image in place.
Here’s a bit of CSS which will hide it. Add the following to the theme’s custom CSS area:
#cn-circled .cn-circled-thumb { display: none !important; } #cn-circled .cn-circled-content { margin: 0 !important; } #cn-circled .cn-circled-contact { position: initial !important; margin: 0 !important; text-align: left !important; }Hope that helps!
Steven Zahm
Keymaster@ Neoma
Looking at the
Database1.csvfile from your last reply, there are now at least two major issues that was not present before…Part of each row is separated by commas and part of the row is separated by semicolons. Another serious issue that was not present bore is that the string (for example the Notes) are now double quoted; having two
""quotes instead of one"quote. BAsically the file is severely corrupt is is not able to be imported.There could be other issues, but I am unable to open the file in anything that can read CSV files properly. I can only open it in my text editor which is how I saw these issues.
I suggest going back to the
Database.csvfile.Steven Zahm
Keymaster@ Neoma
I opens the CSV files, looked good. I did not get the file encoding error notice when opening and it was UTF8 encoded so it should import fine for the most part. After a quick glance at the data there seems to be the following issues:
- completely blanks rows -> they should be removed
- there are rows with no first and last name, those will be imported as “Organizations”. Not an issue, just wanted to point it out.
- I saw one row with a first name, no last name, but had and Organization name. This will either be “tossed” on import or imported as an Organization. I can not remember precisely of the top of my head.
- I saw one row with only a first name, no last name or organization name. This one will not be imported.
There could be other issues but that’s all I saw after a couple minutes.
Steven Zahm
Keymaster@ Neoma
I guess my first question would be… what is the source of your CSV file? Excel? Something else?
The specific tool I used to fix your file was Sublime Text 2 with the EncodingHelper package. I simply opened the file the status bar had a notice about the broken encoding so I and da a “Save file with Encoding”, choosing UTF8.
I did open the file in LibreOffice Calc before fixing the file, and there were a dozen or so characters shown as question marks (?). So, if you open the file in LibreOffice Calc and fix those question marks and then save the file out as a CSV file with UTF8 encoding your import should go without a hitch.
Now, all that said, it only take me a second to open/save a file, so if you send me your whole file, I’ll fix the encoding for you.
Steven Zahm
Keymaster@ Neoma
I took a look at the CSV file, it does appear the file encoding was corrupt. It was not reading as UTF8 for me. I’ve corrected this and attached it. I recommend removing the last row about the “row height”. That should not effect anything, but its good to make sure the CSV file is clean.
Let me know if that helps.
Attachments:
You must be logged in to view attached files.Steven Zahm
Keymaster@ Zack
Well, technically, it would be possible to use a link entered in the Links field set as the link for the name to direct to an external page but that would require PHP code changes to the template files. Is editing PHP something you are comfortable doing? This would not be a small change. If you are comfortable, I can point you in the right direction. Let me know.
Steven Zahm
Keymaster@ Toby
There were several minor errors in your code snippet such as inconsistent letter case and missing commas. I’ve corrected the error in the snippet below. I hope that helps!
add_filter( 'cncsv_map_import_fields', 'cncsv_ebel_import_meta_fields_options' ); function cncsv_ebel_import_meta_fields_options( $fields ) { $fields['degrees'] = 'Degrees'; $fields['expertise'] = 'Expertise'; $fields['ext'] = 'Ext.'; $fields['office'] = 'Office'; $fields['vantage'] = 'vantage'; return $fields; } add_action( 'cncsv_import_fields', 'cncsv_ebel_import_meta_fields_import', 10, 2 ); function cncsv_ebel_import_meta_fields_import( $id, $row ) { $degrees = isset( $row->degrees ) ? $row->degrees : ''; $expertise = isset( $row->expertise ) ? $row->expertise : ''; $extension = isset( $row->ext ) ? $row->ext : ''; $office = isset( $row->office ) ? $row->office : ''; $vantage = isset( $row->vantage ) ? $row->vantage : ''; cnEntry_Action::meta( 'update', $id, array( array( 'key' => 'Degrees', 'value' => $degrees ), array( 'key' => 'Expertise', 'value' => $expertise ), array( 'key' => 'Ext.', 'value' => $extension ), array( 'key' => 'Office', 'value' => $office ), array( 'key' => 'vantage', 'value' => $vantage ), ) ); }Steven Zahm
Keymaster@ Torsten Anders
There is not a shortcode you can use to go directly to that page. What you could do is add a Custom Link to you menu and use that link in you menu effectively taking your users straight to that page. Here’s a tutorial I found that explains how to add a Custom Link to your menu.
http://easywpguide.com/wordpress-manual/appearance/updating-the-menu/adding-a-custom-link-menu-item/
Hope that helps!
Steven Zahm
Keymaster@ Jess
Yes, it is, please use the contact link at the very bottom of the page and we can take this discussion to email.
-
AuthorPosts
