[RESOLU]Module article/news affichage des articles sur frontoffice

Support en français pour CMS Made Simple.

Moderator: jce76350

Post Reply
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

[RESOLU]Module article/news affichage des articles sur frontoffice

Post by SUUD6501 »

Bonjour,
J'aimerais afficher sur une seule ligne la date et le titre de mon article. J'ai regardé dans le gabarit du sommaire de l'article en ajoutant qq balises html mais sans succès. Pour l'instant mon article s'affiche comme ceci :
1 ligne pour la date et dessous 1 ligne pour le titre avec son lien url
merci pour votre aide
Last edited by SUUD6501 on Tue Sep 04, 2007 8:09 am, edited 1 time in total.
Pierre M.

Re: Module article/news affichage des articles sur frontoffice

Post by Pierre M. »

Bonjour,

quel est le gabarit actuel et quelles sont les feuilles de styles attachées actuelles ?

Pierre M.
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

Re: Module article/news affichage des articles sur frontoffice

Post by SUUD6501 »

Voici le gabarit du sommaire



last news

{foreach from=$items item=entry}

{if $entry->formatpostdate}

{$entry->formatpostdate}

{/if}
{$entry->titlelink}

{*
{$category_label} {$entry->category}
*}

{*{if $entry->author}

{$author_label} {$entry->author}

{/if}*}

{/foreach}

{if $pagecount > 1}
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber



et la feuille de style

div#news {
    margin: 2em 0 1em 1em;/* margin for the entire div surrounding the news list */
  border: 1px solid #000;
  background: #FFE9AF;
border-top: 1px solid #ccc;
}
div#news h2 {
   line-height: 2em;
   background: #fff;
}


.NewsDate {
border-bottom: 1px solid #ccc;
font-size: 10px;
}

{*pour last news*}
.NewsDateBis {
border-top: 1px solid #ccc;
font-size: 10px;
}

.NewsSummary {
    padding: 0.5em 0.5em 1em; /* padding for the news article summary */
   margin: 0 em 0em 0em;  /* margin to the bottom of the news article summary */
   
}

.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%;
}

.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 {}
*/

merci
jce76350
Beta Tester
Beta Tester
Posts: 2097
Joined: Mon May 29, 2006 1:20 pm

Re: Module article/news affichage des articles sur frontoffice

Post by jce76350 »

re,
{if $entry->formatpostdate}
   
      {$entry->formatpostdate}
   
{/if}
   {$entry->titlelink}
Il faut mettre
supprimer
{if $entry->formatpostdate}
   
      {$entry->formatpostdate}
   
{/if}


{if $entry->formatpostdate}{$entry->formatpostdate}{/if} {$entry->titlelink}
Jean-Claude Etiemble MyPageFr
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

Re: Module article/news affichage des articles sur frontoffice

Post by SUUD6501 »

Bonjour,
Ca marche
Merci beaucoup
et j'ajoute resolu dans le titre
Post Reply

Return to “French - Français”