Permalink
Browse files

Modified style in readme.md

  • Loading branch information...
1 parent f2b95ba commit cd49dbb3456a9acc9c0b62a1430d642b9cda3bb7 @mtylerb mtylerb committed Jan 1, 2011
Showing with 15 additions and 15 deletions.
  1. +15 −15 readme.md
View
@@ -45,20 +45,20 @@ __Note:__ snippetname will be the name you give your snippet.
* Count is just a list with the number of items tagged with the tag next to it eg. news(1)
* Leaving it blank is the same as count without the number eg. news
-7. __Page Code__
-Create a new page and add this code below inside it:
-
- <?php
- $pages = $this->tagger->pagesByTag();
- if($pages){
- echo "<h3>Pages tagged with '".$this->tagger->tag()."'</h3>";
- foreach($pages as $slug => $page)
- {
- echo '<h3><a href="'.$slug.'">'.$page.'</a></h3>';
- }
- } else {
- echo "There is no items with this tag.";
- }
- ?>
+7. __Article Code__
+Create a new article and add this code below inside it:
+
+ <?php
+ $pages = $this->tagger->pagesByTag();
+ if($pages){
+ echo "<h3>Pages tagged with '".$this->tagger->tag()."'</h3>";
+ foreach($pages as $slug => $page)
+ {
+ echo '<h3><a href="'.$slug.'">'.$page.'</a></h3>';
+ }
+ } else {
+ echo "There is no items with this tag.";
+ }
+ ?>
8. Ensure you set this Page Type to Tagger.

0 comments on commit cd49dbb

Please sign in to comment.