User:Sarah Labianca/Notebook/Smyth Lab/2012/02/09: Difference between revisions
(Autocreate 2012/02/09 Entry for User:Sarah_Labianca/Notebook/Smyth_Lab) |
|||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
| colspan="2"| | | colspan="2"| | ||
<!-- ##### DO NOT edit above this line unless you know what you are doing. ##### --> | <!-- ##### DO NOT edit above this line unless you know what you are doing. ##### --> | ||
== | ==Learning about Dynamic Page Listings and Categories/Tags== | ||
Today I learned about ways to sort and categorize pages and posts in my lab notebook, allowing for easier navigation and organization of my posts. Dynamic page listing (dpl) allows one to create an automatically updating list of pages within a certain category. By doing this, one can do a large amount of work with very few lines of code. | |||
An example of dynamic page listing can be found on [[User:Sarah_Labianca/Notebook/Smyth_Lab/Categories|this]] page. | |||
Dpl is extremely easy to code. It consists of identifying the category (at a bare minimum) and if one wants, adding an ordering method. | |||
An example of dpl code is: | |||
<pre> | |||
<dpl> | |||
category=SL-Coding | |||
mode = unordered | |||
order = descending | |||
</dpl> | |||
</pre> | |||
Since dpl is based on sorting posts within a certain categories, one must know how to tag a post with a category for sorting. This is easily done. An example of this is | |||
<pre>[[Category: SL-Coding]] | |||
</pre> | |||
This tag will allow for easy organization and grouping of notebook entries. | |||
[[Category: SL-Coding]] | |||
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> | <!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> |
Revision as of 12:39, 9 February 2012
Project name | <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page <html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html> </html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html> |
Learning about Dynamic Page Listings and Categories/TagsToday I learned about ways to sort and categorize pages and posts in my lab notebook, allowing for easier navigation and organization of my posts. Dynamic page listing (dpl) allows one to create an automatically updating list of pages within a certain category. By doing this, one can do a large amount of work with very few lines of code. An example of dynamic page listing can be found on this page. Dpl is extremely easy to code. It consists of identifying the category (at a bare minimum) and if one wants, adding an ordering method. An example of dpl code is: <dpl> category=SL-Coding mode = unordered order = descending </dpl> Since dpl is based on sorting posts within a certain categories, one must know how to tag a post with a category for sorting. This is easily done. An example of this is [[Category: SL-Coding]] This tag will allow for easy organization and grouping of notebook entries. |