aboutsummaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorhttp://jmtd.livejournal.com/ <http://jmtd.livejournal.com/@web>2011-06-03 08:46:53 +0000
committeradmin <admin@branchable.com>2011-06-03 08:46:53 +0000
commita4b57e37c6b8081bd2414ded5f64026be95b4716 (patch)
treecf5ec432f8c75bb989ac6dfde60a63ac9313b10d /doc/examples
parent0ce21ed5c0201b30e01eab5bac3b55c545cc2153 (diff)
downloadikiwiki-a4b57e37c6b8081bd2414ded5f64026be95b4716.tar
ikiwiki-a4b57e37c6b8081bd2414ded5f64026be95b4716.tar.gz
response
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/blog/discussion.mdwn2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/examples/blog/discussion.mdwn b/doc/examples/blog/discussion.mdwn
index a1d4d1c9d..d9c716658 100644
--- a/doc/examples/blog/discussion.mdwn
+++ b/doc/examples/blog/discussion.mdwn
@@ -9,3 +9,5 @@ I looked at the "inline" docs but may have overlooked this.
I do see I can disable the editpage plugin to remove from front page. But then that made it so I can't add a new blog posting (I want to just not from the front page).
-- [[JeremyReed]]
+
+> You need two separate inlines, one on your front page which can be as simple as `\[[!inline pages="blog/*"]]`, and another on a hidden/unadvertised page, which has `postform=yes` added, that you will use to add posts. Removing the 'Edit' link from the front page (and all other pages — presumably you don't want it on blog post pages either) can be achieved in a number of ways. I do it by removing it from my `page.tmpl` file (point `templatedir` in your setup file to a directory under your control; copy `/usr/share/ikiwiki/templates/page.tmpl` into it, and remember that every time ikiwiki is upgraded, potentially the file has changed, and you might need to merge in the changes). A better way might be to hide the link via CSS (`.actions { display: none; }`). You can't add pages via the web interface if you remove [[plugins/editpage]] from your setup. You should look at [[plugins/lockedit]] to make sure that only you can edit pages/submit blog posts, should anyone else stumble across your unadvertised "submit blog post" page. — [[Jon]]