Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Nov 2008 at 17:30 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tpaschke commentedSimilarly to above post, I would like to change the styling of the location output.
Using GMap and Location modules (most current version) on Drupal 6.6. Was able to determine that the "vcard" class is a well-used php code. I tracked down the php that generates the "Location" export (location.tpl.php):
So, from what I can deduce (admittedly ill-informed with script aspects of Drupal - relatively new user, but I like to dig in), depending on how you are using GMap (and additional GMap add-ons) and Location modules, jQuery generates the text from the location input and passes it through location.tpl.php. I also CANNOT find any CSS to control the styling of this output (I have checked all CSS references on a given page - no luck).
I, as well, would like to add a simple between multiple location entries at minimum. This must be an easy fix, but I don't know how to do it.
Any more seasoned users have some helpful hints? I have attached a screenshot of my situation...and I think it's similar to the above post. The page in question is: http://mwrm2009.org/iowa-city if that helps. Thanks for your patience!
Comment #2
summit commentedSubscribing, wanting to theme location also.
greetings,
Martijn
Comment #3
yesct commentedMonths ago, I used contemplate to get the location data to display the way I wanted...
Comment #4
zirafa commentedI believe this issue is also related...(can't form_alter the forms)
Comment #5
SeanA commentedOK, here's what I'm doing to theme the location. The patch
Applies for 6.x and 5.x. Addressing the original question, if you want to put a break between multiple locations, it looks like that would go in locations.tpl.php (not the same as above file, note the 's'). Something like this:
Comment #6
SeanA commentedHere are the styles to copy into your theme's style.css.
Comment #7
SeanA commentedAny feedback on the patch in #5? It's meant to fix a few issues related to theming the location output. Would it be better to create separate issues and deal with them individually?
Comment #8
yesct commentedtagging
Comment #9
dyke it commentedthis worked really well for me. thank you!!!
Comment #10
yesct commentedYeah, I'm not sure about lumping all the fixes into one...
does this patch fix problems, or does it just format stuff the way you want it?
Does it break anything... like if people dont put in special css?
there is a good chance of getting some things committed, if a patch can be re-rolled to match the new 6.x-dev version (http://drupal.org/project/location)
Comment #11
SeanA commentedAt this point most of these issues have already been taken care of, or are being dealt with elsewhere. The last thing to do is remove the "placeholder" theming on the location name, which wraps the text in <em> tags (see http://api.drupal.org/api/function/theme_placeholder/6). I don't think there's any need to keep this around any more, since there's now a CSS class applied to the location name in location.tpl.php.
Comment #12
ankur commentedcommitted #11 to HEAD, DRUPAL-6--3