Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mitra 81 posts 196 karma points
    Oct 29, 2013 @ 13:25
    Mitra
    0

    News archive

    I have built a website. it has got a news system. I have to be able to archive them yearly and monthly, like below. I have never done it before. any suggestion?
    Many thanks in advance.

    2012 - 2013 - 2014

  • Mitra 81 posts 196 karma points
    Oct 31, 2013 @ 13:16
    Mitra
    0

    I am trying to use the DateFolder and UNews packages to create news archive in a website. but I am not sure what i have to do. I have installed the both package, put the codes in config as below:

        <add key="uNews:CreateDocTypes" value="news" />
    
        <add key="uNews:RemoveCreateDocTypes" value="DateFolder" />
    
        <add key="datefolders:ItemDocType" value="newsitems" />
        <add key="datefolders:DateFolderDocType" value="DateFolder" />
        <add key="datefolders:ItemDateProperty" value="uNewsDate" />
    

    I have created DateFolder in Document type, then i created a page called Main News in content, but then i cannot create any child for this folder in order to put the news.

    anybody can help me here?

  • Mitra 81 posts 196 karma points
    Oct 31, 2013 @ 13:18
    Mitra
    0

    I am trying to use the DateFolder and UNews packages to create news archive in a website. but I am not sure what i have to do. I have installed the both package, put the codes in config as below:

            <add key="uNews:CreateDocTypes" value="news" />

            <add key="uNews:RemoveCreateDocTypes" value="DateFolder" />

            <add key="datefolders:ItemDocType" value="newsitems" />
            <add key="datefolders:DateFolderDocType" value="DateFolder" />
            <add key="datefolders:ItemDateProperty" value="uNewsDate" />

    I have created DateFolder in Document type, then i created a page called Main News in content, but then i cannot create any child for this folder in order to put the news.

    anybody can help me here?

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Nov 03, 2013 @ 13:01
    Chriztian Steinmeier
    0

    Hi Mitra,

    Do you need to physically archive them in folders in Umbraco, or do you just need to be able to display them by year and/or month?

    /Chriztian

  • Mitra 81 posts 196 karma points
    Nov 05, 2013 @ 08:19
    Mitra
    0

    Thanks for your reply. I used UNews and DateFolder and finally I was successful to archive and show the news. 
    Now I have got another question.  
    I have a variable (@nodename) something like this 09111006. How can i separate this number in an array or something like that in a xslt file. I need to separate every two digit as they show the months, and then say if it contains for example 11, put Nov is on. 

    Mitra

     

     

Please Sign in or register to post replies

Write your reply to:

Draft