Closed (duplicate)
Project:
Location
Version:
5.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2007 at 02:33 UTC
Updated:
19 Oct 2008 at 07:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
mcurry commentedSince ed_classified doesn't provide location information, I assume that you are using location.module. The placement of the location information is controlled by the location module 'weight' settings for the classified ads content type.
You need to set the "Locative Information" under /admin/content/types/ed-classified - you will see a collapsible field set with settings for the Location module specific to the 'classified' content type. In that collapsible field set, you can change the 'weight' of the location information to a higher number, for example, 8, which will place the location information at the bottom.
I haven't tested this on Drupal 5 version of the classified ads module.
Comment #2
jodo commentedThanks for your prompt reply. I had the location weight set to 9. Perhaps I need to clarify my problem.
After posting an ad with a location the output/appearance of the ad is:
Title
post date
Location(s)
Name
Street
City
Country
See google maps
Buy my trick pony....ad content
I want the ad content on top with the Location(s) etc below.
Again, thanks for your quick response and for your fine module.
Comment #3
mcurry commentedI'm sorry, I'm not quite sure what you are asking for. Can you post a URL so we can see what you are talking about?
Here are examples of the results I get with the location module when used with classified ads - on Drupal 4.7:
(drill down; posting indirect links, ads expire but links from drupal.org don't)
Comment #4
mcurry commentedAnother question: what happens when you use the location module / gmap with other node types (book page, story, page, blog, etc.) Same or different results?
Please post a URL or email it to me: exodusdev [at] gmail.com
Comment #5
mcurry commentedAfter a quick inspection of the location module hook_nodeapi() view: section, it appears that the location module does not use the 'weight' setting when rendering the location content, thus making it impossible to control the placement of the 'Location(s)' block within the rendered node content.
In Drupal 4.7 version, it always appended the content to the end of the existing content, so the module weight could be used to control rendering.
Is there another way to control the 'Location(s)' block placement in the rendered node content?
I think that the locations module should set the '#weight' value in the rendered content in Drupal 5. Something like this should do the trick: (Note: I've not tested this, so I'm not sure if the code is correct).
See: http://drupal.org/node/64279#node-view
Comment #6
binford2k commentedpatch for solution suggested above. It works for me.
Comment #7
ray007 commented*Bump*
I think the added line should be a few lines lower before the closing bracket of
if (variable_get('location_display_location', 1)) { ..., but a fix like this is needed.My current diff would look like this:
And I think setting the weight there is fixing a bug, not a new feature.
Comment #8
scottrigbysorry - I solved my problem (is there a way to delete posts?).
anyway, this is solved in the content type not through managing the fields but in the "Edit" tab, then "Locative information", then set weight.
Don't know why this isn't just editable in the "manage fields" section. However, it works.
Comment #9
bdragon commentedMarking as duplicate of http://drupal.org/node/47831.
Please followup there.
Thanks.
Comment #10
end user commentedHaving the same problem with D5.11 and Location 5.x-3.0-rc1 and 5.x-3.0-dev and also with D6