Connections Business Directory
How to use more than once connections template on a page (4 posts)

  1. Jenny
    Posted 4 years ago #

    I am trying to use the tile template as well as the profile template on a single page. The page consists of a tabbed page section as well and although I specify a particular template per category using shortcode, only one template is applied to all categories listed on that page. How can I insert/use 2 different connection templates on different categories on a single page, using short code?

    This is the code I am currently using:
    [connections_list id='26,27,28,29,30,31,32' order_by='id|SPECIFIED' template='profile']
    [connections category_name='Intermediate Phase' template='tile']
    What is happening, with the above, is that the "Tile template" is applied to all categories, despite the short code being differen per individual categories.

    I urgently need to resolve this issue as the "main page" must show categories/connection lists with the "profile template" and the categories in the tabbed pages must be displayed with the "tile template"


  2. Jenny
    Posted 4 years ago #

    I have also tried using the code in the following variations, to no avail, each time, the tile template gets applied to all categories and connection lists.

    [connections_list id='26,27,28,29,30,31,32' order_by='id|SPECIFIED' template_name='profile']
    [connections category_name='Intermediate Phase' template='tile']

  3. shazahm1
    Plugin Author

    Posted 4 years ago #

    What you need to do is open the styles.css file for the Tile template and change the selectors so they only target the Tile template. Prefixing each style declaration with div.tile should be sufficient.

    Of note, the next version has been extensively re-worked to better accommodate using multiple templates on a single page.

  4. Jenny
    Posted 4 years ago #

    Hi Steven,

    Since I was working against a deadline and couldn't find the solution fast enough, I decided to use the tile template for all the sections on the page instead and the client is happy with it.

    But thank you for posting the solution, it is going to come in handy with future projects.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic