Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The definition of a template is a concept created to set how each content will appear on the interfaces.

A subfolder should be created in the GUI\Custom\ES\Template folder with the name to be specified for Template and a file named Default.html should be placed in it.

Template selection methods

  •  Template=<TemplateFolderName> can be passed through the url. The value transmitted will be stored in the browser.
  • By adding under GenericSettings in project settings
    •  The default Template can be specified on a project basis by the definion: "Template":"<TemplateFolderName>"
    •  The Template concept can be turned off by the definition: "DisableTemplate":true
    • You can define a single mandatory Template that can be used in a project by the definition: "ForceTemplate":"<TemplateFolderName>"  . When this definition is made, all other Template determination methods are ignored.
  • The "Template":"<TemplateFolderName>" definition to be added under SystemJSONSettings can specify the default Template for all projects.


A value of "none" means that a Template is not selected.


Definitions and Examples


Default.html Template ile arama sonucu gösterimi adresinde anlatılan yollarla hazırlanacak dece-template içerebileceği gibi, aynı sayfada veya diğer dokümanlarda anlatılan yollarla hazırlanmış özel yöntemler bulundurabilir. Template sadece doküman görünümünü değiştirmeli, Sayfalardaki diğer alanlara müdehale etmemelidir. Renkler Tema, Düzen bir Layout konusudur.

Html css can contain script definition. It can load another css or script.

"dece-template" id values and functions that can be included in the Default.html

  • geodi-template-default : Used to change the appearance of a single content on the DLV home screen.
  • geodi-template: Dikey listelerde ekranında tek bir içeriğin görünümünü değiştirmekte kullanılır.
  • geodi-template-hor : Yatay listelerde ekranında tek bir içeriğin görünümünü değiştirmekte kullanılır.
  • geodi-container-template-default: DLV ana ekranında İçeriğin ve tüm listenin görünümü değiştirmekte kullanılır.
  • geodi-container-template:  Dikey listelerde içeriğin ve tüm listenin görünümü değiştirmekte kullanılır.
  • geodi-container-template:  Yatay listelerde içeriğin ve tüm listenin görünümü değiştirmekte kullanılır.

Click here for an example interface where you can try to edit a template.

Example Default.html content
<script type="dece-template" id=geodi-template-default >
	<div class="DocAll" {{ data.GetDocItemAttr() }}>
		<h1><a {{ data.GetHrefFull() }}> {{ data.DisplayName }}  </a> -  {{ data.AdditionalValues.Date }} </h1>
		<span class="SummaryText __textclass geodiFormatable" contentid="{{data.ContentIdentifier}}">{{data.Summary}}</span>
	</div>
</script>
  • No labels