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 5 replies, 2 voices, and was last updated 9 years, 11 months ago by
Steven Zahm.
-
AuthorPosts
-
09/05/2016 at 9:51 pm #389596
Lynette Lau
ParticipantI’m using Gridder for my directory listing and need to separate the listings out by category, so I have the following code on my page:
[connections category_name="ABC" name_format="%first% %last%, %suffix%" background_color="#0e8a8a" color="fff" image_width=180 image_height=350 image_opacity=1] [connections category_name="XYZ" name_format="%first% %last%, %suffix%" background_color="#0e8a8a" color="fff" image_width=180 image_height=350 image_opacity=1]The directory displays perfectly, but when I click on the “View Profile” link on the second set of directory listings, I get a page with the individual’s name and “No Results” where the bio should be.
It doesn’t behave like this if I have all the listings displayed in one block, without separating them by categories (e.g., see below).
[connections name_format="%first% %last%, %suffix%" background_color="#0e8a8a" color="fff" image_width=180 image_height=350 image_opacity=1]It also doesn’t behave like this if I have 2 blocks of listings but both displaying for the same category (e.g. see below). Though, if I do this, then the individual detail listing displays twice on the page.
[connections category_name="ABC" name_format="%first% %last%, %suffix%" background_color="#0e8a8a" color="fff" image_width=180 image_height=350 image_opacity=1] [connections category_name="ABC" name_format="%first% %last%, %suffix%" background_color="#0e8a8a" color="fff" image_width=180 image_height=350 image_opacity=1]Any ideas on how to fix this?
As a related aside, how do I edit the template for the individual detail page? I want to change where the picture is located on the page.
09/06/2016 at 10:08 am #389675Steven Zahm
Keymaster@ Lynette
re: The directory displays perfectly, but when I click on the “View Profile” link on the second set of directory listings, I get a page with the individual’s name and “No Results” where the bio should be.
Can you please share a link to the directory page with the issue? Thanks!
re: how do I edit the template for the individual detail page? I want to change where the picture is located on the page.
You would edit the
card-single.phpfile found in this folder:
../wp-content/plugins/connections-gridder/If you edit this file, make sure to place the edited file as described in the custom template override file tutorial.
09/07/2016 at 7:22 pm #390143Lynette Lau
ParticipantHi Steven,
The directory page with the issue is located here: http://www.uc-lend.org/faculty
Also, is there a way to adjust the font size on the overlay in gridder?
Thanks!
09/08/2016 at 11:30 am #390267Steven Zahm
Keymaster@ Lynette
re: The directory displays perfectly, but when I click on the “View Profile” link on the second set of directory listings, I get a page with the individual’s name and “No Results” where the bio should be.
Ok, now that I can see the page and know what the shortcodes are … this makes sense.
When you click the on the “View Profile” link even though the URL in the address bar changes you do not actually leave the page you are on. When viewing the profile page, only the first shortcode is used all others are ignored. Since only the first shortcode is used and the4 entry is not in the category limited shortcode you get the no results message since that entry is not in the defined category. Hope that make sense.
You can do what you want but it requires a two page setup.
- Create a child page under the “Faculty” page named “Person”.
- The page content of this new page should be the
[connections]shortcode with no options. - Take note of the Page ID assigned to the page by WordPress. You will find it in the browser’s address bar when editing the page.
- Edit the “Faculty” page and add the
home_id=xto the existing shortcodes.xshould be the Page ID of the “Person” page.
With the above steps completed, the links for the “View Profile” will now resolve to the “Person” page where there is only a single shortcode instance with no limitations so all entries will display as expected.
re: is there a way to adjust the font size on the overlay in gridder?
Sure, you can use CSS to change it to any size you wish. Add the following to the theme’s custom CSS area:
#cn-gridder .cn-gridder-overlay .fn, #cn-gridder .cn-gridder-name .fn { font-size: 12px !important; } #cn-gridder .cn-gridder-overlay .title, #cn-gridder .cn-gridder-name .title { font-size: 10px !important; }Tweak as desired.
Hope that helps. Let me know.
09/08/2016 at 12:55 pm #390300Lynette Lau
ParticipantHi Steven,
Yes, that helped immensely and is almost working perfectly now! The only question remaining is that once I load the individual detail page, when I click on “Go back to directory.” it brings me to the individual detail page with all the entries listed instead of the original Faculty page. The Faculty page is set as the directory page in Connections Settings. Is there a way to correctly redirect it folks back to the Faculty page when they click on “Go back to directory.”?
Thanks!
09/08/2016 at 2:23 pm #390358Steven Zahm
Keymaster@ Lynette
Sorry, the only solution I can think of is to turn off the back link so users will use the back button on their browser.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
