Advertisement
Guest User

Untitled

a guest
Mar 21st, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 10 = CONTENT
  2. 10{
  3.     table = tx_myclients
  4.     select{
  5.         pidInList = 37
  6.         orderBy = name
  7.         selectFields = SUBSTRING(name,1,1) as firstLetter
  8.         groupBy = firstLetter
  9.     }
  10.  
  11.     renderObj = COA
  12.     renderObj{
  13.  
  14.         #Initial letter
  15.         10 = TEXT
  16.         10.field = firstLetter
  17.         10.wrap = <span class="huge-letter">|</span>
  18.  
  19.         20 = CONTENT
  20.         20{
  21.             table = tx_myclients
  22.             select{
  23.                 pidInList = 37
  24.                 begin = 0
  25.                 selectFields = uid as clientUID, name as clientName, category as clientCategory, projects as clientProjects
  26.                 andWhere.stdWrap.cObject = TEXT
  27.                 andWhere.stdWrap.cObject{
  28.                     field = firstLetter
  29.                     wrap = name LIKE '|%'
  30.                 }
  31.             }
  32.             renderObj = COA
  33.             renderObj{
  34.  
  35.                 20 = TEXT
  36.                 20.field = clientName
  37.  
  38.                 30 = CONTENT
  39.                 30{
  40.                     wrap = <div>|</div>
  41.                     table = pages
  42.                     select{
  43.                         pidInList = 43
  44.                         begin = 0
  45.  
  46.             #This where clause is not right. Just for testing purpose
  47.                         where = title LIKE 'A%'
  48.                     }
  49.                                    
  50.                     renderObj = COA
  51.                     renderObj{
  52.                         50 = TEXT
  53.                         50.field = title
  54.                     }
  55.                 }
  56.        
  57.             }
  58.         }
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement