SHELL4CONFIG changes

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 13:24

Important: apply the changes only if your system uses a custom configuration, and you are upgrading it. If you are installing a new 2.3 or newer system, using the standard default configuration, then there is no need to change anything - the system is Link Assistant ready.

Directory style LinkAssist

The new directory style was added to the <BaseQuery Name="Fred4Pages":

      <DirectoryStyle Name="LinkAssist" Height="1" Width="-1" 

       MinimumDetail="0" DefaultDetail="0" MaximumDetail="0" PrintStyleName="List" >

        <SortList>

          <Sort Name="Modified">

            <SortDescription PropertyName="[folderObject.modifiedDate]" IsAscending="false"/>

          </Sort>

          <Sort Name="Name">

            <SortDescription PropertyName="[folderObject.name]" IsAscending="true"/>

            <SortDescription PropertyName="[folderObject.folderRef.path]" IsAscending="true"/>

          </Sort>

          <Sort Name="Title">

            <SortDescription PropertyName="[folderObject.title]" IsAscending="true"/>

          </Sort>

          <Sort Name="instructions">

            <SortDescription PropertyName="[archiveObject.instructions]" IsAscending="true"/>

          </Sort>

          <!--<Sort Name="Body Length">

            <SortDescription PropertyName="[article.bodyNChars]" IsAscending="true"/>

          </Sort>

          <Sort Name="Images count">

            <SortDescription PropertyName="[article.nImgs]" IsAscending="false"/>

          </Sort>-->

        </SortList>

        <ColStyle Name="Name/Title" Width="120" Height="0" SortName="Name">

          <CellTemplate>

            <StackPanel VerticalAlignment="Top" Orientation="Horizontal">

              <l:Infopopup InfoId="{Binding Path=[folderObject.id]}" Margin="2 0 0 0" 

                 DirectoryStyleName="{Binding ObjectType.Name}">

                <l:ObjectTypeIcon MaxWidth="16" ObjectType="{Binding Path=ObjectType}"/>

              </l:InfoPopup>

              <TextBlock TextTrimming="WordEllipsis" Margin="4,0,4,0" VerticalAlignment="Top" 

               HorizontalAlignment="Left" Text="{Binding Path=[folderObject:descName]}"/>

            </StackPanel>

          </CellTemplate>

        </ColStyle>

        <ColStyle Name="Info" Width="50" Height="0">

          <CellTemplate>

            <StackPanel VerticalAlignment="Top" Orientation="Horizontal" HorizontalAlignment="Left">

              <l:InfoPopup InfoId="{Binding Path=[folderObject.id]}" VerticalAlignment="Top" DirectoryStyleName="Link"

                Visibility="{Binding Path=[linkObject.pageLayers], Converter={StaticResource NullValueConverter}, ConverterParameter=Collapsed:Visible}"

                ToolTipData="{Binding Path=[linkObject.pageLayers]}">

                <l:ConfigIcon IconName="tlb_link" Size="16"/>

              </l:InfoPopup>

              <l:InfoPopup InfoId="{Binding Path=[folderObject.id]}" VerticalAlignment="Top" DirectoryStyleName="Publish"

               Visibility="{Binding Path=[folderObject:Referencing( pubDest.objs )], Converter={StaticResource NullValueConverter}, ConverterParameter=Collapsed:Visible}">

                <l:ConfigIcon IconName="tlb_web" Size="16"/>

              </l:InfoPopup>

              <l:InfoPopup InfoId="{Binding Path=[folderObject.id]}" VerticalAlignment="Top" DirectoryStyleName="Assigns"

               Visibility="{Binding Path=[linkObject.assigns], Converter={StaticResource NullValueConverter}, ConverterParameter=Collapsed:Visible}">

                <l:ConfigIcon IconName="tlb_assignment" Size="16"/>

              </l:InfoPopup>

              <l:SubCheckOutIndicator Value="{Binding Path=[article:SubCheckOutInfo]}">

                <l:ConfigIcon IconName="t_user"/>

              </l:SubCheckOutIndicator>

            </StackPanel>

          </CellTemplate>

        </ColStyle>

        <ColStyle Name="Body Length" Width="60" Height="0" SortName="Body Length">

          <CellTemplate>

            <StackPanel Orientation="Horizontal">

              <TextBlock Text="&#xE25C;" FontFamily="Segoe UI Symbol"/>

              <TextBlock VerticalAlignment="Top" ToolTip="Body characters count" Text="{Binding Path=[article.bodyNChars]}" 

                         Margin="4 0 0 0"/>

            </StackPanel>

          </CellTemplate>

        </ColStyle>

        <ColStyle Name="Images" Width="50" Height="0" SortName="Images count">

          <CellTemplate>

            <StackPanel Orientation="Horizontal" Visibility="{Binding Path=[article.nImgs], 

             Converter={StaticResource NullValueConverter}, ConverterParameter=Collapsed:Visible}">

              <TextBlock Text="&#xE114;" FontFamily="Segoe UI Symbol"/>

              <TextBlock Text="{Binding Path=[article.nImgs]}" ToolTip="Images count"  Margin="4 0 0 0"/>

            </StackPanel>

          </CellTemplate>

        </ColStyle>

        <ColStyle Name="Modified" Width="110" Height="0" SortName="Modified">

          <CellTemplate>

            <l:TimeAgoBlock VerticalAlignment="Top" Text="{Binding Path=[folderObject.modifiedDate]}"/>

          </CellTemplate>

        </ColStyle>

      </DirectoryStyle>

