Tmobile – wstępne info

  Tmobile

Podstawowy szablon ftl:

<#assign hst=JspTaglibs["http://www.hippoecm.org/jsp/hst/core"] >


<@hst.defineObjects />
<!doctype html>
<#include "../../../include/imports.ftl">
<html lang="pl">
<head>
<meta charset=utf-8>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1">
<@hst.include ref="scripts"/>
<@hst.include ref="gtm"/>
<@hst.include ref="cookiebar-styles"/>
<@hst.headContributions categoryExcludes="htmlBodyEnd, scripts" xhtml=true/>
</head>
<body>
<@hst.include ref="gtmBody"/>
<@hst.include ref="alertbar"/>
<@hst.include ref="cookiebar"/>
<#if hstRequest.requestContext.cmsRequest>
<div style="${applyWidth()}">
<@hst.include ref="main"/>
</div>
<#else>
<@hst.include ref="main"/>
</#if>
<@hst.headContributions categoryIncludes="htmlBodyEnd, scripts" xhtml=true/>
</body>
</html>

Adres podstrony Covid

http://webcms.dev.t-mobile.pl/firma/covid-19

Linki wewnętrzne

Kiedy linkujesz coś z freemakera, rób to tak

<@hst.webfile path="/css/libs.css"/>

Kiedy linkujesz coś co jest dodane przez assets z normalnego panelu

<@hst.link path="/binaries/content/assets/css/cookies.css"/>

gdzie /css/cookies.css to ścieżka do wybranego pliku. Łatwo można ją podejrzeć i skopiować z paska adresu:

Tworzenie typów treści

W treść trzeba zaznaczyć u góry „document types”. I np w firma widzisz article. Jak edytujesz możesz dodawać pola z prawej kolumny

Sprawdzanie szablonu danej strony

/hst:hst/hst:configurations/firma/hst:workspace/hst:pages

Freemarker

https://documentation.bloomreach.com/14/library/concepts/web-application/freemarker-snippets.html