Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Directory: functionality
New Landing › How can we help? › Cardinal › Directory: functionality
- This topic has 15 replies, 3 voices, and was last updated 8 years by Rui Guerreiro – SUPPORT.
-
Posted in: Cardinal
-
March 13, 2015 at 3:40 pm #157194
Hi Guys,
Thanks for adding the custom excerpt to the directory, but there are a few items I think still need some ironing out.
- Control of the listing order, I would like to be able to use alphabetic
- The Pin link now opens in a new window, this is OK for directions, but not OK for links within the site
- It would be great if the Pin title would like to the directory listing
- There is a div with a class of excerpt showing up in all the pins, but there is no option to include any text
- Would also be nice to be able to style the single directory map to match that on the directory page
March 13, 2015 at 3:44 pm #157196Hi,
Thanks again for your suggestions, will forward it to Ed so we can possible consider it in a future update.
Just have one doubt, what exactly you mean about styling the map in the Single directory page?
Thanks
-Rui
March 13, 2015 at 3:52 pm #157203Rui,
I have chosen to use a mono coloured map on my directory page and it fits in nicely with by black and white design. But when you go to any single directory listing the map is in full colour and unfortunately for me ends up being the brightest item on the page. Would like to make it mono coloured as well.
March 13, 2015 at 4:04 pm #157209ah, ok. You can change it for now in your theme version.
Go to the file located in “cardinal/swift-framework/layout/single-directory.php”In the line 97 you will see an code that it’s the shortcode to display the map in the single directory page.
That line start like this:
<?php echo do_shortcode('[spb_gmaps size="400" type="roadmap" zoom="14" saturation="color" fullscreen="yes" width="1/1" el_position="first last"]
In your specific situation replace
saturation="color"
bysaturation="mono-light"
-Rui
March 13, 2015 at 4:57 pm #157229Thanks will give it a try.
March 13, 2015 at 5:21 pm #157239Ok. It should work.
-RuiSeptember 25, 2015 at 9:53 am #216393hi there
searching for a simpel way to get the directory listing full width
page builder aktiv
kind regardsBK
September 25, 2015 at 9:58 am #216395September 25, 2015 at 10:28 am #216399This reply has been marked as private.September 25, 2015 at 10:30 am #216400This reply has been marked as private.September 25, 2015 at 10:38 am #216403This reply has been marked as private.September 25, 2015 at 10:44 am #216407Add the code below to your custom css option.
.directory-results { width: 100%!important; padding-left: 0px!important; padding-right: 0px!important; }
Regarding the size of the map, you can change it inside the file single-directory located at cardinal/swift-framework/layout
Find this line and replace the 400 by your desired value.
<?php echo do_shortcode('[spb_gmaps size="400" type="roadmap" zoom="14" saturation="color" fullscreen="yes" width="1/1" el_position="first last"] [spb_map_pin pin_title="' . get_the_title() . '" address="' . $map_address .'" pin_latitude="' . $map_lat_cord . '" pin_longitude="' . $map_lng_cord . '" pin_image="' . $map_pin . '" pin_link="' . $map_pin_link . '" pin_button_text="' . $map_pin_button_text . '" width="1/1" el_position="first last"][/spb_map_pin] [/spb_gmaps]'); ?>
-Rui
September 25, 2015 at 10:56 am #216415thx Rui
get this message form CSSuse of !important
values of 0 shouldn’t have units specified.directory-results {
width: 100%!important;
padding-left: 0px!important;
padding-right: 0px!important;
}September 25, 2015 at 11:30 am #216428Don’t worry with those warnings, this is how it should be done.
-Rui
September 25, 2015 at 11:32 am #216430Cheers
hav a nice day Rui -
Posted in: Cardinal
You must be logged in to reply to this topic.