Commits

Anonymous committed 153b507

Added the advanced and topics books. The pages themselves are still needed
to be written.

Comments (0)

Files changed (3)

src/books/advanced/index.html.wml

+#include "../template.wml"
+
+<subject "Advanced Books" />
+
+<h2><font color="red">FILL IN</font></h2>
+

src/books/topics/index.html.wml

+#include "../template.wml"
+
+<subject "Advanced Books" />
+
+<h2><font color="red">FILL IN</font></h2>
+
 <define-tag lect:link><navbarlink "lecture/%0" "%1" host="vipe" /></define-tag>
 
 <define-tag links:group endtag="required">
-<ul class="navbarmain">
+<preserve myclass />
+<set-var myclass="<if "<match "%0" "nested" />" "navbarmain" "navbarnested" />" />
+<ul class="<get-var myclass />">
 %body
 </ul>
+<restore myclass />
 </define-tag>
 
 <define-tag wiki:link whitespace="delete">
 <restore href />
 </define-tag>
 
+<define-tag navbar:menu:books>
+<links:group "nested">
+<li>
+<navbarlink "books/advanced/" "Advanced Books" title="Books that contain more information about Perl than the basics" />
+</li>
+<li>
+<navbarlink "books/topics/" "Topic-related Books" title="Books that cover certain topics in detail" />
+</li>
+</links:group>
+</define-tag>
+
+<define-tag navbar:menu:is:book><match "$(FILENAME)" "^books/" action="report" /></define-tag>
+
 <table summary="Layout Table: The first cell contains a navigation bar, the second the main page" border="0" width="99%">
 <tr>
 <td valign="top" class="navbar" style="width:20%">
 <li><navbarlink "" "Home" /></li>
 <li><navbarlink "about.html" "About" /></li>
 <li><navbarlink "tutorials/" "Online Tutorials" /></li>
-<li><navbarlink "books/" "Books" /></li>
+<li><navbarlink "books/" "Books" />
+<if "<navbar:menu:is:book />" "<br /><navbar:menu:books />" />
+</li>
 <li><navbarlink "core-doc/" "Core Documentation" /></li>
 <li><navbarlink "articles/" "Article Collections" /></li>
 </links:group>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.