How to restrict previous date display in custom forms in drupal 8 ?

I created a custom module for form which accepts from date and to date as user input i would like to restrict the user from selecting a date prior to current date. below is my code snippet.

$form['oneway']['from_date'] = array (
'#type' => 'date',
'#title' => t('From Date'),
'#date_year_range' => '-80:0',
'#required' => TRUE,
);

Please help me out ....

Translation fallback / no translation

I’m running a Drupal 8 page with translations. Works good so far.
But I do have some pages that won't be translated, there are just available in one (the main) language.

The problem is, I see those not translated pages and menu items from the main language in my secondary language.
How do I fix this?

For Drupal you could do this with Entity Translation and there was a setting, but since it’s core, I can't find anything similar to it.

State of art for Drupal v8 and Commerce modules

Hi all

I would be greatfull if anyone can give some advise on what to use for building an ecommerce site.

I am a drupal v7 user and have built a digital commerce site using Drupal commerce. I need to now build a real commerce (tangible products) site but unsure if I should stick with Drupal v7 or migrate to Drupal v8.

Hows the commerce module support for Drupal v8, do you reccommend going with D8 and commerce or should I stick to D7

Appreciate your suggestions!

Drupal 8.0.6 with Video module 8.x-1.2 can't display uploaded mp4 video file

I installed Drupal 8.0.6 and Video module 8.x-1.2 today. Two video content types have been created(video embedded and video uploaded). The embedded video can play video from youtube and vimeo. However after I uploaded a mp4 video file content to the drupal site as a node successfully, it can't be played. There is no video thumbnail showing on the browser. Any comments are appreciated.

Kevin

Listhandler or work-alike for D7/8

Is there a work-alike module for Listhander that will run on Drupal 7 or 8?

TIA.

How to hide block when content is unpublished and block is empty?

Is there a way to hide a block when the content it contains is unpublished and the block is empty?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x