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

GMT+2
[03:30:50] simon.smithies leaves the room
[06:25:12] simon.smithies joins the room
[06:57:10] simon.smithies leaves the room
[06:58:04] simon.smithies joins the room
[07:48:07] simon.smithies leaves the room
[07:58:36] arcusfelis joins the room
[08:57:28] simon.smithies joins the room
[09:01:12] Arjan joins the room
[09:06:32] arcusfelis leaves the room
[09:58:28] <simon.smithies> Hiya
[09:58:40] <simon.smithies> quick question if someon has a minute re css
[09:59:13] <simon.smithies> in a bootstrap site, background-image urls come out like this:
[09:59:16] <simon.smithies> /lib/bootstrap/css/bootstrap~bootstrap-responsive~bootstrap-base-site~/css/lib/images/logo.png
[09:59:38] <simon.smithies> the css code that suplied that was this:
[09:59:40] <simon.smithies> background-image: url('lib/images/logo.png');
[10:00:05] <simon.smithies> what''s the trick for doing background images now?
[10:01:48] <simon.smithies> I guess I can take site.css out of the {% lib %} tags, but wonder if there's a better way?
[10:09:09] <simon.smithies> Actualy that doesn't work either
[10:13:09] <Arjan> you should make the URL absolute
[10:13:19] <Arjan> like this: background-image: url('/lib/images/logo.png');
[10:13:24] <Arjan> so extra / in front of lib
[10:14:09] <Arjan> that is a common gotcha with this CSS concatenation trick that we use
[10:14:14] <Arjan> it messes up relative paths..
[10:14:38] <simon.smithies> do I also need a dispatch rule for these images?
[10:15:03] <Arjan> no,
[10:15:10] <Arjan> if you create a folder called lib/images under your site
[10:15:21] <Arjan> you can just put it there
[10:16:04] <simon.smithies> so site.css is in lib/css, and my images are in lib/images
[10:16:24] Maas joins the room
[10:16:47] <simon.smithies> the ones i reference in my html like this:
[10:16:49] <simon.smithies> <img id='image5' src='lib/images/twitter.png' class='image' />
[10:16:59] <simon.smithies> come through ok
[10:18:17] <Arjan> yes
[10:18:32] <Arjan> but in lib CSS files, the images are relative to the local "directory" the CSS is served from
[10:18:43] <simon.smithies> ok - good to know!
[10:18:45] <Arjan> which does not make sense since the path is a concatenation of all kind of files
[10:19:00] <Arjan> so just within CSS you need to add /
[10:21:22] <simon.smithies> I thought I was going mad ... my file is named "logo.png" ... it is still showing the transparent zotonic logo instead of the big red one I'm looking out for!
[10:21:49] <simon.smithies> clear cache and hey presto!
[10:22:09] <Arjan> yes, that's neede whenever you add new files under lib/ or templates/
[10:23:44] <simon.smithies> easy when you know how :)
[11:16:45] arcusfelis joins the room
[11:24:58] Maas79869 joins the room
[11:24:58] Maas79869 leaves the room
[11:24:58] Maas9299 joins the room
[11:24:58] Maas9299 leaves the room
[11:24:58] Maas22297 joins the room
[11:24:58] Maas22297 is now known as Maas9299
[11:24:58] Maas9299 leaves the room
[11:24:58] Maas22856 joins the room
[11:26:40] Maas leaves the room
[11:29:29] Arjan leaves the room
[11:46:06] simon.smithies leaves the room
[12:18:48] Maas22856 leaves the room
[12:38:00] Maas joins the room
[12:42:11] <Maas> Working on vagrantfile's for a ubuntu precise box with erlang solutions R15 and R16 releases.
[12:44:08] <Maas> Need to check if R15 inets http client is a bit better than R14.
[13:36:27] Maas leaves the room
[13:36:58] Maas joins the room
[13:55:44] jeff.5nines joins the room
[14:38:17] <Maas> https://gist.github.com/mmzeeman/5330333
[15:31:42] arcusfelis leaves the room
[15:34:52] arcusfelis joins the room
[16:34:16] Maas leaves the room
[17:42:21] Arjan joins the room
[18:49:04] <Arjan> maas - do you use chef?
[18:49:10] <Arjan> because they have a pretty good erlang recipe
[18:49:37] <Arjan> I even made a zotonic recipe for chef but its not complete yet
[19:42:33] Arjan leaves the room
[19:54:25] Arjan joins the room
[20:00:19] Arjan leaves the room
[20:03:10] Arjan joins the room
[20:36:43] simon.smithies joins the room
[21:00:29] simon.smithies leaves the room
[22:09:34] simon.smithies joins the room
[22:35:28] arcusfelis leaves the room
[22:48:55] simon.smithies leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!