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.
Tagged: 0.8.13, addresses, pagination
- This topic has 3 replies, 2 voices, and was last updated 12 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
07/17/2014 at 8:48 am #297309
Chris Cox
ParticipantHello.
Could use a bit of help here if you don’t mind.
I am going to create a new template based off of the free template. Being as it has everything I need for the “all” page instead of the market template that is at the entry page. There are only 2, I guess you could say big changes. 1, it needs to be paginated. The wordpress version doesn’t seem to work for this plugin. 2, I would like to limit the addresses displayed to only one address. Ideally it would show the preferred address and list how many other addresses are listed with the other city & states displayed. But right now I’m just happy to limit it to 1 address.
07/17/2014 at 9:52 am #297317Steven Zahm
Keymaster@ Chris
re: I would like to limit the addresses displayed to only one address. Ideally it would show the preferred address
To show just the preferred address this should work:<?php $entry->getAddressBlock( array( 'preferred' => true ) ); ?>re: list how many other addresses are listed with the other city & states displayed.
Sorry, I do not understand…re: pagination
Refer to the Market template on how it was enabled in themarket.phpfile. Lines 304-307, 417-423 and 468-471.Hope that helps!
07/18/2014 at 3:01 am #297379Chris Cox
ParticipantThat is awesomeness! Just made my day being able to just list the preferred address. :)
By other locations like this.
123 street
preferred address, ilAlso located in
Detroit, Las Vegas, Chicago, etc.07/21/2014 at 10:29 am #297651Steven Zahm
Keymaster@ Chris
I’ve thought about this for a couple days … there’s not a builtin way to do this easily. Maybe this is as close as it gets without having to write a custom function:
<?php $entry->getAddressBlock( array( 'before' => '<div class="cn-located-in"><div class="cn-located-in-label">Also located in</div>', 'after' => '</div>', 'format' => '%city%' ) ); ?>You would then have to use some CSS to get the layout you want. The list would still include the city from the preferred address. Other than this, this gets you really close.
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
