Media Types - Migrating mods

From TNG_Wiki
Jump to: navigation, search


Ambox notice.png This page pertains to migrating media types from TNG 6.2 to TNG 7
TNG 7.0


How to Migrate your previous mediatypes.php mods

1. Open your TNG 6.2.0 version of mediatypes.php

2. Find the entries you added, for example

//census
setMediaType("census",$censuspath,"user/images/my_census.gif");
//original record scans
setMediaType("scan",$scanpath,"user/images/my_scans.gif");

3. Open your TNG 6.2.0 version of customconfig.php

4. Find your paths for the new mediatypes you added, for example

// new media type
$censuspath = "census";
$scanpath = "scans";

5. In Admin >> Media, click the Add Collection button and fill the fields as follows based on the above two examples

  a. to add you Census media type
  
     Collection ID:   census
     Display Title:   census
     Folder Name:     census 
     Icon File:       user/images/my_census.gif
     Display Order:	 << this is a new field to replace the order of the mod >>>
     Same setup as:   select new option to define new media type to behave as
                      photos, documents, headstones, histories, recordings, or videos
     
  b. to add you Original Records media type
  
     Collection ID:	 scan
     Display Title:	 scan
     Folder Name:	 scans
     Icon File:	 user/images/my_scans.gif
     Display Order:	 << this is a new field to replace the order of the mod >>>
     Same setup as:   select new option to define new media type to behave as
                      photos, documents, headstones, histories, recordings, or videos

     

Note that the $text[census] = "Census" with a capital letter in first position will not display until you do a search