There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-63a0dee4-e520-48ae-977c-c67d8d249901 XWIKI-23574 Open

Add the concept of Documentation URL

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-8415465e-5b90-4d07-86a8-868b5a6b31f8 Vincent Massol on 06/Oct/25 13:26
 

I think we should reuse the "website" xproperty that already exist but just change the way it's displayed.

 
cid:jira-generated-image-avatar-8415465e-5b90-4d07-86a8-868b5a6b31f8 Vincent Massol on 06/Oct/25 13:27
 
I think we should reuse the "website" xproperty that already exist but just change the way it's displayed

Right now:

{noformat}
      ##------- Website --------------
      #set($website = $extension
. getProperty("website").value)
      #if ("$!website" != '')
        |(% class="label" %)Website(%%)|#if ($website.length() > 40)
                     [[$services.rendering.escape($services.rendering.escape($website.substring(0, 40), 'xwiki/2.1'), 'xwiki/2.1')...>>$services.rendering.escape($website, 'xwiki/2.1')]]
                     #else
                     [[$services.rendering.escape($website, 'xwiki/2.1')]]
                     #end
      #end
{noformat}