Changeset 34583 for documentation
- Timestamp:
- 2020-12-05T18:54:10+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/xml-source/tutorial_en.xml
r34576 r34583 6340 6340 </Heading> 6341 6341 <NumberedItem> 6342 <Text id="ni1-07">Now, let's define a library that uses the new interface. In <Path>Greenstone3 → web → WEB-INF</Path> open <b>servlets.xml</b>, and add the following (the exact location doesn't matter, just put it with the other servlets) :</Text>6342 <Text id="ni1-07">Now, let's define a library that uses the new interface. In <Path>Greenstone3 → web → WEB-INF</Path> open <b>servlets.xml</b>, and add the following (the exact location doesn't matter, just put it with the other servlets). You can copy the following from <Path> sample_files → interfaces → aybara → interface.txt</Path>.</Text> 6343 6343 <Format> 6344 6344 <Tab n="1"/><servlet><br/> … … 6434 6434 <NumberedItem> 6435 6435 <Text id="ni2-03">In a previous tutorial, we created a home page that was completely different than the rest of our library's pages. This time, however, the home page will share a large portion of its layout and style with the rest of the library's pages. So, we're only going to change the home page's <i>content</i> by modifying the <b>/page/pageResponse</b> template. We will be adding three sections to our home page: an image slider, a section that can contain featured content, and a list of all of the collections in the library, along with their descriptions.</Text> 6436 <Text id="ni2-04">Replace HOME PAGE CONTENT GOES HERE with the following :6436 <Text id="ni2-04">Replace HOME PAGE CONTENT GOES HERE with the following (these and other code snippets used in this tutorial can be copied from the subsection of <Path> sample_files → interfaces → aybara → interface.txt </Path> named after this tutorial): 6437 6437 </Text> 6438 6438 <Format> … … 6640 6640 <Tab n="3"/></head><br/> 6641 6641 <Tab n="3"/><body><br/> 6642 <Tab n="4"/><div class="container" id="gs_content"> 6642 <Tab n="4"/><div class="container" id="gs_content"><br/> 6643 6643 <Tab n="5"/><xsl:apply-templates select="/page"/><br/> 6644 <Tab n="4"/></div> 6644 <Tab n="4"/></div><br/> 6645 6645 <Tab n="4"/><xsl:call-template name="gs_footer"/><br/> 6646 6646 <Tab n="3"/></body><br/> … … 6654 6654 <NumberedItem> 6655 6655 <Text id="ni3-05">Now we will add the HTML that all of the pages of our collection will share. (You might want to take another look at <b>index-GS3.html</b> to remind yourself what the layout will look like.)</Text> 6656 <Text id="ni3-06">Let's start by adding a footer to our library. In the <b>gs_footer</b> template, immediately after the line <Format><!-- Put footer in here. --></Format> insert the following :</Text>6656 <Text id="ni3-06">Let's start by adding a footer to our library. In the <b>gs_footer</b> template, immediately after the line <Format><!-- Put footer in here. --></Format> insert the following (which, along with other code to be inserted for this tutorial, can be copied from this tutorial's subsection of <Path> sample_files → interfaces → aybara → interface.txt </Path>):</Text> 6657 6657 <Format> 6658 6658 <Tab n="2"/><!-- ******DO NOT REMOVE THE LINK TO OS TEMPLATES: Template is free to use/modify, but this link MUST remain on all pages. Do not remove Copyright information. Replace "Your Webpage Here" (and it's link) with your own information.--><br/> … … 6670 6670 </NumberedItem> 6671 6671 <NumberedItem> 6672 <Text id="ni3-08">You'll notice that the image slider and the highlighted items are right up against the edge of the page. In <b>main.xsl</b>, replace 6672 <Text id="ni3-08">You'll notice that the image slider and the highlighted items are right up against the edge of the page. In <b>main.xsl</b>, replace</Text> 6673 6673 <Format> 6674 6674 <Tab n="2"/><div class="container" id="gs_content"><br /> … … 6676 6676 <Tab n="2"/></div><br /> 6677 6677 </Format> 6678 with:</Text>6678 <Text id="ni3-08b">with:</Text> 6679 6679 <Format> 6680 6680 <Tab n="2"/><div class="wrapper"><br/>
Note:
See TracChangeset
for help on using the changeset viewer.