Re: [Zotonic-Dev] how to set the value of a variable morning field html ?

2016-12-06 Thread Marc Worrell
If it is a search question, from a html form, then you can add the query arguments using the “qargs” Example, say you want to search for a publication date. This date is then filled in in some form: Then on the page (or postback) loaded via the form post you can use: {% print

Re: [Zotonic-Dev] how to set the value of a variable morning field html ?

2016-12-06 Thread heiheshang
I ask about something else. publication_after=document.getElementById('id').value how to do so? среда, 7 декабря 2016 г., 0:38:59 UTC+9 пользователь Marc Worrell написал: > > What is the m.ticket.morning? > > I assume you want something from a certain day till now. > > We have some special syn

Re: [Zotonic-Dev] how to set the value of a variable morning field html ?

2016-12-06 Thread Marc Worrell
What is the m.ticket.morning? I assume you want something from a certain day till now. We have some special syntax you might want to use: http://docs.zotonic.com/en/latest/developer-guide/search.html#date-start-after In this case we also have “today” So you could do something like: pu

Re: [Zotonic-Dev] Forcing z_language

2016-12-06 Thread Antoine
Marc ! In a dispatch rule you need to use “z_language”, you could do it like this: {page, ["page", id, z_language, slug ], controller_page, [ … ]} This is brilliant ! How I didn't find it by myself :-) Thank you so much ! Le mardi 6 décembre 2016 09:05:53 UTC+1, Marc Worrell a écrit : > > H

Re: [Zotonic-Dev] Forcing z_language

2016-12-06 Thread Marc Worrell
Hi Antoine, What you are trying will work in the master (1.0-dev). In the master the z_language variable is handled in a special way. In the 0.x you can set the language in the request handler or for template expressions like: {{ _”Hello” with z_language = `de` }} (Note the back-ticks,