Closed (fixed)
Project:
Cartaro
Version:
7.x-1.0-beta7
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2012 at 02:58 UTC
Updated:
6 Sep 2017 at 19:27 UTC
Jump to comment: Most recent
Comments
Comment #1
friedjoff commentedTry to edit the SQL that generates the SQL view for the GeoServer layer and name one column "name" and another one "description" (Administration > Structure > GeoServer > Layers > edit > Layer Specifics > SQL).
See also Theming OpenLayers.
Comment #2
mtoscano commentedDon't know if IKE0088 accomplish it, but I don't understand where in the SQL query I should name one column "name" and another one "description" , can you please add an example?
Thanks
Comment #3
friedjoff commentedHere is a SQL query as an example:
In this case column node.title and body_summary are affected. New Cartaro versions generate these column names by default.
Comment #4
ulim commentedClosing. Seems there were no more questions left.
Comment #5
kaladatsch commentedThanks for the clarification. Title and description work perfectly in the new beta, but how to create an node hyperlink in the popup? (as in Switzerland map on demo.cartaro.org)
Any ideas?
Comment #6
kaladatsch commentedComment #7
friedjoff commentedYou can build a hyperlink to the node page, using the id column from the GeoServer layer and a custom theming function. If you have configured URL aliases for nodes, you will need to join the path alias table in the GeoServer SQL configuration.
Comment #9
rinckoar commentedComment #10
rinckoar commentedHi, can I use more than one column in description? if the answer is yes, can you tell me how please?. Thanks