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.38.1, name_format, names, template
- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by
Steven Zahm.
-
AuthorPosts
-
03/14/2019 at 10:49 pm #487053
Ryan Christenson
ParticipantIs it possible to override the template for the view all page? My client wants a comma inserted in the name format.
So now names appear as:
First M Last Suffix
My client wants it with a comma before the Suffix:
First M Last, Suffix
I’m using the Slim Plus template.
I want to have this option for the view all page:
$permittedAtts[‘name_format’] = ‘%first% %middle% %last%, %suffix%’;
Thanks.
03/15/2019 at 1:07 pm #487096Steven Zahm
Keymaster@ Ryan
You should be able to use a template override file for the Names template. You would pass the
array( 'format' => '%first% %middle% %last%, %suffix%' )to the$entry->getNameBlock();method.Hope this helps, let me know.
-
This reply was modified 7 years, 5 months ago by
Steven Zahm.
03/18/2019 at 7:37 pm #487385Ryan Christenson
ParticipantOk the tweak works if I copy/paste the core names template as a new plugin as the readme.txt instructs to do.
However, I’d rather override the core names template in my WordPress theme. So is that possible for the core templates?
I tried the following path but it doesn’t work:
wp-content\themes\my-theme\connections-templates\names\03/19/2019 at 11:29 am #487450Steven Zahm
Keymaster@ Ryan
RE: the tweak works if I copy/paste the core names template as a new plugin as the readme.txt instructs to do.
You do not need to move the/copy the Names template to the plugins folder.
Use a template override file for the Names template.
You’ll need to create a
card.phpfile and put it in the path. The file only needs to contain this one line:$entry->getNameBlock( array( 'link' => TRUE, 'format' => '%first% %middle% %last%, %suffix%' ) );Hope this helps!
-
This reply was modified 7 years, 5 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
