if you need a simple wiki simple replace the two lines below with:
return auth.wiki()
Thanks !
works perfectly.
> youtu.be is not a well known oembed service provider.
Funny the
Also, the markmin syntax seems to work well. http://web2py.com/examples/static/markmin.html
I mean, the wiki section might be available under app/default/wiki. In which case the wiki menu should only appear from pages under that path. All other areas of the site would have the normal menu. I think it is already working like that, I just wanted to mention it again so you don't change that :)
@auth.wikify()
def afunction():
...
return dict()
def wiki():
# another wiki interface
# for customizing with
# plugin layout elements
return auth.wiki()
{{=more_plugin_stuff}}
<!-- Ja, a link to a real bavarian speciality!-->
<!-- Not sure if I am using a valid link here -->
{{=URL(c="plugin_bavaria", f="wiki.html", args=["my-bavarian-menu-slug",]))}}
I can see why one may want to define the wiki outside of an action to benefit from the menu (if you delete models/menu.py) all actions will have the wiki menu but only one action should actually expose the menu.
Hi Massimo,
Some questions on auth.wiki, in anticipation of some details in the book.
Have you finalised the syntax for adding components ?
How do I embed media eg images? Do I follow the markmin reference doc, or is it a combo of the two: I've added the media to the page
[[some image @////5/slug.jpg right 200px]] or [[some image http://www.web2py.com/examples/static/web2py logo.png right 200px]] or just @////5/slug.jpg.
I'm updating pages but they don't get refreshed - is there caching on by default ? This might have been causing my earlier issue as I'm not seeing an updated page.
Does you have to be in default/index to call auth.wiki() ?
Do users have to log in to see the wiki pages ? The login screen comes up by default. I would like a wik page to come up by default.
--