Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : moris 14 Nov 2010, 09:18:05

: [Risolto] Problema sobi2 Templates
: moris 14 Nov 2010, 09:18:05
Salve ragazzi .

Ho un problema con sobi2 ho installato questo templates Real Estate Template http://www.sigsiu.net/download/templates/real_estate_template.html (http://www.sigsiu.net/download/templates/real_estate_template.html) ma vorrei che al posto di questa scheda che esce fissa:

Area:    Year Built:
Beds:    Lot Size: sq ft
Baths:    House Size: sq ft
Gar #:    Price: $

Other Details:
Property Description Remarks:

escano i Campi personalizzati che ho inserito io .

Ho capito che devo modificare da administrator-->sabi2-->Templates e ccs-->Template vista dettagliata

Sto cercando di capire qualè il codice che richiama i Campi personalizzati.

Codice che visualizza i Campi personalizzati  "tamplates default"

<?php
/**
* @version $Id: sobi2.details.tmpl.php 5462 2010-08-18 08:25:37Z Sigrid Suski $
* @package: Sigsiu Online Business Index 2 (Sobi2)
* ===================================================
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET GmbH
* Email: sobi[at]sigsiu.net
* Url: http://www.sigsiu.net
* ===================================================
* @copyright Copyright (C) 2006 - 2010 Sigsiu.NET GmbH (http://www.sigsiu.net). All rights reserved.
* @license see http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*/

/*please do not remove this line */
defined( '_SOBI2_' ) || exit("Restricted access");

/* ------------------------------------------------------------------------------
 * This is the template for the Details View
 * ------------------------------------------------------------------------------
 */
?>
<?php HTML_SOBI::renewal( $config,$mySobi ); ?>
<table class="sobi2Details" <?php echo $style; ?> >
  <tr>
    <td><?php echo $ico; ?><h1><?php echo $mySobi->title; ?></h1></td>
  </tr>
  <tr>
    <td><?php echo $img; ?></td>
  </tr>
  <tr>
    <td><?php HTML_SOBI::showGoogleMaps($mySobi, $config); ?></td>
  </tr>
  <tr>
    <td>
      <div id="sobi2outer">
         <?php HTML_SOBI::waySearchUrl( $waySearchLink,$config ); ?>
         <?php echo HTML_SOBI::customFieldsData( $fieldsFormatted );?>
       

      </div>
    </td>
  </tr>
</table>
<table class="sobi2DetailsFooter" width="100%">
  <tr>
    <td>
    <?php HTML_SOBI::addedDate($config,$mySobi); ?>
      &nbsp;&nbsp;
    <?php HTML_SOBI::showHits($config,$mySobi);?>
    </td>
    <td><?php HTML_SOBI::editButtons($config,$mySobi); ?></td>
  </tr>
</table>

Codice che NON visualizza i Campi personalizzati  "tamplates real_estate "

<?php
/**
* @version $Id: sobi2.details.tmpl.php 3709 2008-03-10 13:47:06Z Radek Suski $
* @package: Sigsiu Online Business Index 2
* ===================================================
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email: sobi@sigsiu.net
* Url: http://www.sigsiu.net
* ===================================================
* @copyright Copyright (C) 2007 Sigsiu.NET (http://www.sigsiu.net). All rights reserved.
* @license see http://www.gnu.org/licenses/lgpl.html GNU/LGPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*/

/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );

/* ------------------------------------------------------------------------------
 * Real Estate Template - Details View
 * ------------------------------------------------------------------------------
 */
?>
<?php HTML_SOBI::renewal( $config,$mySobi ); ?>

