SobiPro jeden szablon a 2 różne widoki szczegółowe
Wyniki 1 do 1 z 1

Temat: SobiPro jeden szablon a 2 różne widoki szczegółowe

Hybrid View

Poprzednia wiadomość Poprzednia wiadomość   Następna wiadomość Następna wiadomość
  1. #1
    Przeglądacz
    Dołączył
    09-02-2011
    Wpisy
    58
    Punkty
    10

    Domyślny SobiPro jeden szablon a 2 różne widoki szczegółowe

    Witam. Jakiś czas pracowałem na swoim serwerze nad stroną. Po przeniesieniu jej na inny serwer i skonfigurowaniu od nowa oraz po przekopiowaniu wszystkich plików szablonu w sobipro to strony się różnią. Na starym serwerze wygląd szczegółowy działa poprawnie a na nowym nie.

    Chodzi mi dokładnie o to by koło zdjęcia były napisy tak jak tu: http://goldsec.vot.pl/projekty/index...j-Dom&Itemid=9

    a wyglądają niestety tak: http://lasowice.seo-linuxpl.com/maxp...zej-3&Itemid=3

    Nie wiem czemu tak się dzieje. Pola i ich typy są takie same...

    Dołączam kod pliku details.xsl

    Kod:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl">
    <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>  
      <xsl:include href="../common/topmenu.xsl" />
      <xsl:include href="../common/manage.xsl" />  
      <xsl:template match="/entry_details">
        <div class="SPDetails">
            <div class="SobiPro componentheading">
              <xsl:value-of select="section" />
            </div>
            <div style="clear:both;"></div>  
            <div>
              <xsl:apply-templates select="menu" />
            </div>  
          
          <div>
            <div style="clear:both; margin: 10px; margin-right: 20px;">  
              <xsl:call-template name="manage" />    
              <h3 style="float:left"><xsl:value-of select="entry/name" /></h3>
              <h3 style="float:right">
              <xsl:value-of select="entry/fields/field_cena/data"/>
              <xsl:text> </xsl:text>
              <xsl:value-of select="entry/fields/field_cena/@suffix"/>
         
              </h3>
            </div>
            <div style="clear:both"></div>
            <hr style=" margin: 10px; margin-left: 10px; margin-right: 10px; color: #F7F7F7;"/>    
            <div style="float: left;" id="SPGallery">
              <a class="modal" >  
                <xsl:attribute name="href">
                  <xsl:value-of select="entry/fields/field_zdjecie/data/@original"/>
                </xsl:attribute>  
                <xsl:copy-of select="entry/fields/field_zdjecie/data/*" />
              </a>
    
              
              
              <br/>
    
            </div>
        
         <div class="spField">
        <strong><xsl:value-of select="entry/fields/field_pow_pomieszczen/label" />:<xsl:text> </xsl:text></strong>
          <xsl:value-of select="entry/fields/field_pow_pomieszczen/data" />
            <xsl:text> </xsl:text><xsl:value-of select="entry/fields/field_pow_pomieszczen/@suffix"/>
        </div>
            
               <div class="spField">
        <strong><xsl:value-of select="entry/fields/field_pow_uzytkowa/label" />:<xsl:text> </xsl:text></strong>
          <xsl:value-of select="entry/fields/field_pow_uzytkowa/data" />
            <xsl:text> </xsl:text><xsl:value-of select="entry/fields/field_pow_uzytkowa/@suffix"/>
        </div>
            
               <div class="spField">
        <strong><xsl:value-of select="entry/fields/field_pow_zabudowy/label" />:<xsl:text> </xsl:text></strong>
          <xsl:value-of select="entry/fields/field_pow_zabudowy/data" />
            <xsl:text> </xsl:text><xsl:value-of select="entry/fields/field_pow_zabudowy/@suffix"/>
        </div>
            
               <div class="spField">
        <strong><xsl:value-of select="entry/fields/field_kubatura/label" />:<xsl:text> </xsl:text></strong>
          <xsl:value-of select="entry/fields/field_kubatura/data" />
            <xsl:text> </xsl:text><xsl:value-of select="entry/fields/field_kubatura/@suffix"/>
        </div>
         
               <div class="spField">
        <strong><xsl:value-of select="entry/fields/field_min_szer_dzialki/label" />:<xsl:text> </xsl:text></strong>
          <xsl:value-of select="entry/fields/field_min_szer_dzialki/data" />
            <xsl:text> </xsl:text><xsl:value-of select="entry/fields/field_min_szer_dzialki/@suffix"/>
        </div>
                       <div class="spField">
        <strong><xsl:value-of select="entry/fields/field_kat_nach_dachu/label" />:<xsl:text> </xsl:text></strong>
          <xsl:value-of select="entry/fields/field_kat_nach_dachu/data" />
            <xsl:text> </xsl:text><xsl:value-of select="entry/fields/field_kat_nach_dachu/@suffix"/>
        </div>
            
       
    {tab=Opis}
     <strong><xsl:value-of select="entry/fields/field_opis/label" />: </strong>
              <br/>
              <xsl:value-of select="entry/fields/field_opis/data" disable-output-escaping="yes" />
               
    {tab=Rzuty}
     
            <table border="0" width="100%">
              <tr>
                <td width="60%">
              <a class="modal" >  
                <xsl:attribute name="href">
                  <xsl:value-of select="entry/fields/field_rzut1/data/@original"/>
                </xsl:attribute>  
                <xsl:copy-of select="entry/fields/field_rzut1/data/*" />
              </a>
                </td>
             <td width="40%">
             
                <xsl:value-of select="entry/fields/field_inforzut1/data" disable-output-escaping="yes" />
              
               
                </td>
              </tr>
              
              <tr>
                <td width="60%">
    
              <a class="modal" >  
                <xsl:attribute name="href">
                  <xsl:value-of select="entry/fields/field_rzut2/data/@original"/>
                </xsl:attribute>  
                <xsl:copy-of select="entry/fields/field_rzut2/data/*" />
              </a>
       
            </td>
             <td width="40%">
    
                        
                <xsl:value-of select="entry/fields/field_inforzut2/data" disable-output-escaping="yes" />
               
               
                </td>
              </tr>
              <tr>
                 <td width="60%">
               
               
               
              <a class="modal" >  
                <xsl:attribute name="href">
                  <xsl:value-of select="entry/fields/field_rzut3/data/@original"/>
                </xsl:attribute>  
                <xsl:copy-of select="entry/fields/field_rzut3/data/*" />
              </a>   
            
                    </td>
              <td width="40%">
                   
                           
                <xsl:value-of select="entry/fields/field_inforzut3/data" disable-output-escaping="yes" />
           
               
                </td>
              </tr>
           
            </table>
    {tab=Kosztorys}
             <strong><xsl:value-of select="entry/fields/field_kosztorys/label" />: </strong>
              <br/>
     <xsl:value-of select="entry/fields/field_kosztorys/data" disable-output-escaping="yes" />
    {tab=Komentarze}
               <xsl:variable name="EntryId">
            <xsl:value-of select="entry/@id" />
          </xsl:variable>
          <xsl:variable name="EntryName">
            <xsl:value-of select="entry/name" />
          </xsl:variable>
     
          <xsl:value-of select="php:function( 'TplFunctions::JComments' , $EntryId, $EntryName )" disable-output-escaping="yes" />
    
    {/tabs}    
          
            
           
            <div style="clear:both;"/>
          </div>
          <div style="clear:both; width: 100%; text-align: center; margin-top: 30px;">
            <hr style="margin: 40px; margin-top: 10px; margin-bottom: 10px; color: #F7F7F7;"/>    
            <xsl:value-of select="php:function( 'SobiPro::Txt', 'Date added' )" />:<xsl:text> </xsl:text>
            <xsl:value-of select="entry/created_time"/><xsl:text> | </xsl:text>
        
            <xsl:value-of select="php:function( 'SobiPro::Txt', 'Last time updated' )" />:<xsl:text> </xsl:text>
            <xsl:value-of select="entry/updated_time"/><xsl:text> | </xsl:text>
                
            <xsl:value-of select="php:function( 'SobiPro::Txt', 'Viewed' )" />:<xsl:text> </xsl:text>
            <strong><xsl:value-of select="entry/counter"/></strong><xsl:text> </xsl:text>
            <xsl:value-of select="php:function( 'SobiPro::Txt', 'times' )" />
          </div>
          
        </div>
      </xsl:template>
    </xsl:stylesheet>
    będzie mi miło jak pomożecie mi rozwiązać ten problem.


    Problem okazał się dosyć banalny. Wystarczyło tylko zmienić znaczniki
    Kod:
    <strong>
    na
    Kod:
    <b>
    I problem rozwiązany, ale nie rozumiem czemu na jednym serwerze działa tak a na drugim nie ?
    Ostanio edytowane przez djnypel : 11-07-2011 21:59

Podobne tematy

  1. Dwie różne strony - jeden serwer, jedna baza?
    przez TC_2005 na forum Administracja - ogólne
    Odpowiedzi: 1
    Ostatni post/autor: 18-05-2011, 14:27
  2. [rozne widoki kategorii]
    przez altruista na forum Szablony, wygląd, formatowanie
    Odpowiedzi: 3
    Ostatni post/autor: 21-10-2010, 20:59
  3. kontakt - jeden formularz na różne e-maile w zależności od tematu
    przez esef52 na forum Szukam dodatku do Joomla
    Odpowiedzi: 2
    Ostatni post/autor: 18-03-2009, 13:25
  4. DOCMan - szczegółowe zapytanie
    przez Remi na forum Administracja składnikami
    Odpowiedzi: 1
    Ostatni post/autor: 30-01-2007, 10:10

Reguły pisania

  • Nie możesz zakładać nowych tematów
  • Nie możesz dodawać wypowiedzi
  • Nie możesz dodawać załączników
  • Nie możesz poprawiać swoich postów
  •