Changes for page Public Web Site
Last modified by Alex Cotiugă on 2025/11/27 10:42
From version 3.62
edited by Alex Cotiugă
on 2025/11/24 12:33
on 2025/11/24 12:33
Change comment:
There is no comment for this version
To version 3.59
edited by Alex Cotiugă
on 2025/11/24 12:32
on 2025/11/24 12:32
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -173,11 +173,12 @@ 173 173 #end 174 174 175 175 #macro (displayFormFromSheetCode) 176 - #set ($editing = t rue)176 + #set ($editing = $xcontext.action == 'edit') 177 177 ## The object to display. 178 178 #set ($xobject = $doc.getObject('Agnease.Code.Lead.LeadClass')) 179 179 ## The class that describes the object properties. 180 - #set ($xclass = $xwiki.getClass('Agnease.Code.Lead.LeadClass')) 180 + #set ($xclass = $xwiki.getXWikiClass('Agnease.Code.Lead.LeadClass')) 181 + $xclass 181 181 ## Make sure the following display* method calls use the right object. 182 182 #set ($discard = $doc.use($xobject)) 183 183 ## Using the xform vertical form layout. ... ... @@ -184,7 +184,7 @@ 184 184 <div class="xform"> 185 185 <dl> 186 186 #foreach ($property in $xclass.properties) 187 - <dt #if (!$editing) 188 + <dt #if (!$editing && $hasEdit) 188 188 class="editableProperty" 189 189 #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name)) 190 190 data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))"