Showing posts with label Hybris. Show all posts
Showing posts with label Hybris. Show all posts

Wednesday, 27 November 2013

Hybris Initialize output to log file

Debugging an intialise can be tricky, using the command line output. This command allows the output to be written to a file:

ant initialize > some.file

to append the output to an existing file use this command:

ant initialize >> some-existing.file


Monday, 2 September 2013

Use Code (or something more meaningful) instead of PK in Hybris HMC Editor

By default, when you create and specify an item type in the hmc.xml, the PK will be displayed as the item's identifier. This may not always be appropriate, for example when referencing a user. To use another property as the displayed identifier, i.e the email, use the following construct:

<type>
.
.
.

   <defaultreference mode="replace">
      <itemlayout>
         <attribute name="someOtherPropertyName"/>
      </itemlayout>
   </defaultreference>
</type>

Thursday, 4 July 2013

Select localized value using Flexible Search

If you need to return a localized value from a Hybris Flexible Search, use the example syntax below, placing the locale code in square brackets after the field name:

select {title[en]} from {CMSNavigationNode}