Avisos
Vaciar todo

editar la presentación de mosets  

 
david
 david
Reputable Member

Hola amigos.

Estoy intentando editar la presentación de los listados de un directorio de mosets. La idea que tengo es que me gustaria añadir saltos de linia en los campos personalizados, para que estos no se apilen uno detras de otro y la pagina se vea fea, o sea, desordenada.

Estoy utolizando el template m2 de mosets, y estoy editando el archivo sub_listingsummary.tpl.php

El problema es que no se como hacer que añada un salto de linia en el codigo, donde aparecen los campos personalizados.

Este es el codigo:

<div class="listing-summarylink_featured && $this->config->getTemParam('useFeaturedHighlight','1')) ? ' featured':''?>">

getFieldById(1); switch( $this->config->getTemParam('listingNameLink','1') ) { default: case 1: $this->plugin( 'ahreflisting', $link, $link_name->getOutput(2), '', array('delete'=>false) ); break; case 4: if( !empty($link->website) ) { $this->plugin( 'ahreflisting', $link, $link_name->getOutput(2), '', array('delete'=>false), 1 ); } else { $this->plugin( 'ahreflisting', $link, $link_name->getOutput(2), '', array('delete'=>false) ); } break; case 2: $this->plugin( 'ahreflisting', $link, $link_name->getOutput(2), '', array('delete'=>false), 1 ); break; case 3: $this->plugin( 'ahreflisting', $link, $link_name->getOutput(2), 'target="_blank"', array('delete'=>false), 1 ); break; case 0: $this->plugin( 'ahreflisting', $link, $link_name->getOutput(2), '', array('delete'=>false, 'link'=>false) ); break; } ?>

plugin( 'rating', $link->link_rating, $link->link_votes, $link->attribs); // Address if( $this->config->getTemParam('displayAddressInOneRow','1') ) { $fields->resetPointer(); $address_parts = array(); while( $fields->hasNext() ) { $field = $fields->getField(); $output = $field->getOutput(2); if(in_array($field->getId(),array(4,5,6,7,8)) && !empty($output)) { $address_parts[] = $output; } $fields->next(); } if( count($address_parts) > 0 ) { echo '
' . implode(', ',$address_parts) . '
'; } } // Website $website = $fields->getFieldById(12); if(!is_null($website) && $website->hasValue()) { echo '' . $website->getOutput(2) . ''; } // Listing's first image if(!is_null($fields->getFieldById(2)) || $link->link_image) { echo '

'; if ($link->link_image && $this->config->getTemParam('showImageInSummary',1) ) { $this->plugin( 'ahreflistingimage', $link, 'class="image' . (($this->config->getTemParam('imageDirectionListingSummary','right')=='right') ? '':'-left') . '" alt="'.htmlspecialchars($link->link_name).'"' ); } if(!is_null($fields->getFieldById(2))) { $link_desc = $fields->getFieldById(2); echo $link_desc->getOutput(2); } echo '

'; } // Listing's category if($this->task 'listcats' && $this->task '' ) { echo '
' . JText::_( 'Categoria' ) . ':'; $this->plugin( 'mtpath', $link->cat_id, '' ); echo '
'; } // Other custom field $fields->resetPointer(); echo '
'; while( $fields->hasNext() ) { $field = $fields->getField(); $value = $field->getOutput(2); if( ( ( !$field->hasInputField() && !$field->isCore() && empty($value)) || (!empty($value) || $value == '0') ) && !in_array($field->getId(),array(1,2,12)) && ( ($this->config->getTemParam('displayAddressInOneRow','1') && !in_array($field->getId(),array(4,5,6,7,8)) || $this->config->getTemParam('displayAddressInOneRow','1') == 0 ) ) ) { echo '
'; if($field->hasCaption()) { echo '' . $field->getCaption() . ''; echo '' . $field->getOutput(2) . ''; } else { echo '' . $field->getOutput(2) . ''; } echo '
'; } $fields->next(); } echo '
'; if($this->config->getTemParam('showActionLinksInSummary','0')) { echo '
'; $this->plugin( 'ahrefreview', $link, array("rel"=>"nofollow") ); $this->plugin( 'ahrefrecommend', $link, array("rel"=>"nofollow") ); $this->plugin( 'ahrefprint', $link ); $this->plugin( 'ahrefcontact', $link, array("rel"=>"nofollow") ); $this->plugin( 'ahrefvisit', $link ); $this->plugin( 'ahrefreport', $link, array("rel"=>"nofollow") ); $this->plugin( 'ahrefclaim', $link, array("rel"=>"nofollow") ); $this->plugin( 'ahrefownerlisting', $link ); $this->plugin( 'ahrefmap', $link ); echo '
'; } ?>

Y aqui esta la imagen tal y como esta ahora. Como veis, los campos estan descuadrados y quedan mal de la ostia.
Telefono, palabras clave y url de la tienda deberian ir uno debajo de otro, y esto esta en esta linia:
// Other custom field
$fields->resetPointer();
echo '

';
while( $fields->hasNext() ) {
$field = $fields->getField();
$value = $field->getOutput(2);

Pero no se como ponerlo.

Agradezco la ayuda por adelantado!

Gracias!!!!!

Citar
Respondido : 21/06/2011 11:38 pm
Jhon
 Jhon
Soporte CMS Webempresa Moderator

Hola David

Sería mejor si envias la dirección web de la página en donde tienes el problema, así se podría inspeccionar mejor el código

Saludos.

ResponderCitar
Respondido : 22/06/2011 1:36 am

optimiza-automaticamente-todas-las-imagenes-de-tu-wordpress

david
 david
Reputable Member

Hola Jhon.

LA url del lugar donde se ven las empresas y e porque sucede todo esto es aqui:
http://www.vend-t.com/component/mtree/new.html

Como ves, los ultimos campks de cada listado se apilonan y es ahi donde me gustaria añadir los saltos de linia, para ponerlos uno debajo del otro.

Gracias!!!

ResponderCitar
Respondido : 22/06/2011 12:28 pm
Lucas
 Lucas
Miembro Admin

Hola David,

No damos soporte sobre webs que no están alojadas en webempresa, te he llamado para comentarlo por voz pero no te localizo, nos puedes llamar tu y te explicamos porque no queremos dar soporte a webs que no estén alojadas en nuestros servidores?

Saludos
Lucas

ResponderCitar
Respondido : 22/06/2011 12:51 pm

Gestor de Contraseñas - VPN Conexión Segura - Gestor 2FA (Segundo Factor de Autenticación

david
 david
Reputable Member

:sick:

ResponderCitar
Respondido : 22/06/2011 1:14 pm
david
 david
Reputable Member

B)

ResponderCitar
Respondido : 22/06/2011 1:56 pm

Lucas
 Lucas
Miembro Admin

Hola David,

Como hemos comentado por teléfono, cuando tengas consultas sobre algún problema con tus joomlas, los puedes mover a nuestro hosting que así te podemos ayudar mejor ya que en nuestro hosting podemos responder más fácilmente ya que conocemos perfectamente como están configurados, podemos acceder al código para revisarlo y podemos ver los logs de error.

Saludos
Lucas

ResponderCitar
Respondido : 22/06/2011 11:52 pm