Search panel LinkAssist

The new search panel is added to the <BaseQuery Name="Fred4Pages":

      <searchObjectUI name="LinkAssist" defaultDirectoryStyleName="LinkAssist">

        <attribute path="FullText">

          <ui labelPosition="Side" label="FullText">

            <template kind="FullText" opMode="Normal" />

          </ui>

        </attribute>

        <attribute path="[article.name]" op="Containing">

          <ui mode="Normal" labelPosition="Side">

            <template kind="Single" opMode="Hidden" />

          </ui>

        </attribute>

        <attribute path="[article.title]" op="Containing">

          <ui mode="Normal" labelPosition="Side">

            <template kind="Single" opMode="Hidden" />

          </ui>

        </attribute>

        <attribute path="[article.folderRef]" mode="Normal" op="InSubtree">

          <ui labelPosition="Side" refAttributes="folderParent" orientation="Horizontal">

            <extFilter xquery="not(fn:in(@folderKind, 'wires', 'archive'))" />

            <template kind="Tree" opMode="Hidden" hideFilteredChildren="true" displayCompletePath="true" />

          </ui>

        </attribute>

        <attribute path="[article.cats]" />

        <attribute path="[article.contentPosition]" />

        <attribute path="ObjectType.Id" mode="Hidden" op="InSubtree">

          <ui labelPosition="Side" label="Type">

            <template kind="ListBox" objectTypes="article" opMode="Hidden" />

          </ui>

        </attribute>

        <attribute path="[article.isLinked]">

          <ui label="Linked">

            <template kind="CheckBox" opMode="Hidden" />

          </ui>

        </attribute>

        <attribute xquery="nav:referencing/nav:referencingBy[@attrName='pubDest.objs']/nav:refs/nav:refObject/gn4:pubDest">

          <ui mode="Normal" label="Published" labelPosition="Side" />

        </attribute>

        <attribute path="[article.bodyNChars]">

          <template kind="Single" opMode="Hidden" />

        </attribute>

        <attribute path="[article.nImgs]" >

          <ui mode="Normal" label="Images count" labelPosition="Side" />

        </attribute>

        <!--<attribute path="[article.bodyNChars]">

          <ui labelPosition="Side" label="Chars">

            <template kind="Single" objectTypes="article"/>

          </ui>

        </attribute>-->

        <extFilter xquery="not(fn:in(@folderKind, 'wires', 'archive')) and fn:in(@nav:objectType, 'article', 'img', 'story', 'image', 'video', 'audio', 'mediaGallery')" />

      </searchObjectUI>

Note about fonts

See Microsoft Windows changes.

Reimporting configuration file after changes

See Import a configuration from a file.