Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
TagCloud example
$this
->
View
(
)
->
assign
(
[
'sArticles' =>
$convertedProducts
, 'articles' =>
$convertedProducts
]
)
;
}
/** * Tag cloud by category * * @return void */
public
function
tagCloudAction
(
)
{
$config
=
$this
->container->
get
(
'plugins'
)
->
Frontend
(
)
->
TagCloud
(
)
->
Config
(
)
;
if
(
empty
(
$config
->
get
(
'show'
)
)
)
{
return
;
}
$controller
=
$this
->
Request
(
)
->
getParam
(
'sController',
$this
->
Request
(
)
->
getControllerName
(
)
)
;
if
(
str_contains
(
$config
->
get
(
'controller'
)
,
$controller
)
)
{
$this
->
View
(
)
->
assign
(
'sCloud',
$this
->container->
get
(
'modules'
)
->
Marketing
(
)
->
sBuildTagCloud
(
$this
->
Request
(
)
->
getParam
(
'sCategory'
)
)
)
;
}