Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6147

Add decorator on the scheduled publications pages in the sitemap

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 3.7
    • None
    • None

        [CMS-6147] Add decorator on the scheduled publications pages in the sitemap

        Was fixed in 4.2 templates
        and migration guide was edited

        Raphaël Franchet added a comment - Was fixed in 4.2 templates and migration guide was edited

        Laurence Aumeunier added a comment - - edited

        Try with the following configuration in your WEB-INF/param/sitemap-icons.xml file :

        <icon>
            <image plugin="default-sitemap">img/icons/scheduled_off.png</image>
            <conditions>
                <metadata type="OR">
                    <metadata name="publicationStartDate"></metadata> 
                    <metadata name="publicationEndDate"></metadata> 
                </metadata>
            </conditions>
        </icon>
        <icon>
            <image plugin="default-sitemap">img/icons/scheduled_on.png</image>
            <conditions>
                <metadata type="OR">
                    <metadata name="publicationStartDate"></metadata> 
                    <metadata name="publicationEndDate"></metadata> 
                </metadata>
                <live/>
            </conditions>
        </icon>
        

        NB: Note that we can not know if the publication is forthcoming or past.

        Refer to wiki documentation for more information on decorators : https://wiki.ametys.org/pages/viewpage.action?pageId=30540209

        Laurence Aumeunier added a comment - - edited Try with the following configuration in your WEB-INF/param/sitemap-icons.xml file : <icon> <image plugin= "default-sitemap" > img/icons/scheduled_off.png </image> <conditions> <metadata type= "OR" > <metadata name= "publicationStartDate" > </metadata> <metadata name= "publicationEndDate" > </metadata> </metadata> </conditions> </icon> <icon> <image plugin= "default-sitemap" > img/icons/scheduled_on.png </image> <conditions> <metadata type= "OR" > <metadata name= "publicationStartDate" > </metadata> <metadata name= "publicationEndDate" > </metadata> </metadata> <live/> </conditions> </icon> NB: Note that we can not know if the publication is forthcoming or past. Refer to wiki documentation for more information on decorators : https://wiki.ametys.org/pages/viewpage.action?pageId=30540209

          Unassigned Unassigned
          lperier Laurence Perier
          Votes:
          3 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved: