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

GMT+2
[00:04:22] cillian.deroiste leaves the room
[01:05:25] Mawuli Adzaku leaves the room
[01:07:18] Mawuli Adzaku joins the room
[01:23:15] Mawuli Adzaku leaves the room
[01:25:45] Mawuli Adzaku joins the room
[01:34:48] Mawuli Adzaku leaves the room
[01:35:31] Mawuli Adzaku joins the room
[01:40:02] Mawuli Adzaku leaves the room
[01:40:56] Mawuli Adzaku joins the room
[01:48:19] Mawuli Adzaku leaves the room
[01:49:31] Mawuli Adzaku joins the room
[02:49:05] Mawuli Adzaku leaves the room
[08:19:09] arcusfelis joins the room
[08:57:50] arcusfelis leaves the room
[09:14:35] Mawuli Adzaku joins the room
[10:14:17] Maas joins the room
[10:16:53] Steffen Hanikel joins the room
[10:20:17] simon.smithies joins the room
[10:20:38] <simon.smithies> Hi all
[10:20:45] Maas leaves the room
[10:21:29] <simon.smithies> what do you guys think about letting us specify which template to use direct in the Category UI?
[10:21:52] <simon.smithies> would save me a lot of Dispatch grief :)
[10:22:25] <simon.smithies> Or even on the Page itself, in the Admin UI
[10:23:48] <simon.smithies> REalise this would upset the order of things quite a bit
[10:42:27] Maas joins the room
[10:57:22] Maas leaves the room
[11:00:26] Mawuli Adzaku leaves the room
[11:04:13] Mawuli Adzaku joins the room
[11:05:11] Maas joins the room
[11:08:39] arcusfelis joins the room
[11:26:09] Mawuli Adzaku leaves the room
[11:26:36] Mawuli Adzaku joins the room
[11:32:39] arcusfelis leaves the room
[12:06:47] Mawuli Adzaku leaves the room
[12:07:13] Mawuli Adzaku joins the room
[12:29:15] Mawuli Adzaku leaves the room
[12:31:41] Mawuli Adzaku joins the room
[12:52:41] cillian.deroiste joins the room
[12:54:48] Maas leaves the room
[13:02:21] <Marc Worrell> @simon.smithies it was something I was thinking about. We should be able to generate a list of possible page templates (would love a preview image as well…) and then the editor could select the template to be used. This could work with the default page controller.
[13:02:53] <simon.smithies> that would be really helpful
[13:03:14] <simon.smithies> sounds like it might be possible then - I wasn't sure if it was feasible
[13:03:27] <Marc Worrell> What you can do already is give your page a name, and then make a template "page.my_page_name.tpl"
[13:03:39] <Marc Worrell> you don't need a dispatch rule for this :-)
[13:04:15] <simon.smithies> that's a good shortcut for some of what I do - thanks
[13:04:38] <simon.smithies> what I was struggling with earlier though was making a template for a category of pages
[13:04:49] <Marc Worrell> it is only a bit indirect - so not so easy to use for an editor
[13:05:37] <Marc Worrell> yes - sometimes you just want the editor to choose the template. Currently it is the template builder who is 100% in charge.
[13:06:27] <simon.smithies> well ... am not so sure about that. When I'm done with this site, I guess I won't want the editor touching templates
[13:07:06] <simon.smithies> or even choosing the templates
[13:07:23] Maas joins the room
[13:08:25] <simon.smithies> I was more thinking just to make it easier front end developers like me
[13:08:46] <simon.smithies> disaptch is the bit that always trips me up
[13:10:29] <simon.smithies> thinking some more though about what you said at the start -- maybe it would be good (very powerful) if the editor could choose/change the template
[13:10:54] <simon.smithies> especially if a preview could be generated
[13:11:08] <simon.smithies> preview image
[13:11:51] <simon.smithies> but mybe to start with it could be the front-end dev's job to make a preview png for each template they provide
[13:11:51] Maas leaves the room
[13:12:08] <simon.smithies> that wouldn't be a big problem
[13:12:39] Maas joins the room
[13:13:44] Maas leaves the room
[13:15:06] Maas joins the room
[13:20:33] Mawuli Adzaku leaves the room
[13:21:06] simon.smithies leaves the room
[13:21:33] simon.smithies joins the room
[13:21:56] simon.smithies leaves the room
[13:22:18] Mawuli Adzaku joins the room
[13:31:18] Maas leaves the room
[14:08:48] Mawuli Adzaku leaves the room
[14:09:17] Mawuli Adzaku joins the room
[14:28:54] <Steffen Hanikel> hi, is there a reason why the the default predicates and categories are protected?
[14:29:22] <Steffen Hanikel> I want to make the interface easier by removing unecessary stuff
[15:11:43] Mawuli Adzaku leaves the room
[15:13:25] Mawuli Adzaku joins the room
[16:08:54] Mawuli Adzaku leaves the room
[16:09:36] Mawuli Adzaku joins the room
[16:13:59] Mawuli Adzaku leaves the room
[16:14:28] Mawuli Adzaku joins the room
[16:15:36] Mawuli Adzaku leaves the room
[16:16:47] Mawuli Adzaku joins the room
[16:18:37] Mawuli Adzaku leaves the room
[16:19:35] Mawuli Adzaku joins the room
[16:21:50] Mawuli Adzaku leaves the room
[16:22:48] Mawuli Adzaku joins the room
[16:30:52] Mawuli Adzaku leaves the room
[16:31:27] Mawuli Adzaku joins the room
[17:01:33] cillian.deroiste leaves the room
[17:03:09] cillian.deroiste joins the room
[17:47:49] cillian.deroiste leaves the room
[17:47:51] cillian.deroiste joins the room
[18:17:28] Maas joins the room
[18:18:05] Mawuli Adzaku leaves the room
[18:18:39] Mawuli Adzaku joins the room
[18:41:46] Mawuli Adzaku leaves the room
[18:43:17] Mawuli Adzaku joins the room
[18:43:59] Maas leaves the room
[19:28:37] Mawuli Adzaku leaves the room
[19:29:00] arjan joins the room
[19:29:28] Mawuli Adzaku joins the room
[19:32:45] arjan leaves the room
[19:56:08] Mawuli Adzaku leaves the room
[19:58:07] Steffen Hanikel leaves the room
[19:58:12] Mawuli Adzaku joins the room
[20:04:18] arjan joins the room
[20:24:03] Maas joins the room
[20:43:23] arjan leaves the room
[20:58:23] Mawuli Adzaku leaves the room
[20:59:27] Mawuli Adzaku joins the room
[21:26:48] Maas leaves the room
[21:28:05] Steffen Hanikel joins the room
[21:31:59] Maas joins the room
[21:40:13] Maas leaves the room
[21:42:20] Maas joins the room
[21:44:57] Maas leaves the room
[21:47:05] Maas joins the room
[21:53:02] <Steffen Hanikel> Hi, is there a way to get the directory of the current module?
[21:53:13] <Steffen Hanikel> i want to update some lib files
[22:06:00] <Steffen Hanikel> z_module_indexer looks like what I'm searching for
[22:18:26] <Steffen Hanikel> hmm is there something like a site specific directory where I can save files?
[22:21:46] <Maas> What do you mean? Do you want to dynamically add static files?
[22:22:19] <Maas> Otherwise the files go into their normal place.
[22:23:11] <Maas> Just like a module sites can have their own controllers templates and lib files.
[22:26:47] <Steffen Hanikel> yes, i want to dynamically add files
[22:27:28] <Steffen Hanikel> specifically I want to compile the foundation 4 sass files into site specific css files
[22:27:45] <Steffen Hanikel> and have the user customize the parameters in the admin interface
[22:28:17] <Steffen Hanikel> i think i can just put them in the site's lib directory
[22:29:36] <Maas> Aha, let me think.
[22:32:26] <Maas> Reading up on sass :-)
[22:32:54] <Steffen Hanikel> ^^
[22:33:29] <Steffen Hanikel> I thought about doing that from the with os:cmd/1, like mod_dev
[22:33:49] <Maas> That always works :-)
[22:37:08] <Maas> With the output of the module indexer you could find the sass files in the lib and convert them
[22:39:54] <Steffen Hanikel> I also found z_module_manager:active_dir/1 but that doesn't look as nice
[22:41:09] <Maas> the call all(lib, Context) should return a list with everything in it
[22:42:06] <Maas> z_module_indexer:
[22:42:12] <Steffen Hanikel> ah, thx
[22:43:07] <Maas> It returns a big list.. find_ua_class_all does the same, but then per user agent class... desktop, tablet and such.
[22:44:01] <Steffen Hanikel> is there a way to quickly convert tuples/records to a string?
[22:44:39] <Steffen Hanikel> i'm always struggling to understand types
[22:45:03] <Maas> z_convert has quite some conversion utitlities
[22:45:26] <Maas> z_convert:to_string, but I'm not sure what you want to do
[22:45:43] <Steffen Hanikel> just send a growl back to the client with information
[22:46:04] <Steffen Hanikel> I don't know a better way to debug my erlang, yet :)
[22:46:40] <Maas> The ?DEBUG macro is also very handy. It prints the term on your console...
[22:47:04] <Maas> ?DEBUG({hello, world}).
[22:47:18] <Maas> it adds the module name and line number to the output.
[22:48:01] <Maas> after changing the code you can type z:m()
[22:48:22] <Steffen Hanikel> I will try that
[22:54:44] Maas leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!