support home

Back to website
Welcome
Login  Sign up

Aggiungere un ID univoco ai box in partner directory

Salve, sarebbe molto utile aggiungere al codice HTML della pagina partner directory (https://www.iubenda.com/it/help/139949-partner-directory) un ID univoco per ogni box partner così da permettere l'aggiunta di link esterni che puntino direttamente nella pagina alla propria card.
Grazie


1 person has this problem
  • Salve, sarebbe possibile aggiungere un ID univoco al codice HTML di ogni box partner nella pagina della partner directory (https://www.iubenda.com/it/help/139949-partner-directory)? Questo permetterebbe di creare link esterni che puntano direttamente alla propria card. Questa funzione sarebbe molto utile per migliorare l'accessibilità e la navigazione. Grazie!

  • Marco, Great suggestion to add unique IDs to partner boxes in the iubenda partner directory! This would allow partners to create external links pointing directly to their specific card. Here are two options to consider: Custom ID Attributes: A simple approach is adding a custom ID attribute to each partner box in the HTML. This creates unique IDs like "partner-box-1" and "partner-box-2" for each box. Partners can then use these IDs to link directly to their cards: https://www.iubenda.com/it/help/139949-partner-directory#partner-box-1 https://www.iubenda.com/it/help/139949-partner-directory#partner-box-2 You can find a guide on adding custom attributes to HTML elements here: https://www.w3schools.com/html/html_attributes.asp. Data Attributes: Alternatively, you can use the data-id attribute to store a unique ID for each partner box. Partners would then use JavaScript to retrieve the ID and create links. This approach offers more flexibility but requires some JavaScript knowledge. While I can't provide specific JavaScript code here, further resources on using data-id attributes can be found online. Both options simplify information sharing for partners and improve user experience. Implementing this might require code changes and updating partner documentation, but the benefits outweigh the effort.

  • Thanks 

  • Adding unique IDs to partner boxes in the iubenda partner directory is indeed a fantastic suggestion! This enhancement could provide valuable functionality for partners looking to create direct external links to their specific card within the directory. Your proposal of using custom ID attributes in the HTML for each partner box is a straightforward and effective approach. By assigning unique IDs such as "partner-box-1" and "partner-box-2" to each box, partners can easily reference and link to their respective cards. This method not only simplifies the process for partners but also enhances the usability and accessibility of the directory as a whole. Thank you for your input,

  • Thanks for this feature.

  • Iubenda currently doesn't allow adding unique IDs to partner directory boxes. This makes it difficult to link directly to a specific partner's page from an external source.

    There are a few workarounds while they develop a native solution:

    Use HTML anchors with unique IDs within each box. You can then link to the partner's page using the anchor's ID in the URL.Utilize URL parameters. Add a "partner-id" parameter to the directory URL, with a unique value for each partner. This allows linking to specific partners through the URL with the parameter.

    tuneshare

    more_vert

Login or Signup to post a comment