First, you are correct. There are no ‘featured’ entries in the website I mentioned. I don’t know which of the showcase sites I was looking at.
I have been trying to get some form of ‘featured’ entry working with the default ‘card’ template without success. IF THIS IS ALREADY AVAILABLE IN THE CMAP TEMPLATE, TELL ME AND i WILL STOP WORKING ON THIS AND BUY IT STRAIGHT AWAY.
Following your suggestion, I created a category called ‘Featured’with ID=1. I set up my directory page using a page editor to have 3 rows of image icons http://mauryg.com/newbpa/directory and linked each icon to a separate page with TWO shorcodes:
[connections category_in='1,x'] AND
[connections category=x exclude_category=1]
This worked perfectly to order the results with the featured ones on top (‘sticky’). For example http://mauryg.com/newbpa/directory/realtors.
BUT I also wanted to change the background color of the cards for the featured results. I had been able to add a box shadow to the cards by creating a ‘cn-custom.css’ file in my child theme folder, but I simply couldn’t find the correct CSS selectors to change the background color. Then I discovered that the background color was being set in the ‘card.php’ file in the template folder. So I figured I could use the template override option in the shortcodes to change the backgrund.
I copied the ‘card’ template folder to the plugin folder, named it ‘connections-card’, activated it and tested the background setting. That worked. I then created a second copy of the ‘card’ template, renamed it ‘connections-featured-card’ and activated it. I changed ‘card’ to ‘featured-card’ in the slug, the ID and the initOptions in the card-default.php file, but I keep getting a “ERROR: Template featured-card not found.” message on the results page.
WHAT AM I MISSING???