![]() |
|
|||
|
Tengo 5 noticias para mostrar en la página y de ellas deseo colocar la nímero 1 como noticia corta y a partir de la número 2 como titulares.
Probe las indicaciones que dan en la ayuda rápida de supernews: <?PHP $static = TRUE; $template = "Headlines"; include("supernews/show_news.php"); $number = "1"; include("supernews/show_news.php"); ?> Y aqui salen al inicio todos los titulares incluyendo la noticia 1 y luego sale la noticia corta Intente lo siguiente: <?PHP $static = TRUE; $template= "noticia"; $number= "1"; $category= "1"; include("supernews/show_news.php"); $template = "titulares"; $category= "1"; include("supernews/show_news.php"); ?> Con este código sale la noticia corta Número 1, y luego todos los titulares incluyendo nuevamente la noticia 1 Y quiero que los titulares comienzen con la noticia Número 2, ya que la 1 se muestra como noticia corta. Saludos |
|
|||
|
jesram:
Creo 2 categorias, una para distinguir las notas cortas y otras las largas. Luego solo filtras por la categoria $category= "1"; (corta por ejemplo) $category= "2"; (larga por ejemplo) Prueba y me dices por fas. Saludos |
![]() |
| Herramientas | |
| Estilo | |
|
|