Menu

Portal modify/edit interface

Sean Guo
2025-09-22
2025-10-01
  • Sean Guo

    Sean Guo - 2025-09-22

    Hello,

    I have been testing/playing with portals recently and I am wondering if it's possible to have the same ability to edit an object in the portal interface as the regular interface. I am asking this because in the regular interface I was able to edit all the non read-only fields from a class but not in the portal interface even though I specified <opening_mode>edit</opening_mode> in my brick setup like below:

    <brick id="locs" xsi:type="Combodo\iTop\Portal\Brick\ManageBrick"
              _delta="define">
              <active>true</active>
              <rank>
                <default>13</default>
              </rank>
              <width>6</width>
              <title>
                <default>Brick:Portal:UserProfile:locs</default>
              </title>
              <description>Brick:Portal:UserProfile:locs+</description>
              <decoration_class>
                <default>fc fc-ongoing-request fc-2x</default>
              </decoration_class>
              <oql><![CDATA[SELECT Location]]></oql>
              <opening_target>modal</opening_target>
              <opening_mode>edit</opening_mode>
              <fields>
                <field id="name" />
              </fields>
              <grouping>
                <!-- Mandatory -->
                <tabs>
                  <show_tab_counts>true</show_tab_counts>
                  <groups>
                    <group id="opened">
                      <rank>1</rank>
                      <title>Brick:Portal:OngoingRequests:Tab:OnGoing</title>
                      <condition><![CDATA[SELECT Location]]></condition>
                    </group>
                    <group id="resolved">
                      <rank>2</rank>
                      <title>Brick:Portal:OngoingRequests:Tab:Resolved</title>
                      <condition><![CDATA[SELECT Location]]></condition>
                    </group>
                  </groups>
                </tabs>
              </grouping>
              <data_loading>full</data_loading>
              <export>
                <export_default_fields>true</export_default_fields>
              </export>
     </brick>
    

    I made sure the user profile has the full access to the Location class and still there are no editable fields presented in the portal. I would appreciate if someone can provide some insight on this topic!

     
  • Vincent @ Combodo

    Out of the box, in the standard portal, there is no scope defined for the Location class.
    It is not enough to define a Brick, you should also
    * Define a Form, to specify which fields of the Location you want to display and allow to edit
    * Define the Scope read and write for the Location Class

    Remember that out of the box in a Portal nothing is allowed unless you explicitly allow it.

    There are tutorials on how to adapt the Portal, but it's clearly not the easiest part...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.