<table class="sobi2Details" <?php echo $style; ?> >
  <td><h1><?php echo $mySobi->title; ?></h1>
      <p>
      <table border="0" align="right" width="300px">
        <tbody>
          <tr>
            <td><?php echo $ico; ?><?php echo $img; ?></td>
          </tr>
          <tr>
            <td><?php HTML_SOBI::waySearchUrl( $waySearchLink,$config ); ?>
            </td>
          </tr>
          <tr>
            <td><?php echo $plugins["gallery"]; ?></td>
          </tr>
        </tbody>
      </table>
      <table border="0" style="width:455px">
        <tbody>
          <tr>
            <td style="background-color: #e1e9e8">Area: <?php echo $fieldsObjects['field_area']->data; ?> </td>
            <td style="background-color: #e1e9e8">Year Built: <?php echo $fieldsObjects['field_yearbuilt']->data; ?> </td>
          </tr>
          <tr>
            <td>Beds: <?php echo $fieldsObjects['field_beds']->data; ?> </td>
            <td>Lot Size: <?php echo $fieldsObjects['field_lot']->data; ?> sq ft </td>
          </tr>
          <tr>
            <td style="background-color: #e1e9e8">Baths: <?php echo $fieldsObjects['field_baths']->data; ?> </td>
            <td style="background-color: #e1e9e8">House Size: <?php echo $fieldsObjects['field_total']->data; ?> sq ft </td>
          </tr>
          <tr>
            <td>Gar #: <?php echo $fieldsObjects['field_gar']->data; ?> </td>
            <td>Price: <font color="green">$ <?php echo $fieldsObjects['field_price']->data; ?></font> </td>
          </tr>
        </tbody>
      </table>
      </p>
      <p>
      <table border="0">
        <tbody>
          <tr>
            <td>Other Details:

              <?php echo $fieldsObjects['field_otherdetails']->data; ?> </td>
          </tr>
          <tr>
            <td>Property Description Remarks:

              <?php echo $fieldsObjects['field_seller']->data; ?> </td>
          </tr>
        </tbody>
      </table>
      </p>
    </td>
  </tr>
  <tr>
    <td><?php HTML_SOBI::showGoogleMaps($mySobi, $config); ?></td>
  </tr>
  <tr>
    <td><div id="sobi2outer">

      </div></td>
  </tr>
</table>
<table class="sobi2DetailsFooter" width="100%">
  <tr>
    <td><?php HTML_SOBI::addedDate($config,$mySobi); ?>
      &nbsp;&nbsp;
      <?php HTML_SOBI::showHits($config,$mySobi);?>
    </td>
    <td><?php HTML_SOBI::editButtons($config,$mySobi); ?></td>
  </tr>
</table>
: Re:Problema sobi2 Templates
: Npaquito 14 Nov 2010, 10:01:24
Hola

Non conosco questo template ma, secondo la mia esperienza, in Sobi2 i file php del Vcard e del Details (questi che hai elencato) mostrano la uscita gia "precucinata" da altri file, dovresti prima modificare altrove
: Re:Problema sobi2 Templates
: moris 14 Nov 2010, 14:19:10
Ho risolto modificando il codice in questo modo:

<?php
/**
* @version $Id: sobi2.details.tmpl.php 3709 2008-03-10 13:47:06Z Radek Suski $
* @package: Sigsiu Online Business Index 2
* ===================================================
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email: sobi@sigsiu.net
* Url: http://www.sigsiu.net
* ===================================================
* @copyright Copyright (C) 2007 Sigsiu.NET (http://www.sigsiu.net). All rights reserved.
* @license see http://www.gnu.org/licenses/lgpl.html GNU/LGPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*/

/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );

/* ------------------------------------------------------------------------------
 * Real Estate Template - Details View
 * ------------------------------------------------------------------------------
 */
?>
<?php HTML_SOBI::renewal( $config,$mySobi ); ?>

<table class="sobi2Details" <?php echo $style; ?> >
  <td><h1><?php echo $mySobi->title; ?></h1>
      <p>
      <table border="0" align="right" width="300px">
        <tbody>
          <tr>
            <td><?php echo $ico; ?><?php echo $img; ?></td>
          </tr>
          <tr>
            <td><?php HTML_SOBI::waySearchUrl( $waySearchLink,$config ); ?>
            </td>
          </tr>
          <tr>
            <td><?php echo $plugins["gallery"]; ?></td>
          </tr>
        </tbody>
      </table>
      <table border="0" style="width:455px">
        <tbody>
          <?php echo HTML_SOBI::customFieldsData( $fieldsFormatted );?>
           
          </tr>
         
        </tbody>
      </table>
      </p>
      <p>
      <table border="0">
        <tbody>
          <tr>
            <?php echo $fieldsObjects['field_otherdetails']->data; ?> </td>
          </tr>
          <tr>
            <td>Property Description Remarks:

              <?php echo $fieldsObjects['field_seller']->data; ?> </td>
          </tr>
        </tbody>
      </table>
      </p>
    </td>
  </tr>
  <tr>
    <td><?php HTML_SOBI::showGoogleMaps($mySobi, $config); ?></td>
  </tr>
  <tr>
    <td><div id="sobi2outer">

      </div></td>
  </tr>
</table>
<table class="sobi2DetailsFooter" width="100%">
  <tr>
    <td><?php HTML_SOBI::addedDate($config,$mySobi); ?>
      &nbsp;&nbsp;
      <?php HTML_SOBI::showHits($config,$mySobi);?>
    </td>
    <td><?php HTML_SOBI::editButtons($config,$mySobi); ?></td>
  </tr>
</table>

Ora è uscito un problemino ma dovrò aprire un altro post.