Page 1 of 1

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

Posted: Mon Sep 03, 2007 12:53 pm
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

Re: Module article/news affichage des articles sur frontoffice

Posted: Mon Sep 03, 2007 1:38 pm
by Pierre M.
Bonjour,

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

Pierre M.

Re: Module article/news affichage des articles sur frontoffice

Posted: Mon Sep 03, 2007 2:15 pm
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

Re: Module article/news affichage des articles sur frontoffice

Posted: Mon Sep 03, 2007 5:55 pm
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}

Re: Module article/news affichage des articles sur frontoffice

Posted: Tue Sep 04, 2007 8:09 am
by SUUD6501
Bonjour,
Ca marche
Merci beaucoup
et j'ajoute resolu dans le titre