• Resolved TxFig

    (@txfig)


    I added the certification plugin and customized it. Basically there is a “yes/no” question for all of our entries of “Do you carry liability insurance?”

    On the display page (using cMap template), I would like it that IF a person has that box checked in their entry, for it to display somewhere on their card. Probably the best place to display this is on the same line as “Show Bio | Show Notes”.

    How can I get this certification to display?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    Please navigate to the Connections Settings admin page and click the Display tab.

    Scroll down to the “Results List Content Blocks” section and enable the “Certifications” option.

    Next, scroll down to the “Single Entry Content Blocks” section and enable the “Certifications” option.

    Save the changes.

    The certifications attached to the Entry will display in both the list results and the Entry detail/profile pages.

    To change the placement into a custom location within the template would require altering the PHP code of the template.

    I hope this helps!

    Thread Starter TxFig

    (@txfig)

    Ok, yeah – that worked. I would like to get rid of the GIANT header text and just have the single line (bullet format is nice) showing the certification.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    The certification heading would be styled according to the theme. To hide the heading, use CSS.

    Thread Starter TxFig

    (@txfig)

    Actually, I decided to go with the Tile Plus theme. It isn’t showing the certification at all. How can I turn that on?

    And in the CSS, what style tag do I need to look for to turn the header of the certification off?

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Due to the very limited content area of the Tile Plus template, it does not display the Content Blocks in the list view. They are displayed on the entry detail/profile view.

    You can use either:

    .cn-entry-content-block-certifications h3 {
        font-size: 20px;
    }

    or

    .cn-entry-content-block-list h3 {
        font-size: 20px;
    }

    Use the form to target only the certifications heading. Use the latter to target all the Content Block headings (h3).

    Adjust the font-size value to suit.

    I hope this helps!

    Thread Starter TxFig

    (@txfig)

    What are “content blocks” .. as opposed to the other data in the db for each person?

    I set the card_height to be taller in order to allow for more room to include the certification using:

    [connections card_width=420 card_height=250]

    How hard would it be for someone (me?) to edit the TilePlus theme to get it to put the info I want in the “list view”.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    RE: What are “content blocks” .. as opposed to the other data in the db for each person?

    Content Blocks are “containers” that output custom entry metadata. The available block will depend on the addons that are installed. Examples include the open hours added by the Open Hours addon and the certifications added by the Certifications addon.

    The Content Blocks can be enabled on the Connections Settings admin page under the Display tab. You will find two sections. The Results List Content Blocks and the Single Entry Content Blocks. You can enable which to display in each template view. They can also be dragged and dropped in your desired order.

    RE: How hard would it be for someone (me?) to edit the TilePlus theme to get it to put the info I want in the “list view”.

    How hard? Sorry, that is not possible for me to answer.

    You would have to edit the card.php file found in this folder:

    ../wp-content/plugins/connections-tile-plus/

    Add the following line:

    $entry->getContentBlock( array(), $atts, $template );

    Add it after:

    if ( $atts['show_family'] )$entry->getFamilyMemberBlock();

    Note that this code will show all enabled Content Blocks and their heading.

    Displaying just the certification would be more difficult as it would require code similar to that found in the Certifications addon:

    I hope this helps!

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Sorry, I also wanted to mention that instead of editing the template plugin files, you should create a copy as a template override file instead. You want to do this so any changes you make will not be lost during an update:

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display line in cMap template with a certification’ is closed to new replies.