Beispiel #1
0
    private List<Item> getList()
    {
        var man = new PigeonCms.ItemsManager<Item, ItemsFilter>(false, false);
        var filter = new PigeonCms.ItemsFilter();
        filter.CategoryId = Acme.Settings.SampleCatId;
        var list = man.GetByFilter(filter, "");

        return list;
    }
Beispiel #2
0
    /// <summary>
    /// load items in specified category example checking user context 
    /// </summary>
    private void loadList()
    {
        var man = new PigeonCms.ItemsManager<Item, ItemsFilter>(true, false);
        var filter = new PigeonCms.ItemsFilter();
        filter.CategoryId = Acme.Settings.SampleCatId;
        var list = man.GetByFilter(filter, "");

        Rep1.DataSource = list;
        Rep1.DataBind();
    }