Foros del Web » Creando para Internet » Diseño web »

CUTE NEWS: como dirigir noticias a pagina que yo quiera

Estas en el tema de CUTE NEWS: como dirigir noticias a pagina que yo quiera en el foro de Diseño web en Foros del Web. como estan, tengo un CMS cute news y quiero que el link dirija a una pagina que yo quiero en particular y no al pop ...
  #1 (permalink)  
Antiguo 14/07/2009, 11:23
 
Fecha de Ingreso: abril-2009
Mensajes: 43
Antigüedad: 15 años
Puntos: 1
CUTE NEWS: como dirigir noticias a pagina que yo quiera

como estan, tengo un CMS cute news y quiero que el link dirija a una pagina que yo quiero en particular y no al pop up pre-establecido que viene por defecto

vi unas instrucciones en ingles, las aplique cavernicolamente pero no mo resulto ya que mis conocimientos de .php son poquisimos

Código HTML:
$PHP_SELF = 'X.php'; 
Use this to point all of the cutenews links to another page. Useful if you want to show the full story on another page. In the second page, you should add some kind of cutenews include code where you want to show the news. You should not add a ?var=value etc to the end of the link, use $QUERY_STRING to do that. Note that the prev/next buttons will also point to the new page. 
The default page is the page where you added the news to.
Example
CODE
<php
$PHP_SELF = "target.php"
include('show_news.php');
?>
inside target.php you must have an include to show_news.php as well. But beware the categories. An article in category 1 will not show if the target.php contains $category=2;



saludos
  #2 (permalink)  
Antiguo 14/07/2009, 11:49
 
Fecha de Ingreso: abril-2009
Mensajes: 43
Antigüedad: 15 años
Puntos: 1
Respuesta: CUTE NEWS: como dirigir noticias a pagina que yo quiera

ya lo solucione:

en la pagina primera puse en el DIV.

Código HTML:
<div class="caja_3_destacamos" id="caja_3_destacamos">
    <?PHP
$category = "1";
$template="infraeco";
$PHP_SELF = 'destacados.php'; 
include("/miweb/cutenews/show_news.php");
?>
</div> 
y en la pagina donde quiero que aparezca este:

Código HTML:
<div class="caja_1_empresa" id="caja_1_empresa">
    <?PHP
$category = "1";
$template="infraeco";
include("/miweb/cutenews/show_news.php");
?>
</div> 
  #3 (permalink)  
Antiguo 23/08/2010, 10:49
Avatar de yadirgomez  
Fecha de Ingreso: mayo-2010
Ubicación: Lima, Perú
Mensajes: 15
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: CUTE NEWS: como dirigir noticias a pagina que yo quiera

Cita:
Iniciado por considered Ver Mensaje
ya lo solucione:

en la pagina primera puse en el DIV.

Código HTML:
<div class="caja_3_destacamos" id="caja_3_destacamos">
    <?PHP
$category = "1";
$template="infraeco";
$PHP_SELF = 'destacados.php'; 
include("/miweb/cutenews/show_news.php");
?>
</div> 
y en la pagina donde quiero que aparezca este:

Código HTML:
<div class="caja_1_empresa" id="caja_1_empresa">
    <?PHP
$category = "1";
$template="infraeco";
include("/miweb/cutenews/show_news.php");
?>
</div> 
Por favor me lo podrías explicar, yo quiero hacer lo mismo, pero no tengo conocimientos en PHP.

Quiero que mis noticias abreviadas esten en una pagina y las completas en otra.

Gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:54.