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 4 replies, 3 voices, and was last updated 8 years, 3 months ago by
Susan Paigen.
-
AuthorPosts
-
09/03/2015 at 3:36 pm #345469
Susan
ParticipantHi Steve,
I have 3 unrelated questions – if you want me to submit separate tickets let me know.
1. I want to show 5 random entries from a particular category as a faculty spotlight section – since they’re random every visit or refresh will display a different selection. page_limit=’5′ order_by=’id|RANDOM’ works, but only if I leave pagination enabled, which I don’t want. Is there a way to do it without pagination?
2. Is there a way to have the bio section showing on page load with a shortcode option? Or to do the same thing with a custom field? I’m using a modified version of cMap, so I can edit the template, but I don’t want this change everywhere.
3. The template includes a line to ‘getContentBlock’, but there’s no corresponding field in the entry screen. Is there a way to enter ‘Content’?
Thanks, Susan09/03/2015 at 5:25 pm #345479Steven Zahm
Keymaster@ Susan
Lets see…
re: I want to show 5 random entries from a particular category as a faculty spotlight section – since they’re random every visit or refresh will display a different selection. page_limit=’5′ order_by=’id|RANDOM’ works, but only if I leave pagination enabled, which I don’t want. Is there a way to do it without pagination?
Use this shortcode instead:
[connections limit='5' order_by='id|RANDOM']
re: Is there a way to have the bio section showing on page load with a shortcode option? Or to do the same thing with a custom field? I’m using a modified version of cMap, so I can edit the template, but I don’t want this change everywhere.
When you say, “I don’t want this change everywhere.“; does that mean you only want it “open” for specific entries? I’d say this would be possible with custom fields. In pseudo code… if ‘custom field’ equals true then show “bio field”. Is that what you want?
re: The template includes a line to ‘getContentBlock’, but there’s no corresponding field in the entry screen. Is there a way to enter ‘Content’?
Content block do not refer to a field rather that is a pluggable dynamic section. For example both the Contact extension and the Hours extension add content blocks which can be enabled and ordered on the Connections : Settings admin page under the Display tab. The Contact extension would show its content block if enabled and the business hours would show if it is enabled. Hope that makes sense!
09/03/2015 at 5:40 pm #345484Susan
Participantlimit=’5′ – that’s it!!
re: Is there a way to have the bio section showing on page load with a shortcode option . . . I don’t want this change everywhere. – does that mean you only want it “open” for specific entries?
I want it open on specific pages/lists. All the other places I’m currently using this template by shortcode I want the default behavior, where you click the Show Bio link to see the bio. On the page I’m currently working on I probably need the bios to show by default.
Thanks, Susan09/03/2015 at 5:52 pm #345488Steven Zahm
Keymaster@ Susan
re: I want it open on specific pages/lists. All the other places I’m currently using this template by shortcode I want the default behavior
Hmmm… the only way I can think of doing this is by adding your own custom shortcode option.
Look at how the
enable_bio_head
is created and setup in the PHP files for the template. When you have a new shortcode option added you can then check for it in thecard.php
file. If it is true you can set thecn-bio-tray
div
to display as ablock
rather thannone
.Is that enough direction to get you on your way?
09/08/2015 at 2:06 pm #346002Susan Paigen
GuestI’ll work on the template modification, probably have more questions when I get into it!
Thanks for the info, Susan
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.