Skip to main content
Nintex Community Menu Bar
Question

Navigation Item Icon Property not applying merge syntax (Banzai 7.12)

  • July 9, 2024
  • 4 replies
  • 0 views
  • Translate

Forum|alt.badge.img+13

The Icon property of Navigation Items is not applying merge syntax. Merge syntax is applied on icon properties in other components (e.g. table row action, page title button, etc.) and the navigation item does apply merge syntax on the label property.

Applying merge syntax to icons was an enhancement in Spring '14 (https://community.skuid.com/t/skuid-should-process-merge-syntax-in-button-icons-to-all…) so it appears that it was overlooked with navigation items.

Steps to repro:

  1. Create page using sample XML below
  2. Preview page

Expected Result - cssclass attribute of nav item should include myicon-IDOFACCOUNT
Actual Result - cssclass attribute of nav item is “myicon-{{$Model.Account.data.0.Id}}”

** Sample page demonstrates merge syntax applied to icon property of page title.

Sample Page XML

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
      <model id="Account" limit="1" query="true" createrowifnonefound="false" sobject="Account">
         <fields>
            <field id="Name"/>
            <field id="CreatedDate"/>
         </fields>
         <conditions>
            <condition type="param" enclosevalueinquotes="true" operator="=" field="Id" value="id"/>
         </conditions>
         <actions/>
      </model>
   </models>
   <components>
      <navigation uniqueid="sk-3ZTCRF-97">
         <navigationitems>
            <navigationitem label="{{$Model.Account.data.0.Name}}" icon="myicon-{{$Model.Account.data.0.Id}}">
               <actions>
                  <action type="redirect" window="self"/>
               </actions>
            </navigationitem>
         </navigationitems>
      </navigation>
      <pagetitle model="Account" uniqueid="sk-3ZT0iH-67">
         <maintitle>
            <template>{{Name}}</template>
         </maintitle>
         <subtitle>
            <template>{{Model.label}}</template>
         </subtitle>
         <actions>
            <action type="multi" label="{{Name}}" icon="myicon-{{Id}}"/>
         </actions>
      </pagetitle>
   </components>
   <resources>
      <labels/>
      <css/>
      <javascript/>
   </resources>
   <styles>
      <styleitem type="background" bgtype="none"/>
   </styles>
</skuidpage>
Did this topic help you find an answer to your question?

Forum|alt.badge.img+11

Thanks for letting us know Barry. As per your bug report, this has been fixed. Additionally, for the sake of consistency, merge syntax support has been added to Tab Set icons as well.

Translate

Forum|alt.badge.img+13

Awesome catch on tab icons!  Thanks for taking care of this!

Translate

Forum|alt.badge.img+13

Tested and confirmed both Nav Item Icons and Tab icons support merge syntax as of Skuid 7.16.  Thank you!

Translate

Forum|alt.badge.img+20

hehehe … I was going to suggest both Conditional and merge syntax on Nav bar items. Here it is already.
https://community.skuid.com/t/conditional-rendering-of-navigation-items
Going to be sweet for a notification system.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings