Util
agencyLogo
Parametros
Variable | Tipo | Por defecto | Requerido |
linkRel | string | nofollow noreferrer | false |
color | string | default | false |
folder | string | agencyLogo | false |
showOnlyText | bool | false | false |
name | string | '' | false |
id | string | '' | false |
class | string | '' | false |
classLink | string | '' | false |
link | string | '' | false |
logo | string | '' | false |
extension | string | '.png' | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.agencyLogo({
name: 'logicommerce.com',
id: 'logoLogicommerce',
class: 'logoLogicommerce',
classLink: 'logoLogicommerce',
link: 'https://www.logicommerce.com',
logo: 'logicommerce',
folder: 'agencyLogo',
linkRel: 'nofollow noreferrer',
color: 'default'
}) }}
Relacionados
macros/modes/{{coreMode}}/util/agencyLogo.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/AgencyLogo.php
breadcrumb
Parametros
Variable | Tipo | Por defecto | Requerido |
showHome | bool | true | false |
showArea | bool | true | false |
maxLevels | int | 0 | false |
tag | string | FWK/ViewHelpers/Util/Macro/Breadcrumb::TAG_UL | false |
Valores disponibles | |||
FWK/ViewHelpers/Util/Macro/Breadcrumb::TAG_UL FWK/ViewHelpers/Util/Macro/Breadcrumb::TAG_DIV |
|||
data | array | null | true |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.breadcrumb({
data: route.breadcrumb
}) }}
Relacionados
macros/modes/{{coreMode}}/util/breadcrumb.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/Breadcrumb.php
coreJsEnvironmentVariables
Parametros
Variable | Tipo | Por defecto | Requerido |
mobileAgents | string | '' | false |
languageCode | string | session.generalSettings.language | false |
countryCode | string | session.generalSettings.country | false |
Ejemplo
{% import macrosCore macrosCore.util as utilMacros %}
{{ utilMacros.coreJsEnvironmentVariables({
languageCode: route.language
}) }}
Relacionados
macros/modes/{{coreMode}}/util/coreJsEvironmentVariables.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/CoreJsEvironmentVariables.php
coreJsSessionVariables
Parametros
Variable | Tipo | Por defecto | Requerido |
user | SDKDtosUserUser | null | true |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.coreJsSessionVariables({
user: session.user
}) }}
Relacionados
macros/modes/{{coreMode}}/util/CoreJsSessionVariables.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/CoreJsSessionVariables.php
countriesLinksForm
Parametros
Variable | Tipo | Por defecto | Requerido |
class | string | '' | false |
countriesLinksForm | FWKCoreFormForm | null | true |
acceptRouteWarning | bool | false | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.countriesLinksForm({
class: 'my-class',
countriesLinksForm: controllerItem.countriesLinksForm
}) }}
Relacionados
macros/modes/{{coreMode}}/util/countriesLinksForm.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/CountriesLinksForm.php
fillDataFunction
Parametros
Variable | Tipo | Por defecto | Requerido |
user | SDKDtosUserUser | null | true |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.fillDataFunction({
user: session.user
}) }}
Relacionados
macros/modes/{{coreMode}}/util/fillDataFunction.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/FillDataFunction.php
lcCommerceData
Parametros
Variable | Tipo | Por defecto | Requerido |
route | SDKDtosCommonRoute | null | true |
pageProduct | SDKDtosCatalogProductProduct | null | false |
pageCategory | SDKDtosCatalogCategory | null | false |
pageProducts | SDKCoreDtosElementCollection | null | false |
order | SDKCoreDtosDocumentsDocument | null | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.lcCommerceData({
route: route
}) }}
Relacionados
macros/modes/{{coreMode}}/util/lcCommerceData.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/lcCommerceData.php
lcCommerceSession
Parametros
Variable | Tipo | Por defecto | Requerido |
session | FWKCoreResourcesSession | null | true |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.lcCommerceSession({
session: session
}) }}
Relacionados
macros/modes/{{coreMode}}/util/lcCommerceSession.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/lcCommerceSession.php
pagination
Parametros
Variable | Tipo | Por defecto | Requerido |
pagination | SDKCoreDtosPagination | null | true |
pagerParameters | FWKCoreThemeDtosPagination | null | true |
mode | string | FWK/ViewHelpers/Util/Macro/Pagination::MODE_BLOCKS | false |
Valores disponibles | |||
FWK/ViewHelpers/Util/Macro/Pagination::MODE_BLOCKS FWK/ViewHelpers/Util/Macro/Pagination::MODE_TEXT |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.pagination({
pagination: products.pagination,
pagerParameters: themeConfiguration.category.productList.pagination
}) }}
Relacionados
macros/modes/{{coreMode}}/util/paginationText.html.twig
macros/modes/{{coreMode}}/util/paginationBlock.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/Pagination.php
pluginsAssets
Parametros
Variable | Tipo | Por defecto | Requerido |
assets | array | [] | false |
ambience | string | '' | false |
position | string | '' | false |
type | string | '' | false |
Ejemplo
{% import macrosCores.util as utilMacros %}
{{- utilMacros.pluginsAssets({
assets: pluginsAssets.items,
position: constant('SDKEnumsTrackerPosition::HEAD_TOP')
}) -}}
Relacionados
macros/modes/{{coreMode}}/util/pluginsAssets.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/PluginsAssets.php
printableContent
Parametros
Variable | Tipo | Por defecto | Requerido |
windowAttributes | string | '' | false |
content | string | '' | false |
hrefType | string | '' | false |
title | string | '' | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.printableContent({
windowAttributes: 'width=800,height=600,location=no,left=200px',
content: printableContent,
hrefType: '_blank',
title: 'Terms of user and privaty policy'
}) }}
Relacionados
macros/modes/{{coreMode}}/util/printableContent.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/PrintableContent.php
routeWarningAlertModal
Parametros
Variable | Tipo | Por defecto | Requerido |
route | SDKDtosCommonRoute | null | true |
showCountriesLinksForm | bool | false | false |
countriesLinksFormAcceptRouteWarning | bool | true | false |
countriesLinksFormClass | string | '' | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.routeWarningAlertModal({
route: route
}) }}
Relacionados
macros/modes/{{coreMode}}/util/routeWarningAlertModal.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/routeWarningAlertModal.php
searchForm
Parametros
Variable | Tipo | Por defecto | Requerido |
form | FWKCoreFormForm | null | true |
showLabel | bool | true | false |
showPlaceholder | bool | true | false |
minCharacters | int | 3 | false |
searchProducts | bool | true | false |
searchCategories | bool | false | false |
searchBlog | bool | false | false |
searchPages | bool | false | false |
searchNews | bool | false | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.searchForm({
form : formSearch,
showLabel: false,
minCharacters: 3,
showPlaceholder: true
}) }}
Relacionados
macros/modes/{{coreMode}}/util/searchForm.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/SearchForm.php
trackers
Parametros
Variable | Tipo | Por defecto | Requerido |
trackers | array | [] | false |
ambience | string | '' | false |
position | string | '' | false |
type | string | '' | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{ utilMacros.trackers({
trackers: trackers,
position: constant('SDKEnumsTrackerPosition::HEAD_TOP')
}) }}
Relacionados
macros/modes/{{coreMode}}/util/trackers.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/Trackers.php
viewSection
Parametros
Variable | Tipo | Por defecto | Requerido |
itemList | FWKCoreThemeDtosItemList | null | true |
showElementsList | string | false | |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{- utilMacros.viewSection({
itemList: themeConfiguration.category.productList
}) -}}
Relacionados
macros/modes/{{coreMode}}/util/perPage.html.twig
macros/modes/{{coreMode}}/util/sort.html.twig
macros/modes/{{coreMode}}/util/template.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/ViewSection.php
physicalLocationsForm
Parametros
Variable | Tipo | Por defecto | Requerido |
form | FWKCoreFormForm | null | true |
levels | integer | 1 | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{- utilMacros.physicalLocationsForm({
form: physicalLocationsForm,
levels: 1,
restricted: false
}) -}}
Relacionados
macros/modes/{{coreMode}}/util/physicalLocationsForm.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/PhysicalLocationsForm.php
physicalLocationsFilter
Parametros
Variable | Tipo | Por defecto | Requerido |
physicalLocationsFilter | array | [] | false |
pickupPointProviders | ElementCollection | null | false |
countries | ElementCollection | null | false |
defaultCountry | string | false | |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{- utilMacros.physicalLocationsFilter({
countries: countries,
defaultCountry: defaultCountry,
physicalLocationsFilter: physicalLocationsFilter
}) -}}
Relacionados
macros/modes/{{coreMode}}/util/physicalLocationsFilter.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/PhysicalLocationsForm.php
physicalLocationsMap
Parametros
Variable | Tipo | Por defecto | Requerido |
physicalLocationsItems | array | [] | false |
mapsApiKey | string | false | |
showAllMapMarkersButton | bool | false | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{- utilMacros.physicalLocationsMap({
countries: countries,
defaultCountry: defaultCountry,
physicalLocationsMap: physicalLocationsMap
}) -}}
Relacionados
macros/modes/{{coreMode}}/util/physicalLocationsMap.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/PhysicalLocationsForm.php
physicalLocations
Parametros
Variable | Tipo | Por defecto | Requerido |
physicalLocations | ElementCollection | null | false |
optionName | string | physicalLocation | false |
optionClass | string | false | |
addCountrySelector | bool | false | false |
addStateSelector | bool | false | false |
addCitySelector | bool | false | false |
addPostalCodeSelector | bool | false | false |
addAllOption | bool | false | false |
showInMap | bool | false | false |
mapsApiKey | string | null | false |
defaultPhysicalLocationId | int | 0 | false |
showDirections | bool | true | false |
physicalLocationFields | array | ['address', 'postalCode', 'city', 'state', 'country', 'phone', 'email', 'information'] | false |
showPlacesAutocomplete | bool | false | false |
showAllMapMarkersButton | bool | false | false |
Ejemplo
{% import macrosCore.util as utilMacros %}
{{- utilMacros.physicalLocations({
countries: countries,
defaultCountry: defaultCountry,
physicalLocationsFilter: physicalLocationsFilter
}) -}}
Relacionados
macros/modes/{{coreMode}}/util/physicalLocations.html.twig
macros/modes/{{coreMode}}/util/physicalLocationInformation.html.twig
View Helper
FWK/ViewHelpers/Util/Macro/PhysicalLocationsForm.php