[TYPO3-german] wec_map eigenes Template?

Basti sebastian.schmal at gmx.de
Thu Sep 17 19:41:56 CEST 2009


Einen Rahmen um die Ext. habe ich nun via Typo3 - Rahmen gelöst!

Eine Anleitung habe ich hier geschrieben:

http://blog.ingeniumdesign.de/2009/09/16/typo3-cal_controller-und-wec_map/

rahmen:
http://blog.ingeniumdesign.de/2008/04/22/typo3-neue-rahmen-fur-content-elemente/

Grüße, basti


------------------------------------------

TYPO3 - TIPS - ANLEITUNGEN - NEWS - TYPO3

unter: http://blog.ingeniumdesign.de/

------------------------------------------

Basti schrieb:
> Hallo,
> 
> habe es nun heraus gefunden:
> 
> ## Map InfoBox Config
> plugin.tx_wecmap_pi3 {
> 
>   height = 400
>   width = 420
>   controls.mapControlSize =
>   controls.showOverviewMap =
>   controls.showMapType =
>   controls.showScale =
>   pid = 64
> 
>   zoomLevel =
>   centerLat =
>   centerLong =
>   mapName =
>   maxAutoZoom =
> 
>   # example for tables configuration
>   #
>   tables {
>     10 {
>       table = tx_cal_location
> 
>       # config for title
>       title {
>         title = TEXT
>         title.field = name
>         title.wrap = <h1>|</h1>
>       }
> 
>       # config for description
>       description = COA
>       description {
>         10 = COA
>         10 {
>           10 = TEXT
>           10.field = description
>           10.wrap = <div>|</div>
>           10.if.isTrue.field = description
>           #
>           20 = TEXT
>           20.field = street
>           20.wrap =  |
>           20.if.isTrue.field = street
>           #
>           30 = TEXT
>           30.field = zip
>           30.wrap = |
>           30.if.isTrue.field = zip
>           #
>           40 = TEXT
>           40.field = city
>           40.wrap = |
>           40.if.isTrue.field = city
>           #
>           50 = TEXT
>           50.field = country
>           50.wrap = |
>           #
>           60 = TEXT
>           60.field = state
>           60.wrap = (|)
>           60.if.isTrue.field = state
>         }
>         10.wrap = <p>|</p>
>       }
>     }
>     20 {
>       table = fe_users
>       join  = INNER JOIN some_mm_table
>       where = pid=95 and deleted=0 and disable=0
>     }
>   }
> 
>   defaulttitle < tx_wecmap_api.defaulttitle
>   defaultdescription < tx_wecmap_api.defaultdescription
>   homeicon < tx_wecmap_api.homeicon
>   sidebar < tx_wecmap_api.sidebar
>   directions < tx_wecmap_api.directions
>   sidebarItem < tx_wecmap_api.sidebarItem
>   addressForm < tx_wecmap_api.addressForm
>   outputn < tx_wecmap_api.output
>   #_CSS_DEFAULT_STYLE < tx_wecmap_api._CSS_DEFAULT_STYLE
>   _CSS_DEFAULT_STYLE >
> 
>   # this is simply to check if this template is included
>   templateIncluded = 1
> }
> 
> natürlich muss man aus der richtig table auslesen:
> table = tx_cal_location
> 
> Wenn man nun noch einen wrap um die Map legen könnte, wäre das perfekt.
> Bin für jede Hilfe dankebar!
> 
> Basti
> 
> 
> "Basti" <sebastian.schmal at gmx.de> schrieb im Newsbeitrag 
> news:mailman.1.1253113343.16272.typo3-german at lists.netfielders.de...
>> Hallo,
>>
>> hab in foren noch einmal nach gelesen:
>>
>> pi3 benutzte ich... es greift nun:
>> plugin.tx_wecmap_pi3 {
>>  height = 400
>>  width = 420
>>  showDirections = 1
>>  prefillAddress = 0
>>  initialMapType = G_SATELLITE_MAP
>>  controls.mapControlSize = small
>>  controls.showOverviewMap = 1
>>  controls.showMapType = 0
>>  controls.showScale = 0
>>  pid = 64
>> }
>>
>>
>> doch die Infobox greift noch nicht:
>> z.b.
>> plugin.tx_wecmap_pi3.marker {
>>  title = COA
>>  title {
>>    10 = TEXT
>>    10.field = title
>>    10.wrap = <div class="infotitle"><strong>|</strong></div>
>>  }
>> }
>>
>>
>> Was mache ich noch mit der InfoBox falsch? Oder heißt es bei der InfoBox 
>> dann wieder:
>> plugin.tx_wecmap_pi1.marker ?
>>
>> Grüße,
>> Basti
>>
>>
>>
>> "Basti" <sebastian.schmal at gmx.de> schrieb im Newsbeitrag 
>> news:mailman.1.1253109506.20470.typo3-german at lists.netfielders.de...
>>> Hallo,
>>>
>>>
>>> habe nun mal diese Werte in mein root-Template eingetragen:
>>>
>>> # Deklaration der HTML Dokumenttypdefinition (DTD) als XHTML 
>>> transistional
>>> config {
>>>  xmlprologue = none
>>>  xhtml_cleaning = all
>>>  sys_language_uid = 0
>>>  language = de
>>>  locale_all = de_DE.UTF-8
>>>  htmlTag_langKey = de_DE
>>>  doctype = xhtml_trans
>>>  #renderCharset = utf-8
>>>  #additionalHeaders = Content-Type:text/html;charset=utf-8
>>>  # cooluri aktivieren
>>>  simulateStaticDocuments = 0
>>>  baseURL = http://www.kuechen-campus.macrocom.de/
>>>  tx_cooluri_enable = 0
>>>  prefixLocalAnchors = all
>>> }
>>>
>>>
>>> page.config.headerComment (
>>> TYPO3 by macrocom.de
>>> )
>>>
>>> ### SEO Meta-Tags ###
>>> # titel disable
>>> config.noPageTitle = 2
>>>
>>> # defaultJS disable
>>> #page.config.removeDefaultJS = 0
>>>
>>> # Aufraeumumarbeiten ...
>>> config {
>>>  xhtml_cleaning = all
>>>  # CSS auslagern
>>>  disablePrefixComment = 1
>>>  inlineStyle2TempFile = 1
>>>  #removeDefaultJS = external
>>> }
>>>
>>> #HTML saeubern
>>> lib {
>>>  stdheader {
>>>    stdWrap {
>>>      #DIVs um Ueberschriften entfernen
>>>      #dataWrap =
>>>      # Kommentare fuer Ueberschriften entfernen
>>>      prefixComment =
>>>    }
>>>    # Klasse der ersten Ueberschrift auf einer Seite entfernen
>>>    #3.headerClass =
>>>    #3.headerClass.noTrimWrap =
>>>    # br nach Ueberschriften entfernen
>>>    10.stdWrap.wrap =
>>>  }
>>>  # unnoetigen Quelltext durch rteHtmlArea entfernen
>>>  parseFunc_RTE.nonTypoTagStdWrap {
>>>    encapsLines {
>>>      addAttributes.P.class =
>>>      innerStdWrap_all.ifEmpty =
>>>    }
>>>    # Umschreibung in semantisch korrektes XHTML
>>>    HTMLparser {
>>>      tags {
>>>        b.remap = strong
>>>        i.remap = em
>>>      }
>>>    }
>>>  }
>>> }
>>> tt_content {
>>>  # Kommentare fuer Content-Elemente entfernen
>>>  stdWrap.prefixComment =
>>>  # Kommentare fuer Text-Elemente entfernen
>>>  text.20.prefixComment =
>>>  # Kommentare fuer Listen-Elemente entfernen
>>>  bullets.20.stdWrap.prefixComment =
>>>  # Kommentare fuer Tabellen entfernen
>>>  table.20.stdWrap.prefixComment =
>>>  # Anker vor Content-Elementen entfernen
>>>  stdWrap.dataWrap =
>>>  stdWrap.prepend.dataWrap =
>>> }
>>>
>>> ###Content table class disable###
>>> lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class
>>> ###p in table disable###
>>> lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default >
>>> lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc 
>>> =< lib.parseFunc
>>>
>>> // Wirft das CLEAR.GIF raus
>>> tt_content.image.20.spaceBelowAbove = 0
>>> tt_content.header.stdWrap.space = 0|0
>>> tt_content.stdWrap.space = 0|0
>>> tt_content.stdWrap.spaceBefore = 0
>>> tt_content.stdWrap.spaceAfter = 0
>>> lib.stdheader.stdWrap.space = 0|0
>>>
>>> // Und hier wird das CLEAR.GIF hinter den Überschriften rausgenommen
>>> tt_content.text.20.parseFunc.tags.typohead.stdWrap.space = 0|0
>>>
>>>
>>> # ---------------------
>>> # Spamschutz
>>> # ---------------------
>>> config.spamProtectEmailAddresses = 2
>>> config.spamProtectEmailAddresses_atSubst = (at)
>>> config.notification_email_charset = utf-8
>>>
>>>
>>>
>>> # ---------------------
>>> # Rahmen
>>> # ---------------------
>>> tt_content.stdWrap.innerWrap.cObject = CASE
>>> tt_content.stdWrap.innerWrap.cObject {
>>>  key.field = section_frame
>>>  100 = TEXT
>>>  100.value = <div class="right-content-rahmen">|</div>
>>>  #101 = TEXT
>>>  #101.value = <div class="rahmen-kontakt-first-02">|</div>
>>> }
>>>
>>>
>>> page = PAGE
>>>
>>> page {
>>>  #bodyTag = <body>
>>>  includeCSS {
>>>    file1 = fileadmin/css/main.css
>>>    file2 = fileadmin/css/cal_styles.css
>>>    file3 = fileadmin/css/form_styles.css
>>>    #file4 = fileadmin/carstensen-bueroeinrichtung/css/linklist_styles.css
>>>    #file5 = fileadmin/carstensen-bueroeinrichtung/css/news_styles.css
>>>  }
>>>
>>>  includeJS {
>>>    #file1 = fileadmin/carstensen-bueroeinrichtung/js/check.js
>>>    #file2 = fileadmin/carstensen-bueroeinrichtung/js/jquery-1.3.2.min.js
>>>    #file3 = fileadmin/scripts/buerowelten/buerowelten.js
>>>  }
>>>
>>>  10 = TEMPLATE
>>>  10 {
>>>    template = FILE
>>>    template.file = fileadmin/templates/main.html
>>>    workOnSubpart = CONTENT
>>>    marks {
>>>
>>>
>>>      HEADERLOGO = CONTENT
>>>      HEADERLOGO {
>>>        table = tt_content
>>>        select {
>>>          pidInList = 52
>>>          where = colPos = 0
>>>          orderBy = sorting
>>>        }
>>>      }
>>>
>>>      HEADERSUBNAVI = HMENU
>>>      HEADERSUBNAVI {
>>>
>>>        special = directory
>>>        special.value = 45
>>>
>>>
>>>        #1 level top-menu
>>>        1 = TMENU
>>>        1 {
>>>          noBlur = 1
>>>          expAll = 0
>>>
>>>          wrap = <ul class="sub-navi">|</ul>
>>>
>>>          # Normal state properties
>>>          NO = 1
>>>          NO.allWrap = <li>|</li> <li>&#124;</li> |*| <li>|</li> 
>>> <li>&#124;</li> |*| <li>|</li>
>>>          NO.ATagTitle.field = subtitle // title
>>>          #NO.ATagParams = class="menu_entry"
>>>          #NO.ATagParams.insertData = 1
>>>
>>>          # Enable active state and set properties:
>>>          ACT = 1
>>>          ACT.wrapItemAndSub = <li>|</li> <li>&#124;</li> |*| <li>|</li> 
>>> <li>&#124;</li> |*| <li>|</li>
>>>          ACT.ATagTitle.field = subtitle // title
>>>
>>>        }
>>>      }
>>>
>>>
>>>
>>>      HEADERNAVI = HMENU
>>>      HEADERNAVI {
>>>
>>>        #1 level top-menu
>>>        1 = TMENU
>>>        1 {
>>>          noBlur = 1
>>>          expAll = 0
>>>
>>>          wrap = <ul class="navi">|</ul>
>>>
>>>          # Normal state properties
>>>          NO = 1
>>>          NO.allWrap = <li class="first-navi">|</li>|*|<li>|</li>
>>>          NO.ATagTitle.field = subtitle // title
>>>
>>>          # Enable active state and set properties:
>>>          ACT = 1
>>>          ACT.wrapItemAndSub = <li class="first-navi-act">|</li>|*|<li 
>>> class="navi-act">|</li>
>>>          ACT.ATagTitle.field = subtitle // title
>>>
>>>          #ACTIFSUB = 1
>>>          #ACTIFSUB.allWrap = |
>>>          #ACTIFSUB.ATagTitle.field = subtitle // title
>>>
>>>        }
>>>      }
>>>
>>>
>>>      CONTAINERHEADERIMAGE =
>>>
>>>      CONTAINERHOMECONTENT = COA
>>>      CONTAINERHOMECONTENT {
>>>        wrap = <div id="outer-container-nohead-content">|</div>
>>>        10 = COA
>>>        10 {
>>>          10 < styles.content.getBorder
>>>          10.stdWrap.wrap = <div id="left-top-image">|</div>
>>>          20 = HMENU
>>>          20 {
>>>
>>>            entryLevel = 1
>>>
>>>
>>>            #1 level top-menu
>>>            1 = TMENU
>>>            1 {
>>>
>>>              noBlur = 1
>>>              expAll = 0
>>>
>>>              wrap = <ul class="main-sub-navi">|</ul>
>>>
>>>              # Normal state properties
>>>              NO = 1
>>>              NO.allWrap = <li>|</li>
>>>              NO.ATagTitle.field = subtitle // title
>>>
>>>              # Enable active state and set properties:
>>>              ACT = 1
>>>              ACT.wrapItemAndSub = <li class="main-sub-navi-no-act">|</li>
>>>              ACT.ATagTitle.field = subtitle // title
>>>
>>>
>>>              # Normal state properties if SUB
>>>              IFSUB = 1
>>>              IFSUB.allWrap = <li class="main-sub-navi-no-sub">|</li>
>>>              IFSUB.ATagTitle.field = subtitle // title
>>>
>>>              # ACT state properties if SUB
>>>              ACTIFSUB = 1
>>>              ACTIFSUB.allWrap = <li 
>>> class="main-sub-navi-act-sub">|</li><li 
>>> class="main-sub-navi-no-sub-last">
>>>              ACTIFSUB.ATagTitle.field = subtitle // title
>>>
>>>            }
>>>
>>>            #2 level top-menu
>>>            2 = TMENU
>>>            2 {
>>>
>>>              noBlur = 1
>>>              expAll = 0
>>>
>>>              wrap = <ul class="main-sub-navi-02">|</ul></li>
>>>
>>>              # Normal state properties
>>>              NO = 1
>>>              NO.allWrap = <li class="sub-navi-02">|</li>
>>>              NO.ATagTitle.field = subtitle // title
>>>
>>>              # Enable active state and set properties:
>>>              ACT = 1
>>>              ACT.wrapItemAndSub = <li class="sub-navi-02-act">|</li>
>>>              ACT.ATagTitle.field = subtitle // title
>>>
>>>            }
>>>          }
>>>          20.stdWrap.wrap = <div id="main-navi">|</div>
>>>        }
>>>        10.stdWrap.wrap = <div id="outer-content-nohead-left">|</div>
>>>        20 < styles.content.get
>>>        20.stdWrap.wrap = <div id="outer-content-home-middle">|</div>
>>>        30 < styles.content.getRight
>>>        30.stdWrap.wrap = <div id="outer-content-home-right">|</div>
>>>      }
>>>
>>>
>>>
>>>      FOOTER = RECORDS
>>>      FOOTER {
>>>        tables = tt_content
>>>        source = 167
>>>        dontCheckPid = 1
>>>        wrap = <div class="copyrighttext"> | </div>
>>>      }
>>>
>>>      FOOTERSAMAS = RECORDS
>>>      FOOTERSAMAS {
>>>        tables = tt_content
>>>        source = 199
>>>        dontCheckPid = 1
>>>      }
>>>
>>>      COPYRIGHTTEXT = TEXT
>>>      COPYRIGHTTEXT {
>>>        wrap = <div class="copyright"> | </div>
>>>        value = Copyright
>>>      }
>>>
>>>      COPYRIGHTDATUM = TEXT
>>>      COPYRIGHTDATUM {
>>>        wrap = <div class="copyrightdatum"> | </div>
>>>        data = date : U
>>>        strftime = %Y
>>>      }
>>>
>>>
>>>    } // marks
>>>  } // 10
>>> } // page
>>>
>>> page.bodyTag >
>>> page.bodyTagCObject = TEXT
>>> page.bodyTagCObject.data = field:uid
>>> page.bodyTagCObject.wrap = <body id="site_|">
>>>
>>> config.sourceopt.emptyBodyTag = 0
>>>
>>> page.headerData.3 = TEXT
>>> page.headerData.3.field = subtitle // title
>>> page.headerData.3.wrap = <title>|&nbsp;- Küchen Campus</title>
>>>
>>> page.headerData.98 = TEXT
>>> page.headerData.98.value (
>>> <meta name="verify-v1" 
>>> content="rijLYb08j9Wg698wK8P/zYeTkbdQHbTaxkEKooij8Og=" />
>>> )
>>>
>>> page.headerData.10 = TEXT
>>> page.headerData.10.value (
>>> <script src="fileadmin/js/jquery-1.3.2.js"> </script>
>>> )
>>>
>>> page.headerData.90 = TEXT
>>> page.headerData.90.value (
>>> <script src="fileadmin/js/dd-script.js"> </script>
>>> )
>>>
>>> #plugin.tx_macmssqlintaddr_pi1.mitnr = 1019534
>>> plugin.tx_macrechtshinweis_pi1.firma = Carstensen Büro & Objekt
>>> plugin.tx_thmailformplus_pi1.herkunfturl=Carstensen Büro & Objekt
>>>
>>> # Text wenn die Seite neu geladen wird
>>> config.message_page_is_being_generated = Die Seite wird geladen.
>>>
>>>
>>>
>>> # Anweisungen für das Rendern, u.a. auf für die Bilder
>>>
>>> tt_content.image.20.renderMethod = dl
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> plugin.tx_wecmap_pi1 {
>>>
>>>  height = 700
>>>
>>>  width = 500
>>>
>>>  showDirections = 1
>>>
>>>  prefillAddress = 0
>>>
>>>  initialMapType = G_SATELLITE_MAP
>>>
>>>  controls.mapControlSize = small
>>>
>>>  controls.showOverviewMap = 1
>>>
>>>  controls.showMapType = 1
>>>
>>>  controls.showScale = 1
>>>
>>>  markers.1 {
>>>
>>>    title = TS title
>>>
>>>    description = TS desc
>>>
>>>    street = 1234 Happy Place
>>>
>>>    city = Happy City
>>>
>>>    zip = 12345
>>>
>>>    state = HS
>>>
>>>    country = Happy Country
>>>
>>>  }
>>>
>>>  markers.2 {
>>>
>>>    title = Another title
>>>
>>>    description = Another description
>>>
>>>    address = 1234 Another Happy Ave, Happy City, HS 12347, Happy Country
>>>
>>>  }
>>>
>>>  markers.3 {
>>>
>>>    #add another marker here
>>>
>>>  }
>>>
>>> }
>>>
>>> plugin.tx_wecmap_pi2 {
>>>
>>>  height = 700
>>>
>>>  width = 500
>>>
>>>  showDirections = 1
>>>
>>>  prefillAddress = 0
>>>
>>>  initialMapType = G_HYBRID_MAP
>>>
>>>  controls.mapControlSize = large
>>>
>>>  controls.showOverviewMap = 1
>>>
>>>  controls.showMapType = 1
>>>
>>>  controls.showScale = 1
>>>
>>>  #userGroups = 2,3,5
>>>
>>>  #pid = 2,3,5
>>>
>>> }
>>>
>>>
>>>
>>>
>>> Doch verändert sich ander Map nichts!
>>> habe auch im allg. Plugin keine Größe für die karte angegeben!
>>>
>>>
>>> Würde mich auf Hilfe freuen!
>>>
>>> Basti
>>>
>>>
>>>
>>> "Basti" <sebastian.schmal at gmx.de> schrieb im Newsbeitrag 
>>> news:mailman.1.1253108454.13899.typo3-german at lists.netfielders.de...
>>>> Hallo,
>>>>
>>>> benutzte die wec_map, würde nun gerne wissen ob man dafür ein eigenes 
>>>> Template einsetzten kann?
>>>>
>>>> egal wo ich die TS Einstellungen vornehme, werden diese nicht 
>>>> angenommen!
>>>>
>>>> Grüße, Basti
>>>>
>>>>
>>>
>>
> 
> 


More information about the TYPO3-german mailing list