onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

Display Link Fields as Actual Links in Frontend #920

Open fredericalpers opened 1 month ago

fredericalpers commented 1 month ago

Display Link Fields as Actual Links in Frontend

Introduction

Currently, fields of the type "link" are displayed as plain text in the frontend, without functioning as actual clickable hyperlinks.

User Story

As a user, I want link fields (e.g. Socialmedia) to be rendered as clickable hyperlinks in the frontend so that I can easily navigate to external resources by clicking on them. The links should open in a new tab to preserve my current browsing session, and security attributes should be added to prevent security vulnerabilities.

Task / Requirements

yeneastgate commented 1 month ago

@fredericalpers Currently, I check on onOffice enterprise, the fields with "type = link" the API response is "type=text" => Please update the API to return the correct "type=link" for fields of the type "link" image image

fredericalpers commented 1 month ago

@yeneastgate please implement the the <a> and the attributes for the following fields:

Module: Contacts management Category: Contact

Module: Contacts management Category: Social media

Module: Contacts management Category: Administration:

yeneastgate commented 1 month ago

@yeneastgate please implement the the <a> and the attributes for the following fields:

@fredericalpers I got it, thanks!

yeneastgate commented 1 month ago

@fredericalpers Please take a look at my demo video and let me know your opinions. Thank you!

https://github.com/user-attachments/assets/72f79080-bfcc-4597-85af-ca97cd699ee7