Using Includes
The hard way:
Navigate to a url that does not exist to create a new page.
Fill in some content on the new page.
Edit your site template and add {{new_page}}
The easy way:
Edit any page on your site and type {{new_page}}
Click "save and view" the changes.
Click on the "edit new page" link that apears when you are logged into infogami.
whatever you put in "new_page" will be included in the original page.
<- included text starts here --
This is a test include of (a slightly modified) {{new_page}}
-- included text ends here ->
Potential Uses
Roll your own blog.
Create an initial page: http://howto.infogami.com/anewblog
Now when you visit http://howto.infogami.com/_edit/anewblog/_add you will get the same blog post editing form as for the builtin /blog, but all new entries will go under the anewblog/ directory.
Create the new post, remembering the URL. Into the main anewblog page, plug in {{anewblog/first post}} (or whatever URL you gave it) to include the post in the text of the anewblog "homepage".
If you want headings, dates or any of the other trappings of blog, you'll need to add those yourself. Why not head over and try it for yourself?
Limitations
0 points
last updated 2 years ago
permalink
history