We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    hi
    All is in the question I think. It could be usefull in all none hierarchical value. How to sort results please?
      • 7923
      • 4,213 Posts
      I do not understand none of this.. sorry..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 34162
        • 1 Posts
        sorry I have learned zoulou befor english :p

        I take a case. A picture can belong to:

        • christmass
        • 2006
        • dady
        • funny

        How to display the same photo in these differents categories?
          • 7923
          • 4,213 Posts
          One picture can be just in one gallery for now.. picture tagging is not supported. You have to upload the same picture to each gallery to make that happen. It’s in my long todo list to make this possible though.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 34162
            • 1 Posts
            Ok Doze, it doesn’t matter for my tiny projet at this moment.

            One just one more question. I have seen I can use templates for the galleries. Do you think I can use a datagrid attached to a speciffic gallery, or best, for each image in my gallery. I want add some text areas like: author, dimensions, composition, year.

            A way please?
              • 7923
              • 4,213 Posts
              I think that the easiest way to do that now would be to add those fields in the maxigallery db table and modify the code to fill those fields..


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 34162
                • 1 Posts
                Well grin

                For the database, I add author, dimensions, composition as tables
                In line 35 in maxigallery.class.inc.php
                	//function to create table
                	//returns true or false indicating success
                	function createTable($pics_tbl) {
                		global $modx;
                		$sql="CREATE TABLE $pics_tbl (
                			`id` int(10) unsigned NOT NULL auto_increment,
                			`gal_id` int(10) unsigned NOT NULL,
                			`filename` varchar(50) NOT NULL,
                			`author` author NOT NULL,
                			`title` text NOT NULL,
                			`date` datetime NOT NULL,
                			`dimensions` dimensions NOT NULL,
                			`composition` composition NOT NULL,
                			`descr` text default NULL,
                			`pos` int(10) default NULL,
                			`own_id` int(10) default NULL,
                			`hide` int(1) default 0,
                			PRIMARY KEY  (`id`)
                	    ) TYPE=MyISAM AUTO_INCREMENT=1 ;";
                		$query1=$modx->db->query($sql);
                		return $query1;
                	}
                

                in line 575 in maxigallery.php :
                			$managePictureTplFieldNameData['delete'] = 'delete'.$i;
                			$managePictureTplFieldNameData['hide'] = 'hide'.$i;
                			$managePictureTplFieldNameData['position'] = 'pos'.$i;
                			$managePictureTplFieldNameData['author'] = 'author'.$i;
                			$managePictureTplFieldNameData['title'] = 'title'.$i;
                			$managePictureTplFieldNameData['dimensions'] = 'dimensions'.$i;
                			$managePictureTplFieldNameData['composition'] = 'composition'.$i;
                			$managePictureTplFieldNameData['pictureid'] = 'pic_id'.$i;
                			$managePictureTplFieldNameData['modified'] = 'modified'.$i;
                			$managePictureTplFieldNameData['description'] = 'descr'.$i;
                

                Sure I have forgotten some others modification, if you can help me a little till tomorrow huh

                --------------------------------------------------------------
                Just a little bug report (?)
                line 509 in maxigallery.class.inc.php : back\ground-color: transparent;
                Red caracter seems to be removed?
                I could made some bugreports for Maxigallery but it seems it’s not here http://modxcms.com/bugs/
                Good night and thx for Maxigallery (nice the ajax sort)
                  • 7923
                  • 4,213 Posts
                  Hello,

                  MaxiGallery has it’s own subforums here. You can find a sticky topic there about public svn and trac sites for MaxiGallery. You can make bug reports in the trac site. Please create a topic in the subforums for this what you are trying to do (adding more database fields) and I’ll guide you through it if you have any questions. Thanks!


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."