Changeset 5614


Ignore:
Timestamp:
2003-10-13T16:01:51+13:00 (21 years ago)
Author:
nzdl
Message:

added a faq entry about adding new buttons for the nav bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/greenorg/macros/english.dm

    r5605 r5614  
    806806_t205_ {How can I build my collection using MGPP?}
    807807
     808_tfaqbuild11title_ {I've added a new type of classification to my collection. How do I create and add the navigation bar images?}
     809
    808810_t207_ {FAQ Main Page}
    809811
     
    11581160}
    11591161
     1162_tfaqbuild11body_ {
     1163To create and add the new buttons for a new classifier, there are several macro files that need to be edited. This is an example for the Countries metadata. <i>Countries</i> is the metadata name (or buttonname), <i>count</i> is the short form used in image names, <i>countries</i> is the text that appears on the nav bar buttons and the green title.
     1164<p>
     1165These lines should all be put next to the other ones ones of the same type. Use Title as an example to search for the approriate place to insert.
     1166<p>
     1167<i>base.dm:</i>
     1168<br>
     1169<br>\_Countrieswidth\_ \{\_widthcountx\_ \}
     1170
     1171<br>\_imageCountries\_ \{\_gsimage\_(\_httpbrowseCountries\_,\_httpicontcountof\_,\_httpicontcounton\_,countries,\_textimageCountries\_)\}
     1172<br>\_icontabCountriesgreen\_ \{&lt;img
     1173src="\_httpicontcountgr\_" width=\_widthtcountx\_ border=0&gt;\}
     1174<br>\_icontabCountriesgreen\_[v=1] \{\_texticontabCountriesgreen\_ \}
     1175<p>
     1176<i>document.dm:</i>
     1177<br>
     1178<br>\_textCountriespage\_ \{\_texticonhcount\_ \}
     1179
     1180<br>\_iconCountriespage\_ \{&lt;img src="\_httpiconhcount\_" width="\_widthhcount\_"
     1181height="\_heighthcount\_"&gt;\}
     1182<br>\_iconCountriespage\_ [v=1] \{&lt;h2&gt;\_texticonhcount\_&lt;/h2&gt;\}
     1183
     1184<p>
     1185<i>english.dm:</i>
     1186<br>
     1187<br>\_textimageCountries\_ \{Browse by countries\}
     1188<br>\_texticontabCountriesgreen\_\{Countries\}
     1189
     1190<br>\_texticonhcount\_\{Countries\}
     1191<br>
     1192<br>## "countries" ## nav\_bar\_button ## tcount ##
     1193<br>\_httpicontcountgr\_ \{\_httpimg\_/tcountgr.gif\}
     1194<br>\_httpicontcountof\_ \{\_httpimg\_/tcountof.gif\}
     1195<br>\_httpicontcounton\_ \{\_httpimg\_/tcounton.gif\}
     1196<br>\_widthtcountx\_ \{87\}
     1197
     1198<br>## "countries" ## green_title ## h_count ##
     1199<br>\_httpiconhcount\_ \{\_httpimg\_/h\_count.gif\}
     1200<br>\_widthhcount\_ \{200\}
     1201<br>\_heighthcount\_ \{57\}
     1202
     1203<p>
     1204The images that are needed are the nav bar images, and the title image with the green bar in the background. There are 3 nav bar images: <i>tcountgr.gif</i> is the green one and <i>tcounton.gif</i> and  <i>tcountof.gif</i> are the two yellow ones for the rollover effect.
     1205<i>h_count.gif</i> is the title image.
     1206
     1207<p>These images can be generated by copying the two ## blocks from above into a temp file and running translate.pl on it eg.
     1208
     1209<br>translate.pl -language_symbol en temp.dm
     1210
     1211<p>To add the images in other languages, you need to edit the appropriate language macro file, and add the same items as for english.dm. And run the translate script to generate the images.
     1212}
     1213
    11601214
    11611215#######################################################################
Note: See TracChangeset for help on using the changeset viewer.