It is a good idea that Yii2 team implements the
attribute:url
to denote that the data is a link.
Now, I’m wondering if the option to open the link in new tab or new window is already implement? I’m thinking of something like
facebook_page:url:new
Below is my implementation of :url.
DetailView::widget([
'model' => $model,
'attributes' => [
'address',
'contact',
['attribute' => 'square_logo', 'visible' => false],
['attribute' => 'banner_logo', 'visible' => false],
'facebook_page:url',
['attribute' => 'email:email', 'visible' => false],
'home_page:url',
['attribute' => 'date_register', 'value' => date('F d,Y g:i a', $model->date_register)],
],
])