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:

        publication_after=“today”
        publication_before=“tomorrow"

The documentation is incomplete regarding the possible terms.
You can check z_datetime:to_datetime/2 for more information.

- Marc


> On 05 Dec 2016, at 11:38, heiheshang <[email protected]> wrote:
> 
>  {% with m.ticket.morning|date:"Y-m-d 
> H:i:s":"Asia/Yakutsk",now|date:"Y-m-d":"Asia/Yakutsk"++" 23:59:59" as 
> morning,evening %}
>     {% for doc in m.search.paged[{query cat='schedule' 
> publication_after=morning publication_before=evening}] %}
> 
> 
> how to set the value of a variable 'morning' field html ?
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to