en:user:expanding_on_gs3_customisation_tutorials
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user:expanding_on_gs3_customisation_tutorials [2020/09/04 00:17] – anupama | en:user:expanding_on_gs3_customisation_tutorials [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
======Expanding on the GS3 Customisation tutorials====== | ======Expanding on the GS3 Customisation tutorials====== | ||
Line 104: | Line 107: | ||
3. Save and close the file.\\ | 3. Save and close the file.\\ | ||
Any changes to '' | Any changes to '' | ||
+ | |||
+ | |||
+ | ==== Advanced: if laying out groups column-wise in table cells of an html table ==== | ||
+ | There is some complexity if you want every 2 groups (or collections) appearing in a separate ''< | ||
+ | |||
+ | The following modifications to '' | ||
+ | |||
+ | These modifications also optionally provide support for an additional column of standalone collections. | ||
+ | |||
+ | First follow the steps in the section Displaying Collection Groups above, then, edit '' | ||
+ | |||
+ | 1. Locate: | ||
+ | < | ||
+ | Replace with: | ||
+ | < | ||
+ | <!-- < | ||
+ | |||
+ | <!-- output the groups, the following outputs them column wise --> | ||
+ | < | ||
+ | <!-- then output the collectionList in a final column --> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 2. Locate: | ||
+ | < | ||
+ | Replace with: | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 3. Locate: | ||
+ | < | ||
+ | Replace with: | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 4. Before the '' | ||
+ | < | ||
+ | <!-- To organise table cells, <td>, one column at a time: | ||
+ | https:// | ||
+ | will not work, since we have an if-statement inside the for loop to filter for groups. | ||
+ | Instead, counting only the groups using Borodin' | ||
+ | https:// | ||
+ | |||
+ | While that gives us a proper counter not dependent on position(), it doesn' | ||
+ | that we need to open a tag (td) on odd count and close it on even. | ||
+ | For that, the solution is at: | ||
+ | https:// | ||
+ | |||
+ | General: https:// | ||
+ | --> | ||
+ | < | ||
+ | < | ||
+ | <xsl:if test=" | ||
+ | <td style=" | ||
+ | < | ||
+ | <!-- calls the template match=" | ||
+ | </td> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <!-- We want collections to appear in a separate and single column. | ||
+ | So we don't do even odd columns here. --> | ||
+ | < | ||
+ | <td style=" | ||
+ | < | ||
+ | <!-- why does calling the template match=" | ||
+ | attr this time NOT work? --> | ||
+ | </td> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | If yo were to set a '' | ||
en/user/expanding_on_gs3_customisation_tutorials.1599178641.txt.gz · Last modified: 2020/09/04 00:17 by anupama