Sujet fermé
Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5

[résolu] "Bloc" sélection de page qui disparaît
#1

Citation :#~~~~~ NE PAS SUPPRIMER CE BLOC ~~~~~
#~ Version du CMS: 1.7.1
#~ Nom de l'hébergeur : ovh
#~ Informations Système :
#~~~~~ NE PAS SUPPRIMER CE BLOC ~~~~~
(Problème posté également sur le forum cmsms.org : http://forum.cmsmadesimple.org/index.php...71.0.html)
Bonsoir,

J'ai un petit problème avec le module News, dans mon gabarit j'ai prévu qu'on puisse changer de page en haut et bas de page. Mais en fonction de la page choisie, il arrive qu'en bas de page le "bloc" qui permet de changer de page disparait!

Voilà deux screen afin que vous puissiez constater le problème :

sur la page 1, c'est O.K. :
[Image: vue1.jpg]

et sur la page 2, plus rien :
[Image: vue2r.jpg]

Voilà l'URL de la page 1 : http://www.ville-taradeau.com/la-vie-du-.../actualite et la page 2 : http://www.ville-taradeau.com/index.php?...60&page=60

Voici le gabarit utilisé :
Code :
<!-- Start News Display Template -->
{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">

{if $entry->postdate}
    <div class="NewsSummaryPostdate">
{capture assign="datehier"}{$entry->postdate|date_format:"%y-%m-%d"|htmlentities}{/capture}
{capture assign="datenewshier"}{hiernews}{/capture}
{capture assign='datenews'}{$entry->postdate|cms_date_format|htmlentities}{/capture}
{capture assign='date_day'}{$smarty.now|cms_date_format|htmlentities}{/capture}        
{if $datenews eq $date_day}
Aujourd'hui à {$entry->postdate|date_format:"%Hh%M"}    
{elseif $datehier eq $datenewshier}
Hier à {$entry->postdate|date_format:"%Hh%M"}    
{else}
{$datenews} à {$entry->postdate|date_format:"%Hh%M"}    
{/if}
    </div>
{/if}


<div class="NewsSummaryLink">
    {$entry->titlelink}
</div>

<div class="NewsSummaryCategory">
    {$entry->category}
</div>



{if $entry->summary}
    <div class="NewsSummarySummary">
        {eval var=$entry->summary}
    </div>

    <div class="NewsSummaryMorelink">
        [{$entry->morelink}]
    </div>

{else if $entry->content}
    <div class="NewsSummaryContent">

        {eval var=$entry->content}</div>
    
{/if}

{if isset($entry->extra)}
    <div class="NewsSummaryExtra">
        {eval var=$entry->extra}
    {* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
    </div>
{/if}
{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
     <div class="NewsSummaryField">
        {if $field->type == 'file'}
          <img src="{$entry->file_location}/{$field->value}"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
     </div>
  {/foreach}
{/if}
<div class="clear"/></div>
</div>
{/foreach}
{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}

<!-- End News Display Template -->
et la feuille de style
Code :
div#news {

  border: 1px solid #000;

}

div#news h2 {
   line-height: 2em;
   background: #fff;
}

.NewsSummary {
    padding: 0.5em 0.5em 1em; /* padding for the news article summary */
    margin: 0 0.5em 1em 0.5em; /* margin to the bottom of the news article summary */
    border-bottom: 1px solid #ccc;

}

.NewsSummaryPostdate {
  font-size: 90%;
  font-weight: bold;
}

.NewsSummaryLink {
    font-weight: bold;
    padding-top: 0.2em;
}

.NewsSummaryCategory {
  font-style: italic;
  margin: 5px 0;
}

.NewsSummaryAuthor {
  font-style: italic;
  padding-bottom: 0.5em;
}

.NewsSummarySummary, .NewsSummaryContent {
  line-height: 140%;

}
.NewsSummaryContent img {
margin-right:10px;
}

.NewsSummaryMorelink {
  padding-top: 0.5em;
}

#NewsPostDetailDate {
  font-size: 90%;
  margin-bottom: 5px;
  font-weight: bold;
  }

#NewsPostDetailSummary {
   line-height: 150%;
   }

#NewsPostDetailCategory {
  font-style: italic;
  border-top: 1px solid #ccc;
  margin-top: 0.5em;
  padding: 0.2em 0;
}

#NewsPostDetailContent {
  margin-bottom: 15px;
  line-height: 150%;
  }

#NewsPostDetailAuthor {

  padding-bottom: 1.5em;
  font-style: italic;
}


/* to add specific style to the below divs, uncomment them. */

/*
#NewsPostDetailTitle {}
#NewsPostDetailHorizRule {}
#NewsPostDetailPrintLink {}
#NewsPostDetailReturnLink {}
*/
pour info : Version CMS MS : 1.7.1

Merci de votre aide Wink
Sujet fermé


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)