Zum Inhalt springen

Bilder in News einbinden

Erstellt am 12. März 2004 · 6 Antworten · letzte Antwort am 14. März 2004

Tags: Bilder, Frage

Torsten72 ·

Hi

wie kann ich den Bilder in die news einbinden.
Ich kann nur das Textfeld zum editiern sehen.

Danke im vorraus
Torsten

mavo ·

Hi Torsten72,

also das Funktioniert eigentlich ganz einfach:
- neuen Datensatz anlegen, News
- Formular für News: Alles einschreiben was man braucht und Bilder ?? Da klickt man da wo Bilder steht auf den oberste Buttonm neben dem Form und das wars dann. Bildbeschreibung noch evtl rein und das wars.

mfg mavo

PS: das template muss natürlich de

Torsten72 ·

mmh wenn ich einen neuen Datensatz einfügen will sehe ich folgendes
oben Typ: Plugin einfügen (ist doch richtig ?)

Und dann bei Erweiterungen ist NEWS ausgewählt:
Ich kann nur eineÜberschrift engeben, von Bilder sehe ich da
einfach nichts.

Gruß

TW ·
Torsten72 schrieb

mmh wenn ich einen neuen Datensatz einfügen will sehe ich folgendes
oben Typ: Plugin einfügen (ist doch richtig ?)

Und dann bei Erweiterungen ist NEWS ausgewählt:
Ich kann nur eineÜberschrift engeben, von Bilder sehe ich da
einfach nichts.

Gruß

äh.........
du hast da was nicht kapiert.........
was du da machst, damit legst du ein neues news plugin auf der seite an...
in das codefeld schreibst du list für die listenausgabe der news.....

dann musst du einen sys ordner anlegen wo die news reinkommen...
hast du das erledigt, kannst du mit nem klick auf den sys ordner rechts den punkt news auswählen..........

hast du das getan, hast du eine eingabemaske vor dir, wo du die news eintragen kannst, inklusive bildern.........

nachzulesen hier:
http://www.wuest-media.de/31.0.html

cu
thorsten

Torsten72 ·

ah das erklärt einiges, es geht aber trotzdem nicht
auf der Seite wird nichts angezeigt
Im Constants Feld habe ich folgendes:

plugin.tt_news {
  file.templateFile = media/scripts/news_template.tmpl
  wrap1 = <font color="#999999"> | </font>
  wrap2 = <font color="#004263"> | </font>
  color1 = #999999
  color2 = #004263
  PIDitemDisplay = single_news_display_pid
}

außerdem binde ich plugin.tt_news bei Include static ein.

Irgendwas stimmt dabei garantiert nicht nur was ?

Gruß Torsten

TW ·
Torsten72 schrieb

ah das erklärt einiges, es geht aber trotzdem nicht
auf der Seite wird nichts angezeigt
Im Constants Feld habe ich folgendes:

plugin.tt_news {
  file.templateFile = media/scripts/news_template.tmpl
  wrap1 = <font color="#999999"> | </font>
  wrap2 = <font color="#004263"> | </font>
  color1 = #999999
  color2 = #004263
  PIDitemDisplay = single_news_display_pid
}

außerdem binde ich plugin.tt_news bei Include static ein.

Irgendwas stimmt dabei garantiert nicht nur was ?

Gruß Torsten

hoi
also
nimmst du mal das hier in die constants mit rein

plugin.tt_news {
    # cat=plugin.news/file; type=file[html,htm,tmpl,txt]; label= Template File: HTML-template file for display of news. See EXT:tt_news/pi/news_template.tmpl for an example
  file.templateFile = EXT:tt_news/pi/news_template.tmpl

    # cat=plugin.news/typo; type=wrap; label= Wrap 1: This wrap is used in the template-file.
  wrap1 =  | 
    # cat=plugin.news/typo; type=wrap; label= Wrap 2: This wrap is used in the template-file.
  wrap2 = <B> | </B>
# cat=plugin.news/typo; type=wrap; label= Wrap 3: This wrap is used in the template-file.
  wrap3 = <B><L> |</L></B>

    # cat=plugin.news/color; type=color; label= Color 1: This bgcolor is used in the template-file.
  color1 = #FFFFFF
    # cat=plugin.news/color; type=color; label= Color 2: This bgcolor is used in the template-file.
  color2 = #999999
    # cat=plugin.news/color; type=color; label= Color 3: This bgcolor is used in the template-file.
  color3 = #333333

  

    # cat=plugin.news//; type=int+; label= "Single" pid: The PID of the page on which single news items should be displayed
  PIDitemDisplay = 0
    # cat=plugin.news//; type=int+; label= "Back" pid: The PID of the page to go back to from single news item display screen.
  backPid = 0
}

folgendes in das setup

## Deutsche Datumsanzeige im Newsmodul 
config.sys_language_uid = 0 
config.language = de 
config.locale_all = de_DE 
plugin.tt_news.displayList { 
age_stdWrap.age = 1 
date_stdWrap.strftime = %A, %e. %B %Y 
time_stdWrap.strftime = %e.%m.%y 
} 

## Includes the newsLib:
includeLibs.ts_news = EXT:tt_news/pi/class.tx_ttnews.php

