Sjabloon:Overzicht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 34: Regel 34:
 
--><div class="col-md-6" ></div></div></div><div class="bg-gray row pt-4 {{#if:{{{Tag2|}}}||hidden}}">{{#if:{{{Tag2|}}}|<div class="main-wrapper pt-4 {{{Type|}}}"><div class="row">{{#ask:[[Class::Bericht]][[Tags::{{{Tag2|}}}]][[Domein::{{SERVERNAME}}]]|?Datum|?Titel|?Samenvatting|?-Page=Image|sort=Datum|order=desc|link=none|format=complexarray|name=@berichten2}}<!--  
 
--><div class="col-md-6" ></div></div></div><div class="bg-gray row pt-4 {{#if:{{{Tag2|}}}||hidden}}">{{#if:{{{Tag2|}}}|<div class="main-wrapper pt-4 {{{Type|}}}"><div class="row">{{#ask:[[Class::Bericht]][[Tags::{{{Tag2|}}}]][[Domein::{{SERVERNAME}}]]|?Datum|?Titel|?Samenvatting|?-Page=Image|sort=Datum|order=desc|link=none|format=complexarray|name=@berichten2}}<!--  
 
  -->{{#camap:@berichten2|@@@|
 
  -->{{#camap:@berichten2|@@@|
   <div class="col-md-4">
+
   <div class="col-md-6">
 
     <div class="card"><!--  
 
     <div class="card"><!--  
 
       --><div class="card-top">
 
       --><div class="card-top">
Regel 43: Regel 43:
 
         <div><small><b>{{#if:@@@[Datum]|{{#time:d M Y|@@@[Datum]|nl}} }}</b></small></div>
 
         <div><small><b>{{#if:@@@[Datum]|{{#time:d M Y|@@@[Datum]|nl}} }}</b></small></div>
 
         <div><b>@@@[Titel]</b></div>
 
         <div><b>@@@[Titel]</b></div>
         <div class="text-read-more">@@@[Samenvatting]<i> {{#widget:link|type=a|href=@@@[cafullurl]|text=Lees meer|class=red}}</i></div>
+
         <div class="text-read-more">@@@[Samenvatting]</div>
 
       </div>     
 
       </div>     
 
     </div>
 
     </div>

Versie van 26 jan 2021 18:28

This is the "Overzicht" template

  • Version=1.0
  • Version notes=1.0 - First managed version, added class 'hidden' to hide grey row if there is no Tag2
{{Overzicht
|Tag=<tag that is used as selection for main items>
|Tag2=<tag that is used as selection for secondary items>
|Title=
|Type=<optioonal 'list' for a list view>
|Text=<introductory text>
}}