Does this new realse have option to display album depending on Categories.

Last post 05-02-2010, 4:13 AM by MypeLypeemend. 4 replies.
Sort Posts: Previous Next
  •  04-22-2010, 11:32 AM 60316

    Does this new realse have option to display album depending on Categories.

    How can we specify categoryid to get the required categories.Let say if we have 4 categories inside a Album


    <album id="AlBum" name="(Default Album)" nextcategoryid="5" lastPhotoTime="2009-11-23 18:46:30">

    <category id="1" />

    <category id="2" />

    <category id="3" />

    <category id="4" />

    </album>
     
    How can we display only category 2 and 4.
     
    Thnaks & Regards
    Sekhar

  •  04-22-2010, 4:46 PM 60331 in reply to 60316

    Re: Does this new realse have option to display album depending on Categories.

    Dear
     
    Please open file \CuteSoft_Client\Gallery\Layout\Explorer\Code.js,  locate "GalleryLayout.prototype.DrawUI=function _GalleryLayout_DrawUI()", Update:
    for(var i=0;i<this._categories.length;i++)
      {
       var c=this._categories[i];
       var div=this.CreateItemDiv(c,null,(c.Title||GalleryLocalize.DEFAULTCATEGORYNAME)+" ("+c.Photos.length+")",folderthumb,128,128);
       this.AttachItemEvent(container.appendChild(div));
      }
     
    to:
     
      for(var i=0;i<this._categories.length;i++)
      {
       var categoryID = this._categories[i].CategoryID;
       if(categoryID==1||categoryID==4)
       {
        var c=this._categories[i];   
        var div=this.CreateItemDiv(c,null,(c.Title||GalleryLocalize.DEFAULTCATEGORYNAME)+" ("+c.Photos.length+")",folderthumb,128,128);
        this.AttachItemEvent(container.appendChild(div));
       }
      }
     
    Regards,
    Eric
  •  04-26-2010, 3:28 PM 60416 in reply to 60331

    Re: Does this new realse have option to display album depending on Categories.

    Hi Eric
     
    Thanks for the solution.Its working,but when i open the view source it lists all the categories that i have created with all the images with path so these kind of restriction is not valid.Is there any work around that we can do for it.
     
    thanks &  regrds
    Sekhar
  •  04-26-2010, 10:58 PM 60435 in reply to 60416

    Re: Does this new realse have option to display album depending on Categories.

    Sekhar,
     
    The category function is design for end-users.
     
    Developer shall use GalleryFolder to make server-side categories.
     
    But our samples is not clear enough for that ideas.
     
    We will improve that to let developers feel easier.
     
    Regards,
    Terry
View as RSS news feed in XML