Field value in Search results, recognized as a URL link. #1185
Replies: 4 comments 2 replies
-
After some digging the code, I found, that the logic for listening this is already applied into Hajk via plausible-tracker module and the job is done in /new-client/src/components/app.js, at rows 397 - 409: ` * @summary Initiates the wanted analytics model (if any).
So, the question is it bug or there is some plugin, should be activated? |
Beta Was this translation helpful? Give feedback.
-
Hi! To extract values from the database, use curly brackets. For active links make sure the html a-tag is used. Examples in infobox:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, but for me it doesn't work, because, if I put {link} in Info click , Hajk omit other fields and values, an I got only the link in the search results.:
|
Beta Was this translation helpful? Give feedback.
-
Many thanks! It's working. |
Beta Was this translation helpful? Give feedback.
-
Hi, guys! I have made field in my PostgreSQL (string type), that have valid URL links inside. QGIS recognize the values as valid URL, but PgAdmin and Geoserver - no. This is just a regular string field.
I saw, that on the https://karta.halmstad.se/ there is active URL link in search results:
![image](https://user-images.githubusercontent.com/57766493/191918892-89b6b91f-3c64-40d1-b922-6c976c7a3fe8.png)
Is this a custom implementation of a functionality, or there is some settings in HAJK to point to a column values as URL link? I didn't find anything on the Admin Panel, or in the code for this.... It seem logical to have some event listener in HAJK, when you point on a value, but I can't find it.
I discovered, that there is an Infobox URL setting for a layer, but my question is about per feature basis URL, stored in a field. Because, sometimes, if you have object, who have a document, attached to the object (for example- some regulation or some PDF generated for this object) it will be good idea to recognize the values in some field as "link-to-attached doc", or just to have setting in Admin Panel, that setup a field as container for URLs
Beta Was this translation helpful? Give feedback.
All reactions