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

GMT+2
[00:34:55] Arjan leaves the room
[02:10:42] Maas joins the room
[02:10:54] Maas leaves the room
[06:24:25] mawuli.ypa leaves the room
[07:07:24] arcusfelis joins the room
[09:07:47] arcusfelis leaves the room
[09:41:21] Arjan joins the room
[10:24:44] cillian.deroiste joins the room
[11:04:46] arcusfelis joins the room
[11:15:49] mawuli.ypa joins the room
[12:03:56] Maas joins the room
[12:15:28] Maas leaves the room
[13:04:48] Maas joins the room
[13:15:02] mawuli.ypa leaves the room
[13:15:30] mawuli.ypa joins the room
[13:25:18] <Maas> Should changing a hostname of a site work by just changing its config and then restarting it?
[13:28:04] <Maas> I get some erros when I do that... {noproc,{gen_server,call,[undefined,{spawn_link ... I guess server *undefined* does not exist.
[13:28:07] <Maas> :p
[13:31:54] <Maas> Aha, comes from: spawn_link in z_session_page... The page pid was undefined... hmm, not good.
[13:37:50] <Arjan> woot
[13:37:51] <Arjan> http://modules.zotonic.com/page/375/mod-service-basic-auth
[13:37:54] <Arjan> very handy
[13:41:01] <Maas> With a basic auth box in the browser cool? How about digest auth? Is that already supported? That digest methods prevents one from snooping passwords without the need for ssl and such.
[13:42:27] <Maas> ow for services... :-)
[13:43:13] <Arjan> yes just for services
[13:43:48] <Maas> It is cool anyhow :-)
[13:43:51] <Arjan> it does not set a WWW-Authenticate: header yet
[13:43:53] <Arjan> yes very handy
[13:43:59] <Arjan> curl -u admin:admin http://... :)
[13:44:19] <Arjan> im porting a PHP site to Zotonic
[13:44:19] <Maas> Nice for making simple scripts.
[13:44:33] <Arjan> but it has an API with an existing iOS app
[13:44:36] <Arjan> so it needs to remain BC
[13:45:08] <Maas> Nice one. This morning I bumped into small issue when renaming a hostname
[13:48:15] <Maas> I couldn't get the site running on the new hostname. Also not after restarting zotonic. Somehow the context didn't have a page_pid anymore when it wanted to connect we websocket to the session page.
[13:48:21] Arjan leaves the room
[14:03:53] <cillian.deroiste> Hi, I'd like to add a simple custom block. I've had a look at mod_survey but I'm not sure which parts I need...
[14:04:33] <cillian.deroiste> I've added a template : priv/sites/mysite/templates/blocks/_admin_edit_block_li_mailing_list.tpl
[14:05:08] <cillian.deroiste> and in mysite.erl I've add an observe_admin_edit_blocks function (derived from mod_survey)
[14:05:30] <cillian.deroiste> http://sprunge.us/JgQi
[14:06:04] <cillian.deroiste> I expect to see ML block in the blocks drop down when editing a page
[14:06:11] <cillian.deroiste> any pointers?
[14:08:50] cillian.deroiste has also exported observe_admin_edit_blocks
[14:09:51] <Maas> Looking, never actually done that.
[14:14:22] <cillian.deroiste> http://zotonic.com/docs/0.9/manuals/datamodel/resources.html#blocks is the only reference I've found to it, apart from mod_survey, it sounds like a nice feature!
[14:15:22] <Maas> mod_admin uses it too, looks a bit simpler there
[14:16:19] <cillian.deroiste> ah, indeed
[14:22:34] <Maas> Sounds like you have to define a block type at some place. I'm not sure where though.
[14:23:22] <cillian.deroiste> oh .. hmm
[14:23:51] <Maas> Indeed it should be done with an admin_edit_block notify
[14:25:12] <Maas> Did you export the function?
[14:25:17] <cillian.deroiste> yep
[14:25:30] <Maas> restart probably yep too
[14:26:19] <cillian.deroiste> indeed, and I used zotonic compilefile on the file directly
[14:27:38] <cillian.deroiste> I tried different things for "Standard" in "{100, ?__("Standard", Context), [" too
[14:28:11] <cillian.deroiste> I'm not really sure what I'm doing TBH, so I'm probably doing something silly
[14:28:46] <cillian.deroiste> did you try it out yourself?
[14:29:03] <Maas> No, not yet.
[14:29:14] <Maas> @marc knows :-)
[14:29:40] <cillian.deroiste> kk, thanks for checking it out!
[14:31:29] <Maas> I'll try to make one right now.
[14:32:50] <cillian.deroiste> gah! it works!
[14:33:09] <cillian.deroiste> Maas: thanks, I guess I didn't restart enough :D
[14:33:28] cillian.deroiste will add a cookbook article
[14:33:37] <Maas> :-) Cool. I've learned something too... win-win
[14:34:29] Maas leaves the room
[14:37:19] Arjan joins the room
[15:01:35] Arjan leaves the room
[15:46:44] cillian.deroiste leaves the room
[16:28:20] Maas joins the room
[16:41:04] Maas leaves the room
[16:47:16] Maas joins the room
[17:32:18] mawuli.ypa leaves the room
[17:33:11] mawuli.ypa joins the room
[17:38:50] mawuli.ypa leaves the room
[17:39:41] mawuli.ypa joins the room
[18:11:25] Maas leaves the room
[18:35:12] Maas joins the room
[18:50:54] Maas leaves the room
[18:58:23] Maas joins the room
[19:09:21] Maas leaves the room
[19:27:15] Maas joins the room
[19:37:25] Maas leaves the room
[19:57:02] cillian.deroiste joins the room
[20:01:52] cillian.deroiste leaves the room
[20:03:23] cillian.deroiste joins the room
[20:08:45] mawuli.ypa leaves the room
[20:11:55] mawuli.ypa joins the room
[20:15:28] mawuli.ypa leaves the room
[20:51:47] Maas joins the room
[22:05:01] Maas leaves the room
[22:16:09] cillian.deroiste leaves the room
[22:19:21] arcusfelis leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!