## This enables the tt_content.list item to display the news:
plugin.tt_news >
plugin.tt_news = USER
plugin.tt_news {
  userFunc = tx_ttnews->main_news

  templateFile = {$plugin.tt_news.file.templateFile}
  pid_list.field = pages
  recursive.field = recursive
  code.field = select_key

  # Global wraps
  wrap1.wrap = {$plugin.tt_news.wrap1}
  wrap2.wrap = {$plugin.tt_news.wrap2}
  wrap3.wrap = {$plugin.tt_news.wrap3}
  color1.wrap = {$plugin.tt_news.color1}
  color2.wrap = {$plugin.tt_news.color2}
  color3.wrap = {$plugin.tt_news.color3}

  # Rendering of news items
  general_stdWrap {
    brTag = <BR>
    parseFunc < styles.content.parseFunc
  }

  limit = 5
  latestLimit = 5
  backPid = {$plugin.tt_news.backPid}
  PIDsearch = 
  PIDitemDisplay = {$plugin.tt_news.PIDitemDisplay}
  datetimeDaysToArchive = 0
  enableArchiveDate = 1
  pageTypoLink.parameter.current = 1
  archiveTypoLink.parameter = {$plugin.tt_news.backPid}

  archiveMenuNoEmpty = 1
  archiveTitleCObject = COA
  archiveTitleCObject {
    10 = TEXT
    10.field = start
    10.strftime = %B - %Y
  }

  getRelatedCObject = COA
  getRelatedCObject {
    10 = TEXT
    10.field = title
    10.typolink.parameter = {$plugin.tt_news.PIDitemDisplay}
    10.typolink.additionalParams.field = uid 
    10.typolink.additionalParams.wrap = &tt_news=|
    20 = TEXT
    20.field = datetime
    20.strftime = %e-%m-%y %H:%M
    20.wrap = <font size=1> - | </font>
  }

  # SINGLE news
  displaySingle {
    age_stdWrap.age = 1
    date_stdWrap.strftime= %e-%m-%y
    time_stdWrap.strftime= %H:%M
    title_stdWrap.wrap = <b>|</b>
    author_stdWrap.case = upper
    author_stdWrap.typolink.parameter.field = author_email

    imageCount=1
    imageWrapIfAny = <table border=0 cellpadding=0 cellspacing=0 align=right width=1><tr><td><img src=clear.gif width=15 height=1></td><td>|</td></tr></table>

    email_stdWrap.setContentToCurrent = 1
    email_stdWrap.typolink.parameter.current = 1
    caption_stdWrap.wrap = <font color=red face=verdana size=1>|</font><BR><BR>
    caption_stdWrap.trim=1
    caption_stdWrap.required=1
  }
  displaySingle.image {
    file.maxW = 250
    
    wrap = | <BR>
    imageLinkWrap = 1
    imageLinkWrap {
      enable = 1
      bodyTag = <BODY bgColor=black>
      wrap = <A href="javascript:close();"> | </A>
      width = 400m
      height = 400

      JSwindow = 1
      JSwindow.newWindow = 1
      JSwindow.expand = 17,20
    }
    stdWrap.spaceAfter=10
  }

  # LATEST news
  displayLatest {
    age_stdWrap.age = 1
    date_stdWrap.strftime= %e-%m-%y
    time_stdWrap.strftime= %H:%M
    caption_stdWrap.if.directReturn = 0
    subheader_stdWrap.crop = 100 | ...
    subheader_stdWrap.ifEmpty.field = bodytext
    imageCount=1
    imageWrapIfAny = <table border=0 cellpadding=0 cellspacing=0 align=left><tr><td>|</td><td><img src=clear.gif width=5 height=1></td></tr></table>
  }
  displayLatest.image < displaySingle.image
  displayLatest.image {
    file.maxW = 50
    imageLinkWrap = 0
    stdWrap.spaceAfter=5
  }

  # LIST news
  displayList {
    age_stdWrap.age = 1
    date_stdWrap.strftime= %A %e. of %B
    time_stdWrap.strftime= %e-%m-%y %H:%M
    caption_stdWrap.wrap = <font face=verdana size=1 color=navy>|</font><BR>
    caption_stdWrap.trim=1
    caption_stdWrap.required=1
    subheader_stdWrap.crop = 350 | ...
    subheader_stdWrap.ifEmpty.field = bodytext
    imageCount=1
    imageWrapIfAny = 
  }
  displayList.image < displaySingle.image
  displayList.image {
    file.maxW = 250
    imageLinkWrap = 1
    stdWrap.spaceAfter=0
  }
}



## This enables the tt_content.record item to display news items:
tt_news >
tt_news = < plugin.tt_news
tt_news.displayCurrentRecord = 1

und schmeiss die "plugin.tt_news bei Include static " vauf jeden fall raus...

die codes für die constants und das setup findest du auch im file ordner der tt_news..
in die wraps 1-3 kannst du entweder css rein machen oder html tags

cu
thorsten

Torsten72 ·

hi schonmal danke
da es aber einfach nicgt funktionieren will habe ich mal nachgeschuat und bei den NEWS
Module folgenden Fehler gefunden:

Errors: No XCLASS inclusion code found in file 'pi/class.tx_ttnews.php'

in class.tx_ttnews.php

steht folgendes in der Zeile 718:
if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/tt_news/pi/class.tx_ttnews.php"]) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/tt_news/pi/class.tx_ttnews.php"]);
}

das müsste damit was zu tun haben nur was ist falsch.

Gruß