Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   проблема с сортировкой (http://forum.typo3.ru/showthread.php?t=6463)

Fubu_By 30.06.2008 14:43

проблема с сортировкой
 
есть вот такой код для вывода списака новостей, проблема в том что выводятся отсортированные в обратном порядке, подскажите как подправить чтобы было нормально
Код:

# Template parser
plugin.tx_automaketemplate_pi1 {
        content = FILE
        content.file = fileadmin/template/int_nav.html

        elements {
                BODY.all = 1
                BODY.all.subpartMarker = DOCUMENT_BODY

                TD.all = 1
                DIV.all = 1
        }
        relPathPrefix = fileadmin/template/
}
# Print version
plugin.tx_cronprintlink_pi1 {
        includePostVars = 0
        target = _blank
        popup = 1
        popupWindowparams = resizable=yes,toolbar=no,scrollbars=yes,menubar=yes,width=800,height=600
        ignorePostVars = pass,user,logintype
        stdWrap.wrap = <span>|</span>
}

# News plugin
plugin.tt_news {
        _LOCAL_LANG.default {
            latestHeader = News
            more = more...
            goToArchive =
           
        }
        limit = 15
        displayList {
                catTextMode=0
                date_stdWrap.strftime= %B %Y
                time_stdWrap.strftime= &nbsp;
                subheader_stdWrap.crop = 300 | ... | 1
                subheader_stdWrap.ifEmpty.field = bodytext
        }
        displaySingle {
                date_stdWrap.strftime= %B %Y
                time_stdWrap.strftime= &nbsp;
        }
}
 
# Menu 3 cObject
temp.menu_3 = HMENU
temp.menu_3.special = directory
temp.menu_3.special.value = 36
temp.menu_3.1 = TMENU
temp.menu_3.1 {
        NO.allWrap = <li> | </li>
        #
        ACT = 1
        ACT.doNotLinkIt = 1
        ACT.allWrap = <li> | </li>
}
# Menu 2 cObject
temp.menu_2 = HMENU
temp.menu_2.special = directory
temp.menu_2.special.value = 32
temp.menu_2.1 = TMENU
temp.menu_2.1 {
        NO.allWrap = <li><p> | </p></li>
        #
        ACT = 1
        ACT.doNotLinkIt = 1
        ACT.allWrap = <li><p class="active"> | </p></li>
}

# Menu 1 top
temp.menu_1 = HMENU
temp.menu_1.special = directory
temp.menu_1.special.value = 1
temp.menu_1.1 = TMENU
temp.menu_1.1 {
        NO.allWrap = <li><p> | </p></li>
        ACT = 1
#        ACT.doNotLinkIt = 1
        ACT.allWrap = <li><p class="act"> | </p></li>
}
temp.menu_nav_1 = HMENU
temp.menu_nav_1.entryLevel = 1
temp.menu_nav_1.1 = TMENU
temp.menu_nav_1.1 {
        NO.allWrap = <tr><td class="nav_off"> | </td></tr>
        NO.linkWrap = <h3> | </h3>
        NO.ATagBeforeWrap = 1

        ACT = 1
        ACT.doNotLinkIt = 1
        ACT.allWrap = <tr><td class="nav_act"> | </td></tr>
        ACT.linkWrap = <h3> | </h3>
        ACT.ATagBeforeWrap = 1
}

config {
        index_enable = 1        # for pages
        index_externals = 0    # for documents
        no_cache = 0
        metaCharset = utf-8
        renderCharset = utf-8
        notification_email_encoding = quoted-printable
        notification_email_charset = utf-8
}

# Template content object
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
        template < plugin.tx_automaketemplate_pi1
        workOnSubpart = DOCUMENT_BODY
        subparts.nav_menu_< temp.menu_1
        subparts.nav_lang_ < temp.menu_2
        subparts.navigator_menu< temp.menu_nav_1       
        subparts.top_links< temp.menu_3
        subparts.print_version < plugin.tx_cronprintlink_pi1
 
        subparts.sitemap < styles.sitemap.text
        subparts.border < styles.content.get
        subparts.border {
                table = tt_content
                select.orderBy = sorting
                select.where = colPos=3
                select.pidInList = 1
        }
        subparts.right< styles.content.get
        subparts.right{
                table = tt_content
                select.orderBy = sorting
                select.where = colPos=2
                select.pidInList = 1
        }
        subparts.pagecontent < styles.content.get
        subparts.pagecontent {
                table = tt_content
                select.orderBy = sorting
                select.where = colPos=0
        }
}
# Page config
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.stylesheet = fileadmin/template/styles/int.css
page.headerData.100 = HTML
page.headerData.100.value = <script type="text/javascript" src="fileadmin/template/js/flashobject.js"></script>
#page.meta.DESCRIPTION = Microsharp Corporation Limited is a highly innovative dynamic company developing light manipulation solutions for its clients, mainly in the displays industry. Its polymer films enable redirection of light for improved viewing and novel optical designs.
#page.meta.KEYWORDS = depixelator, diffuser, display, light, image, flat panel, backlight, LCD, RPTV, prismatic film

config.simulateStaticDocuments = 0
 
config.prefixLocalAnchors = all
config.tx_realurl_enable = 0

#print version
print = PAGE
print.stylesheet = fileadmin/template/styles/print.css
print {
        typeNum = 98
        10 = TEMPLATE
        10 {
                template = FILE
                template.file = fileadmin/template/print.html
                workOnSubpart = DOCUMENT_BODY
                subparts.PRINT_CONTENT < styles.content.get
                subparts.PRINT_FOOTER < styles.content.get
                subparts.PRINT_FOOTER {
                        table = tt_content
                        select.orderBy = sorting
                        select.where = colPos=0
                        select.pidInList = 42
                }
        }
}
print.config.no_cache = 1

config.prefixLocalAnchors = all
config.simulateStaticDocuments = 0
config.baseURL = http://тратата/
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.linkVars = L



Часовой пояс GMT +4, время: 15:25.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot