first commit
This commit is contained in:
23
admin/articles.photos.php
Normal file
23
admin/articles.photos.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
$main_class = 'ArticlesPhotos';
|
||||
|
||||
class ArticlesPhotos extends BaseAdminPhotos
|
||||
{
|
||||
use DatabaseCommunication;
|
||||
use \KupShop\ContentBundle\Util\BlocksTrait;
|
||||
|
||||
protected $relation_table_name = 'photos_articles_relation';
|
||||
protected $photo_type = 4;
|
||||
protected $tablefield = 'id_art';
|
||||
protected $photo_nametype = 'Article';
|
||||
protected $copy_from = 'z článku';
|
||||
protected $search_field = 'article';
|
||||
|
||||
public function handleMovePhoto()
|
||||
{
|
||||
parent::handleMovePhoto();
|
||||
|
||||
$this->updateBlocksPhotosPositions($this->getID(), 'articles', $this->tablefield);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user