[TYPO3] Problem with "Draft-Workspace"

Jérôme Picard j.picard at vivacances.fr
Fri Sep 22 13:29:19 CEST 2006


Hello,

 

I’m new with typo3. And I have some issue with the “draft workspace”.

 

Also, I have a template that get records (Text regular) from the “right” column and displays them.

 

The structure of each records is : PRICE|B_LOCATION|E_LOCATION     example : 100|PAR|NCE

 

All works fine in the “Live Workspace” but when I switch to the “draft-workspace” I don’t my records.

 

Do you have an idea about this issue?

 

Another question is, I use “split” feature to display and get parameter to create the “URL”, could you indicate to me if my “TypoScript” is well written?

 

Thanks and Regards,

Jérôme.

 

The result is:

 

<ul>
        <li>
                <a href="http://server/apps?B_LOCATION_IN=PAR&amp;E_LOCATION_IN=NCE&amp;TRIP_TYPE=R">
                        <span class="offre"><strong>Paris-Nice</strong></span>
                        <span class="prix">100&nbsp;€</span>
                </a>
        </li>
        <li>    
                <a href="http:// server/apps?B_LOCATION_IN=AMS&amp;E_LOCATION_IN=PAR&amp;TRIP_TYPE=R">
                        <span class="offre"><strong>Amsterdam-Paris</strong></span>
                       <span class="prix">500&nbsp;€</span>
               </a>
        </li>
</ul>

 

Here is my TypoScript :

 

…

….

 

temp.right_content=CONTENT

temp.right_content{

  

  table=tt_content

  

  wrap= <ul>|</ul>

  

  # the SQL-Query

  select{

    languageField=sys_language_uid

    max=10

    selectFields= header,bodytext

    where=colPos=2

   }

  

  

  renderObj=COA

  renderObj{

   

    # Destination CODE.

    5=TEXT  

    5{

      required=1

      wrap=<li><a href="http://server/apps|&TRIP_TYPE=R" >

      field= bodytext

      split {

        token = |

        cObjNum = 1||2||3|| 

        2.current = 1

        2.wrap=?B_LOCATION_IN=|

        3.current = 1

        3.wrap=&E_LOCATION_IN=|

      }

    }

   

    # Destination Title.

    10=TEXT  

    10{

      required=1

      wrap= <span class="offre"><strong>|</strong></span>

      field= header

    }

    

    # Destination Price.

    15=TEXT  

    15{

      required=1

      wrap=<span class="prix">|&nbsp;&euro;</span></li></a>

      field= bodytext

      split {

        token = |

        cObjNum = 1||2||3|| 

        1.current = 1

      }

    }

        

  }

}

 

 

page.10 = TEMPLATE

page.10 {

 

  template = FILE

  template.file = fileadmin/main/gabarits/DPhomepage.tmpl

  

  workOnSubpart = DOCUMENT_BODY

  

  subparts.NAV_BAR = FILE

  subparts.NAV_BAR.file = fileadmin/main/html/navBarre.html

  

  subparts.FEATURE < styles.content.getLeft

  

  subparts.VOLS < temp.right_content

 

}

 

 

 

 

Jérôme PICARD
IT Project Manager
13, rue Camille Desmoulins 
92441 Issy-les-Moulineaux Cedex
Tél. +33 (0) 1 58 04 24 16
Fax +33 (0) 1 58 04 27 02

 



More information about the TYPO3-english mailing list