There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8ac7edf7-d824-4e73-96a5-6a5fcd988db9 XWIKI-23611 Open

Form data within a gadget are not saved.

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-4f8aab71-3e32-406d-b6a0-b035eebd5134 Changes by Marius Dumitru Florea on 23/Oct/25 11:13
 
Description: I created a simple macro to save their XWiki favorites in the users profile and show it in the menu:

{ \ noformat}
{ { velocity}}
#set($u=$xcontext.getUser())
#set($d=$xwiki.getDocument($u))
#set($o=$d.getObject("Macros.Favorites", 0))
#if("$!o" == "")
  #set($o=$d.newObject("Macros.Favorites"))
  #set($x=$d.save())
#end
#if("$xcontext.action" != "edit")
  $d.display("Links", "view", $o)
#else
  $d.display("Links", "edit", $o)
#end
{
\ {/velocity}}
{noformat}

The {{Macros.Favorites}} class contains the field {{{}Links{}}}, which is of type {{{}TextArea{}}}.

To enable easy access, the user added the Favorites macro as a gadget to their dashboard in the profile. This provided a simple way to save favorites within XWiki, which remained up to date even when the referenced page was moved.

Since the upgrade from XWiki 12.10.9 to 17.8.0, the entered data is no longer saved, and new favorites cannot be added.