TemplaVoila Container with date based output - typo3

I have a TemplaVoila section (Slideshow) with multiple containers.
Each container is a slide for the slideshow.
I want to define a start and stop date for every slide (= Container).
But i don't know how i could achieve this.
Is there a system solution present?
Or do i have to define two textfields "Date start" and "Date stop"?
But then: How do i control, if the slide (Container) is shown based on today's date?
I already tried to find a solution in TVs docs and by asking Google, but nothing helped by now.

Related

How to create a scrollable list for Watch OS that has a fixed size?

I'm a beginner to Watch OS programming (I'm using Storyboard) and would like some help with scrollable lists.
I need to create a scrollable list of numbers (e.g. from 1 to 20) that changes when user uses scrolls with the crown. I know how to create it using a Table, but the problem is, I don't know how to contain it to a single area.
I have added a screenshot of the "Sleep Cycle" app that has a similar feature. I would like to do the exact same thing, but instead of time, I need to show a list of numbers.
Edit: Another example would be "Zero" where the hours field is scrollable:
Please check out this library and try to customize it as per your use case:
https://github.com/calda/WatchKitTimePicker

Grafana custom time range for one panel only

I want to slide the panel graph for 5minute into the future, I know I can do this
using 'Custom Range' at the top right of the screen and setting to 'to' field to 'now+5m' .
However this will be applied to all my panels.
Now..I want this for only a specific panel.
What I have found is time range tab but it only allows to truncate the time but cant push forward it.
Is there a way to use this only for one panel?
I have found a solution using addition: 0m+5m
Seems grafana doesnt substracts the value of the amount field from the current time as a whole
like timeshift-(Xm+Ym)
but performs the operations after each other
like timeshift-Xm+Ym
Could be a bug tbh.

Need help to enter date from date picker

I have been trying to automate booking a flight on www.kayak.com/flights using Selenium webdriver in java. The issue I am having is that I am unable to enter date into the departing date and arrival date boxes, mainly because when you click in the date box, it displays a popup calendar or date picker. My many attempts to identify the xpath for the date picker itself and the date elements have not been successful as whenever I try to click on the date element in the picker, it changes focus. So, unless I can identify them somehow, I can't enter any data into them. I am sure there has to be someone out there who can help me with this dilemma. Thanks.
If you're using firebug to grab the xpath, you should see a dropdown menu right below the inspect element button. You're probably dealing with an iframe and you will need to switch focus to that frame. It should be easy to check which iframe you want if there are multiple (because the blue dotted frames will display) by passing this xpath: //*
You can do this several ways:
1) driver.switchTo().frame(name_or_id)
2) driver.switchTo().frame(index)
If you're still having troubles, you can always guess and check by starting with 0 and increasing it, so driver.switchTo().frame(0)

Customizing the Cells in the DatePicker in GWT

I was looking to customize the cells in the GWT DatePicker widget. By that I mean instead of showing only the date such as: "1" for the first day of the month, I want to display "1 (My Birthday)" or any other information in the parentheses. (I want the info to be rendered dynamically).
I tried creating my own CalendarView to do so but that was extremely complicated. Is there any other way that you know to do so?
Thanks!
So I didn't receive a response for a while and assumed that there is no other way to do so. In order to implement what I needed, I created my own custom CalendarView that closely resembled the DefaulCalendarView class. After doing so I added functionality to it and can now display anything on the cells.

Alternatives for picker in iphone/iOS app?

I am showing a form the user fills in my iPhone app. One of the fields is a set of 2 or 3 dates from which the user has to pick one. Putting a picker, or bringing up a table view just for this takes up too much space, leaving no room for the other fields. Is there any simpler way to do this?
To do this you can put two or three arrowed label with text like "Select Date" upon click of it you can show one view that allow user to select the date; once selected you can back to the original view. You can do this for all three (or two) dates and get those date on form view.
I am giving you idea of how you can design apps; if you want code i can assist that too but from your question it seems you want design ideas.
You can go for your custom drop down/combo box, but their is no inbuilt functionality present for this.
Also following is mentioned in apple HIG guideline, you need to consider those as well-
(http://developer.apple.com/library/IOs/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html)
Guidelines
Use a picker to make it easy for people to choose from a set of values. It’s often best to use a picker when people are familiar with the entire set of values. This is because many, if not most, of the values are hidden when the wheel is stationary. If you need to provide a large set of choices that aren’t well known to your users, a picker might not be the appropriate control.
Consider using a table view, instead of a picker, if you need to display a very large number of values. This is because the greater height of a table view makes scrolling faster.
Use the translucent selection bar to display contextual information, such as a unit of measurement. Do not display such labels above the picker or on the wheel itself.
On iPad, present a picker only within a popover. A picker is not suitable for the main screen.