Zotonic
Zotonic
zotonic@conference.zotonic.com
Tuesday, 27 August 2013< ^ >
Arjan has set the subject to: Zotonic - The Erlang Web Framework & CMS
Room Configuration

GMT+2
[00:00:35] Steffen Hanikel leaves the room
[00:27:42] <Marc Worrell> Looks like we can abandon the binaries on Google Code https://github.com/blog/1547-release-your-software
[00:55:24] cillian.deroiste leaves the room
[01:33:09] Jeff Bell leaves the room
[01:35:16] Jeff Bell joins the room
[01:43:47] jeff.5nines joins the room
[02:40:09] jeff.5nines leaves the room
[02:40:50] Jeff Bell leaves the room
[02:44:00] Mawuli Adzaku leaves the room
[02:46:46] Mawuli Adzaku joins the room
[03:07:33] simon.smithies joins the room
[03:13:48] Mawuli Adzaku leaves the room
[03:16:54] Mawuli Adzaku joins the room
[03:22:23] Mawuli Adzaku leaves the room
[03:29:31] Mawuli Adzaku joins the room
[04:04:39] Jeff Bell joins the room
[04:12:31] Mawuli Adzaku leaves the room
[04:56:41] simon.smithies leaves the room
[05:07:07] simon.smithies joins the room
[05:34:17] Kaos leaves the room
[05:35:15] Kaos joins the room
[05:50:23] simon.smithies leaves the room
[07:05:31] Maas joins the room
[08:34:33] Maas leaves the room
[09:31:03] Steffen Hanikel joins the room
[09:42:14] simon.smithies joins the room
[09:56:42] Maas joins the room
[09:58:11] arcusfelis joins the room
[10:37:43] Mawuli Adzaku joins the room
[10:47:19] Mawuli Adzaku leaves the room
[10:47:50] Mawuli Adzaku joins the room
[10:51:25] Steffen Hanikel leaves the room
[11:08:00] Steffen Hanikel joins the room
[11:28:21] z-bot joins the room
[11:34:20] arjan joins the room
[11:36:05] Kaos leaves the room
[11:38:53] Andreas Stenius joins the room
[11:39:34] <Andreas Stenius> +1 for github releases in favor of google code (if not just to keep it all in one place)
[11:40:05] <Steffen Hanikel> I need some help understanding the dispatch rules:
{page, ["page", id], controller_page, [ {template, {cat, "page.tpl"}} ]},
Why is the following tuple nested? Why is "cat" needed here?
{template, {cat, "page.tpl"}}
[11:40:53] <Steffen Hanikel> the documentation doesn't mention anything of nested tuples
[11:40:55] <Andreas Stenius> it tells controller_page to cat include the page.tpl file
[11:41:50] <Andreas Stenius> see http://zotonic.com/docs/0.9/ref/tags/tag_catinclude.html?highlight=catinclude for what cat include does.. :)
[11:42:24] <Andreas Stenius> where as {template, "page.tpl"} would simply include page.tpl (and don't look at the category of the resource at all)
[11:42:30] <Steffen Hanikel> yeah, I thought it was something like this. I guess I have to update the documentation ...
[11:42:43] <Andreas Stenius> nice :)
[11:42:48] <Andreas Stenius> the docs are a bit scattered..
[11:42:59] <Steffen Hanikel> this also works for controller_template, right?
[11:43:03] <Andreas Stenius> yes
[11:43:11] <Steffen Hanikel> because I don't quite get the source code
[11:43:18] <Andreas Stenius> heh :p
[11:43:27] <arjan> it works even in erlang code,
[11:43:40] <arjan> Html = z_template:render({cat, "foo.tpl"}, [{id, 234}], Context).
[11:44:06] <Andreas Stenius> Hmm... interesting, don't think I've ever considered that. ;)
[11:44:30] <Andreas Stenius> guess that's the call that the controllers boil down too, though..
[11:44:32] <Steffen Hanikel> ah, so it's just the result of how templates are rendered and not of the dispatch rules ...
[11:44:40] <Andreas Stenius> indeed
[11:55:11] <arjan> you can even do:
[11:55:47] <arjan> {cat, "foo.tpl"}
[11:56:00] <arjan> and the 'id' parameter of the vars can be not an id but a list of atoms
[11:56:09] <arjan> [a,b,c]
[11:56:15] <arjan> it will then consider foo.a.tpl, foo.b.tpl, etc
[11:56:44] <Andreas Stenius> ooo... cool :)
[11:57:00] <Andreas Stenius> there's still so much extra features that's not documented..
[11:57:11] Mawuli Adzaku leaves the room
[11:57:26] <arjan> :-/
[11:57:28] Mawuli Adzaku joins the room
[11:57:28] <arjan> indeed
[11:57:40] <arjan> I just read the code
[12:02:14] <Marc Worrell> it now also works in the #render{} ;)
[12:04:10] <Marc Worrell> and #render has now a 'is_all' option - to perform a "all include"
[12:10:24] <Steffen Hanikel> Is there a way to add a .. see also:: to a table?
[12:12:04] <Andreas Stenius> no, not the table itself, you need a tag (title, or similar) to link to.. don't recall exactly how, but I think you can tag the table, so it in effect does what you want..
[12:14:00] <Andreas Stenius> ah, try putting a .. _tag-name:
[12:14:10] <Andreas Stenius> on a line before the table..
[12:14:41] <Steffen Hanikel> sorry, I didn't mean to reference a table, but to add a reference inside the table
[12:14:48] <Steffen Hanikel> :ref:`catinclude` doesn't seem to work
[12:14:53] <Steffen Hanikel> in a cell
[12:15:06] simon.smithies leaves the room
[12:15:21] <Steffen Hanikel> oh, maybe my reference isn't right
[12:15:44] <Andreas Stenius> linking to references from a cell should work.. putting a ref target in a cell doesn't, as far as I know
[12:27:29] Steffen Hanikel leaves the room
[13:03:44] Mawuli Adzaku leaves the room
[13:05:36] Mawuli Adzaku joins the room
[13:17:23] Steffen Hanikel joins the room
[13:28:13] arjan leaves the room
[13:34:03] arjan joins the room
[14:08:59] arjan leaves the room
[14:22:37] arjan joins the room
[14:33:05] Steffen Hanikel leaves the room
[15:16:15] jeff.5nines joins the room
[15:23:35] <Marc Worrell> For a project we just merged all the .pot (and .po) files together, way easier editing. Maybe that is also something we could do for the Zotonic core.
[15:26:24] <Marc Worrell> Nice http://www.shodanhq.com/search?q=zotonic
[15:41:11] Mawuli Adzaku leaves the room
[15:42:08] Mawuli Adzaku joins the room
[16:29:02] Mawuli Adzaku leaves the room
[16:29:22] Mawuli Adzaku joins the room
[16:42:28] Mawuli Adzaku leaves the room
[16:43:07] Mawuli Adzaku joins the room
[16:44:36] Mawuli Adzaku leaves the room
[16:45:23] Mawuli Adzaku joins the room
[16:45:53] Mawuli Adzaku leaves the room
[16:46:49] Mawuli Adzaku joins the room
[16:49:13] Mawuli Adzaku leaves the room
[16:49:36] Mawuli Adzaku joins the room
[16:52:33] Mawuli Adzaku leaves the room
[16:53:18] Mawuli Adzaku joins the room
[17:06:39] Mawuli Adzaku leaves the room
[17:07:35] Mawuli Adzaku joins the room
[17:10:45] Mawuli Adzaku leaves the room
[17:11:55] Mawuli Adzaku joins the room
[17:13:50] Mawuli Adzaku leaves the room
[17:14:16] Mawuli Adzaku joins the room
[17:15:11] Mawuli Adzaku leaves the room
[17:16:06] Mawuli Adzaku joins the room
[17:17:53] Mawuli Adzaku leaves the room
[17:18:57] Mawuli Adzaku joins the room
[17:21:20] Maas leaves the room
[17:21:20] Mawuli Adzaku leaves the room
[17:21:45] Mawuli Adzaku joins the room
[17:23:23] Mawuli Adzaku leaves the room
[17:24:21] Mawuli Adzaku joins the room
[17:26:01] Mawuli Adzaku leaves the room
[17:27:10] Mawuli Adzaku joins the room
[17:31:48] Mawuli Adzaku leaves the room
[17:32:35] Mawuli Adzaku joins the room
[17:33:55] Mawuli Adzaku leaves the room
[17:34:19] Mawuli Adzaku joins the room
[17:39:38] Mawuli Adzaku leaves the room
[17:40:51] Mawuli Adzaku joins the room
[17:42:46] Mawuli Adzaku leaves the room
[17:43:09] Mawuli Adzaku joins the room
[17:46:44] Mawuli Adzaku leaves the room
[17:47:51] Steffen Hanikel joins the room
[17:49:00] arjan leaves the room
[17:49:09] Mawuli Adzaku joins the room
[17:52:21] Mawuli Adzaku leaves the room
[17:52:59] Mawuli Adzaku joins the room
[17:55:16] Mawuli Adzaku leaves the room
[17:57:23] jeff.5nines leaves the room
[18:17:28] arcusfelis leaves the room
[19:05:14] arcusfelis joins the room
[19:07:13] <Steffen Hanikel> Is adding a new model as easy as implementing gen_model?
[19:29:16] arjan joins the room
[19:39:33] arjan leaves the room
[19:48:47] arjan joins the room
[19:49:26] cillian.deroiste joins the room
[19:54:13] <Steffen Hanikel> Is there any documenation on gen_model?
[19:54:33] <Steffen Hanikel> I don't quite get waht m_value and m_to_list are for
[19:56:35] <Steffen Hanikel> I guess it's used when I iterate directly over the model object
[19:56:43] arjan leaves the room
[19:57:14] Steffen Hanikel leaves the room
[19:57:47] arjan joins the room
[20:01:20] arjan leaves the room
[20:39:07] arcusfelis leaves the room
[21:06:35] Steffen Hanikel joins the room
[21:30:46] <Andreas Stenius> Steffen Hanikel: about gen_model, I've got some introductory articles on the subject of modules (and a very basic model) here: http://blog.astekk.se/en/mod_gazonk
[21:31:45] <Andreas Stenius> .. half way down in section IV.
[21:45:03] Andreas Stenius leaves the room
[23:58:10] Steffen Hanikel leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!