Zotonic
Zotonic
zotonic@conference.zotonic.com
Wednesday, 30 January 2013< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[01:12:15] Marc Worrell leaves the room: Disconnected: connection closed
[01:15:35] Maas leaves the room
[01:16:25] Maas joins the room
[02:54:12] Marc Worrell joins the room
[03:04:58] Marc Worrell leaves the room: Disconnected: connection closed
[03:42:24] Marc Worrell joins the room
[07:14:59] maas.maarten.zeeman joins the room
[07:22:07] maas.maarten.zeeman leaves the room
[08:18:11] maas.maarten.zeeman joins the room
[08:30:11] Protagores joins the room
[08:37:32] Arjan joins the room
[08:38:31] <Arjan> Maas: get an X230 if you can afford it
[08:38:36] <Arjan> the best smallsized laptop out there
[08:42:10] <maas.maarten.zeeman> Was already looking at that one. It is a bit strange that lenovo laptops are so much cheaper in germany. Probably delivered without os (which is good)
[08:44:00] <maas.maarten.zeeman> Was also looking at the x131e as a "take everywhere" laptop.
[08:45:16] <maas.maarten.zeeman> 899 in nl, 470 in de weird
[08:47:37] <Arjan> or get an X220 on marktplaats, http://www.marktplaats.nl/a/computers-en-software/laptops-en-notebooks/m639656580-nieuw-lenovo-thinkpad-t430s-t420s-x220-t520-laptops.html?c=8c285449651fa109c354bbabe740c1b&previousPage=lr
[08:47:47] <Arjan> €950
[08:47:50] <maas.maarten.zeeman> ha
[08:48:04] <Arjan> thats a pretty good deal for an i7 laptop
[08:48:52] <maas.maarten.zeeman> I like
[08:49:51] <maas.maarten.zeeman> en 8 gig ram
[08:50:02] <Arjan> essential :)
[08:50:11] <Arjan> + SSD 180Gig
[08:51:16] <maas.maarten.zeeman> that is a sweet deal indeed.
[08:53:34] <maas.maarten.zeeman> and a free office licence :-p
[08:55:20] <Arjan> lol
[08:57:09] Andreas Stenius joins the room
[11:26:55] Arjan leaves the room
[11:29:30] Arjan joins the room
[12:47:00] Arjan leaves the room
[12:49:14] Arjan joins the room
[12:54:35] maas.maarten.zeeman leaves the room
[13:36:24] Andreas Stenius leaves the room
[14:58:16] Jeff Bell joins the room
[15:03:42] Jeff Bell leaves the room
[15:13:52] jbell joins the room
[15:14:39] <Arjan> hi jeff
[15:14:47] <Arjan> what's up :)
[15:15:07] <jbell> Hi Arja, just trying to get setup to chat :)
[15:15:50] <jbell> Had to resort to jwchat, can't seem to get the empathy client on Ubuntu to connect :(
[15:19:27] <jbell> Can I ask you more of a design question than technical?
[15:19:30] <Arjan> oh?
[15:19:38] <Arjan> I use Pidgin on ubuntu, works like a charm with group chat
[15:21:51] <Arjan> but go ahead
[15:39:14] <jbell> Sorry about that, got a phone call.
[15:40:51] <jbell> If I were to create an exam with questions, could to survey module be extended or would it be best to create a custom module?
[15:42:32] <Arjan> I think the survey module can do it
[15:42:45] <Arjan> it also does multiple pages of questions
[15:42:59] <Arjan> the only thing it does not do is persist your survey while you are entering it
[15:43:16] <Arjan> so if youre taking a really long survey and the browser refreshes, you lose the data
[15:43:26] <Arjan> (that is something that we should fix, I think, for long surveys)
[15:45:37] <jbell> Yea, I would probably try to update the answers on the fly, and then maybe provide some review/final submit.
[15:46:43] <jbell> I'm guessing I'd have to add some mechanism to mark correct values to the questions as well.
[15:49:02] <Arjan> ah yes, for feedback
[15:49:07] <Arjan> interesting
[15:50:05] <jbell> I'm still digging into the survey module. Should it work out of the box, when I view a survey, I get an ajax error. I created a custom dispatch and template with {% poll id=id %} and was able to get results to post but I'm not really sure how it's supposed to act out-of-the-box.
[15:51:54] <Arjan> I dont think it gets more out-of-the-box than what you're describing
[15:52:15] <Arjan> the {% poll %} scomp is the entrypoint to entering a survey, basically
[15:55:42] <jbell> So should the form provided at /survey/338/blah-blah work or do I need to specifically call {% poll id=id %} in one of my templates?
[15:58:50] <Arjan> I dont think there is a poll-specific page template provided with zotonic, let me check
[15:59:16] <Arjan> oh actually, there is
[15:59:35] <Arjan> but it just shows a "start" button
[15:59:43] <Arjan> Marc Worrell probably knows how it works
[15:59:57] <Arjan> it seems it should work without writing your own templates though
[16:00:04] <jbell> See issue 2 here. I don't know if it's my implementation of the survey or not https://groups.google.com/forum/?fromgroups=#!searchin/zotonic-developers/mod_survey/zotonic-developers/PNDQTfvBjlc/m9SykTPzsTQJ
[16:00:38] <Arjan> oh so do you still have problems enabling the survey module itself?
[16:01:48] <jbell> No, when I click start I get the ajax error for the #survey-question
[16:02:21] <Arjan> so what does the zotonic console say? still "Error starting module mod_survey"?
[16:02:37] <Arjan> oh hmm
[16:02:47] <Arjan> its the ajax error I see
[16:03:05] <Arjan> if you copypaste the ajax return value that is logged and put it in the console again
[16:03:11] <Arjan> you should get a better error message
[16:03:32] <Arjan> copypaste everything from "$("#survey-question").h"
[16:03:43] <Arjan> up until the last z_unmask
[16:03:56] <Arjan> and paste it again in the console
[16:05:45] <jbell> TypeError: Cannot read property 'top' of null
[16:07:02] <Arjan> ah
[16:07:11] <Arjan> which file / line?
[16:10:41] <jbell> The error stop is in the widget manager.
[16:10:45] <jbell> warn: function(text, obj)
{
obj = obj || '';

if(window.console)
{
console.warn(text, obj);
TypeError ""
}
[16:12:03] <jbell> Not sure if that is what you're asking for?
[16:15:34] <Arjan> dont see anything related to 'top'
[16:19:17] <jbell> would this help to see the error yourself. http://hotseat.5nineshq.com/survey/338/test
[16:21:28] <Arjan> ah yes
[16:22:00] <Arjan> did you customise this page in any way?
[16:24:27] <jbell> I think I modified the project.css file, I don't think I modified survey.tpl or anything under source. I can double check and try and reset 'everything' to factory defaults
[16:28:15] <Arjan> weird
[16:28:28] <Arjan> the issue is that it tries to get a position from a non-existing id
[16:28:33] <Arjan> I know that marc worked on that
[16:28:50] <Arjan> the survey scrolls the window to the position of the first element that has an error
[16:32:27] <jbell> So now I think I'm back to base bootstrap and project css and git status doesn't show any needed commits
[16:34:45] <Arjan> maybe marc knows when he sees your survey page
[16:34:53] <Arjan> he has a dnd status now though
[16:35:19] <Arjan> I can make a small workaround commit for you
[16:35:34] <jbell> Ok, thanks for looking into this
[16:37:50] <Marc Worrell> pong
[16:37:54] <Arjan> it is weird
[16:38:00] <Arjan> http://hotseat.5nineshq.com/survey/338/test <-- marc
[16:38:13] <Arjan> you dont seem to have the survey form
[16:38:34] <Arjan> marc: the JS in the bottom of _survey_question_page.tpl errors
[16:38:39] <Arjan> because it cannot find the form
[16:38:45] <Marc Worrell> I see it - maybe it is because I never tested the new one with a poll - only with the survey itself...
[16:38:49] <Arjan> but it defines the form in that same template
[16:40:03] <Marc Worrell> Indeed, the whole form is missing
[16:40:10] <Marc Worrell> maybe it is using a default page template?
[16:40:25] <Marc Worrell> instead of the survey.tpl
[16:42:17] <Arjan> jbell says he uses a plain vanilla install
[16:42:19] <Arjan> no modifications
[16:42:41] <Arjan> jbell: also no custom dispatch rule named 'survey'?
[16:45:12] <Marc Worrell> The survey.css is included, which is what I expect from the survey.tpl
[16:46:30] <Marc Worrell> I think we have an incompatibility between the mod_base_site templates and the default blog templates
[16:47:06] <Marc Worrell> The block body is not really overruled and the content_attributes block seems to be missing
[16:47:08] <Marc Worrell> {% block content_attributes %}{% include "_language_attrs.tpl" id=id %} id="survey-question"{% endblock %}
{% block body %}
{{ id.body|show_media }}
{% endblock %}
{% block below_body %}
{% include "_survey_start.tpl" %}
{% inherit %}
{% endblock %}
[16:47:41] <Marc Worrell> the below_body is rendered, but everything above (the questions) should only show up after clicking "start"
[16:48:31] <Marc Worrell> and the id is not set on the div around the content area
[16:48:57] <Marc Worrell> so we should check the "page.tpl" templates
[16:49:24] <Marc Worrell> basic idea is that after clicking "start" the body and the start button are replaced with the survey questions
[16:49:44] <jbell> Should I temp remove the site/page.tpl and others and recompile
[16:54:07] <Marc Worrell> just add a block body around your body part
[16:54:35] <Marc Worrell> and add a block content_attributes in a div around the body
[16:55:25] <Marc Worrell> check page.tpl in mod_base_site/phone|tablet
[16:55:29] <Marc Worrell> {% block content %}
<div {% block content_attributes %}{% include "_language_attrs.tpl" id=id %}{% endblock %}>
{% include "_title.tpl" %}
{% block main %}
{% include "_meta.tpl" %}
{% block summary %}
{% if m.rsc[id].summary %}
<p class="summary"><b>{{ m.rsc[id].summary }}</b></p>
{% endif %}
{% endblock %}
{% include "_address.tpl" %}
{% block subnav %}
{% include "_subnav.tpl" %}
{% endblock %}
{% block body %}
<div class="body">
{{ m.rsc[id].body }}
{% include "_blocks.tpl" %}
</div>
{% endblock %}
{% block below_body %}{% endblock %}
{% block seealso %}
{% include "_content_list.tpl" list=id.o.hasfeatured %}
{% include "_content_list.tpl" list=id.o.haspart in_collection=id %}
{% include "_content_list.tpl" list=id.o.relation %}
{% endblock %}

{% block thumbnails %}
{% include "_page_thumbnails.tpl" %}
{% endblock %}
{% block sidebar_collection %}
{% with m.rsc.sidebar_collection.id as id %}
{% include "_content_list.tpl" list=id.o.haspart %}
{% endwith %}
{% endblock %}
{% endblock %}
</div>
{% endblock %}
[16:56:03] <Marc Worrell> (above is used for phone)
[16:56:07] <Marc Worrell> below is for tablet:
[16:56:08] <Marc Worrell> {% block main %}
<div {% block content_attributes %}{% include "_language_attrs.tpl" id=id %}{% endblock %}>
{% include "_meta.tpl" %}
{% block summary %}
{% if m.rsc[id].summary %}
<p class="summary"><b>{{ m.rsc[id].summary }}</b></p>
{% endif %}
{% endblock %}
{% block depiction %}
{% include "_page_depiction.tpl" %}
{% endblock %}
{% include "_address.tpl" %}
<div class="body">
{% block body %}
{{ m.rsc[id].body|show_media }}
{% include "_blocks.tpl" %}
{% endblock %}
</div>
{% block below_body %}
{% endblock %}

{% block seealso %}
{% include "_content_list.tpl" list=id.o.haspart in_collection=id is_large %}
{% include "_content_list.tpl" list=id.o.relation is_large %}
{% endblock %}

{% block thumbnails %}
{% include "_page_thumbnails.tpl" %}
{% endblock %}
</div>
{% endblock %}
[16:56:38] <Marc Worrell> Tricks are the "<div {% block content_attributes %}{% include "_language_attrs.tpl" id=id %}{% endblock %}>"
[16:56:58] <Marc Worrell> and the {% block body %}
[16:57:16] <Marc Worrell> all inside the div with the content attributes will be replace by the questions being asked
[16:57:47] <Marc Worrell> you can also make your own "survey.tpl" that adds these elements to your page.tpl
[16:58:44] Arjan leaves the room
[17:00:30] <jbell> Okay, let me digest this and get it working :) Thanks
[17:02:10] Arjan joins the room
[17:03:13] <Marc Worrell> I have to go to dinner, Mr T is waiting!
[17:03:48] <jbell> Enjoy! Thanks
[17:03:49] <Arjan> cu
[17:12:06] <jbell> Okay, now we're cooking with grease. There's really no reason I need to use any of the blog stuff anyway. I didn't realize the baked-in goodness that was getting overwritten.
[17:23:40] jbell leaves the room
[17:57:04] Jeff Bell joins the room
[17:57:46] <Arjan> Jeff Bell: you can even set the room to auto-join
[17:57:57] <Arjan> so when you open pidgin you're idling in the chatroom immediately ;)
[17:59:39] <Jeff Bell> Cool
[17:59:47] Arjan leaves the room
[18:01:11] Jeff Bell leaves the room
[18:02:03] Jeff Bell joins the room
[18:02:43] Jeff Bell leaves the room
[18:03:01] Jeff Bell joins the room
[18:05:59] Protagores leaves the room
[18:14:09] Arjan joins the room
[18:51:30] Arjan leaves the room
[19:57:44] Arjan joins the room
[21:17:14] Maas_ joins the room
[21:34:01] Arjan leaves the room
[21:36:10] Arjan joins the room
[21:38:41] <Jeff Bell> Hola!
[21:50:15] Arjan leaves the room
[21:53:32] Maas_ leaves the room
[21:54:05] Maas leaves the room
[21:54:53] Jeff Bell leaves the room
[22:02:29] Jeff Bell joins the room
[22:02:34] Jeff Bell leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!