Zum Inhalt springen

Content Browsing

Erstellt am 25. Juli 2003 · 8 Antworten · letzte Antwort am 24. MĂ€rz 2008

Tags: Frage

s.​sach ·

Ich hoffe, ich bin im richtigen Forum :o

Habe das "Content Browsing" (http://typo3.org/1383.0.html?&tx_extrepmgm_pi1[mode]=5&tx_extrepmgm_pi1[showUid]=433) installiert. Jedoch bekomme ich es bei meinem Template nicht zum laufen.

Hier mein Template:

lib.stdheader.10.stdWrap.wrap =
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>

page = PAGE
page.typeNum = 0
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/tus2.htm
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < styles.content.get

subparts.MENU = HMENU
subparts.MENU.entryLevel = 0
subparts.MENU.1 = TMENU
subparts.MENU.1 {
expAll = 1
NO.allWrap = <font face=Verdana size="2"><b> |</b></font><br>
}
subparts.MENU.2 = TMENU
subparts.MENU.2 {
expAll = 1
NO {
allWrap = <font face=Verdana size="2" color=black>| </font><br>
beforeImg = media/bullets/bullet1_n.gif
beforeROImg = media/bullets/bullet1_h.gif
RO = 1
}
}
}

Wie und wo muss ich den Wert "plugin.tx_cccbrowse_pi1" integrieren? Hab schon hundert mal rumprobiert, habs aber nicht hinbekommen 🙁

Kann mir bitte jemand weiterhelfen #paralyzed#

Danke.

Gruß
Steffen

escapedPrisoner ·

Content browsing Extension cc_cbrowse:

Du hast vermutlich ĂŒbersehen, dass die Extension noch im "Experimental"-Status ist. Dann ist klar, dass nur ein Teil der Features funktioniert.

Zu der Extension gehört ein Forum "Forum/Support". Schreib doch dort einfach mal rein und Du wirst erfahren, was schon funktioniert.

Das mit dem Forum hat den Vorteil, dass auch andere das dann gleich mitbekommen. - ist also besser als nur ne Email an den Autor zu schicken.

=> Brauchst eigentlich nur Deinen letzten Beitrag hier auf englisch ĂŒbersetzen. Da stecken alle Infos drin, die man braucht.

Greetzz
ep

s.​sach ·

So Leute,

hab das Content Browsing nun erfolgreich zum Laufen gebracht:

page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/main.css
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/tus2.htm
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < plugin.tx_cccbrowse_pi1

Die Buttons kann man mit CSS formatieren. Z.B.:

   /* gallerie - listing */	
  .tx-cccbrowse-pi1-browsebox   { clear:both; }
  .tx-cccbrowse-pi1-browsebox table  { border-style:dotted; border-width:1px; border-color:#FF3333; border-collapse:collapse; margin-top:15px; margin-left:auto; margin-right:10px; text-align:right;}
  .tx-cccbrowse-pi1-browsebox table td { border-style:dotted; border-width:1px; border-color:#FF3333; text-align:center; margin:2px; padding-bottom:2px; padding-top:2px; padding-left:4px; padding-right:4px; background:#FFFF66;}
  .tx-cccbrowse-pi1-browsebox table td p a { font-weight:bold; text-decoration:none;font-family:verdana; font-size:12px;}
  .tx-cccbrowse-pi1-browsebox-SCell p a { color:black; text-decoration:none; font-face:bold;}

Eventuell hilft dies jemandem 😉

Gruß
Steffen

getimo ·

Hi, habe mich die ganze Zeit gefragt, wie das lÀuft, wenn man nicht mit Subparts atrbeitet. Falls jemand auch das Problem hat, hier die Lösung:

Als erstes ins Templae-Setup den Code rein (anpassen bitte):

# BlÀtter-Funktion

plugin.tx_cccbrowse_pi1 {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos=0
  select.languageField = sys_language_uid

  defaultBrowsingType = browse
  fieldCType =
  allowSplitInCTypes = text,html
  denySplitInCTypes = all
  allowDenyOrder = allow,deny
}

plugin.tx_cccbrowse_pi1._LOCAL_LANG.default {
  pi_list_browseresults_page =
}

plugin.tx_cccbrowse_pi1._CSS_DEFAULT_STYLE (
  .tx-cccbrowse-pi1-browsebox   { clear:both; }
  .tx-cccbrowse-pi1-browsebox table  { margin-top:15px; margin-left:auto; margin-right:10px; text-align:right; }
  .tx-cccbrowse-pi1-browsebox table td { margin:2px; border: 1px #ddd solid; padding-bottom:0px; padding-top:2px; padding-left:4px; padding-right:4px; background:#f1f1f1; }
  .tx-cccbrowse-pi1-browsebox table td p a { font-weight:normal; text-decoration:none; }
  .tx-cccbrowse-pi1-browsebox-SCell p a { color:black; text-decoration:none;}
)

tt_content.text.20.parseFunc.allowTags = {$styles.content.links.allowTags},split

Wenn man beispielsweise bereits solch einen Code hat:

# Hauptinhalt der Webseite
   marks.INHALT_MITTE < styles.content.get
   marks.INHALT_MITTE.select.orderBy = sorting

fĂŒgt man einfach folgende Zeile hinzu, dass es so aussieht:

# Hauptinhalt der Webseite
   marks.INHALT_MITTE < styles.content.get
   marks.INHALT_MITTE < plugin.tx_cccbrowse_pi1
   marks.INHALT_MITTE.select.orderBy = sorting

Jetzt hab ich auch die BlĂ€tterfunktion 🙂

greets

getimo

getimo ·

Leider habe ich ein Problem bemerkt. Durch das Content Browsing verschwinden bei mir das Suchfeld fĂŒr die indexierte Suche sowie die Amazon-extensions.

Ich habe doch das GefĂŒhl, dass ich das PlugIn nicht richtig einbinde. Hat jemand vielleicht einen kleinen Denkanstoß, was die EInbindung betrifft? Wie gesagt, es funktioniert alles, nur verschwinden die anderen PlugIns, und das soll natĂŒrlich nicht sein.

getimo

sauron ·

habe das selbe proble. cc_cbrowse ist das einzige plugin das einigermassen das blÀttern beherrscht

allerdings gehen dann bei mir newloginbox und indexedsearch nicht mehr

weiss jemand rat?

sauron ·

LÖSUNG: einfach per condition das problem umgehen indem man per PID definiert wo das plugin greifen darf... Bei mir brauche ich die blĂ€tter-funktion nur auf der PID 3 --> mein code:

tempCONTENT = CONTENT
[globalVar = TSFE:id = 3]
    tempCONTENT < plugin.tx_cccbrowse_pi1
  [else]
    tempCONTENT < styles.content.get 
  [end]

weiter unten dan die Markerzuweisung:

  marks.CONTENT = CONTENT
  marks.CONTENT < tempCONTENT

hoffe das hilf vielleicht jemandem

grĂŒsse

felis ·

Bitte um Hilfe - ich bekomme das einfach nicht hin.
Was muß ich bei
fieldCType =
und pi_list_browseresults_page =
eintragen
und wo spreche ich meinen Marker an?
Hier mein TS:

# Ausblenden der Typ-Nummer in der HTML-Adresse
config.simulateStaticDocuments_noTypeIfNoTitle = 1

seite = PAGE
seite {
    typeNum = 0
    #stylesheet = fileadmin/ortho/styles/style.css
    includeCSS.file1 = fileadmin/ortho/styles/style.css
    meta.AUTHOR = 
    meta.DESCRIPTION = 

10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/ortho/vorlage.htm

10.marks {

#------------------------------------------- last update
      LASTUPDATE = TEXT
      LASTUPDATE {
        data = register : SYS_LASTCHANGED
        if.isTrue.data = register : SYS_LASTCHANGED
        strftime = %e.%m.%Y
        wrap =  Letzte Änderung: &nbsp; | 

#------------------------ BlÀtter-Funktion

plugin.tx_cccbrowse_pi1 {
table = tt_content
select.orderBy = sorting
select.where = colPos=0
select.languageField = sys_language_uid
defaultBrowsingType = browse
fieldCType =
allowSplitInCTypes = text,html
denySplitInCTypes = all
allowDenyOrder = allow,deny
}
plugin.tx_cccbrowse_pi1._LOCAL_LANG.default {
pi_list_browseresults_page =
}
  
plugin.tx_cccbrowse_pi1._CSS_DEFAULT_STYLE (
.tx-cccbrowse-pi1-browsebox   { clear:both; }
.tx-cccbrowse-pi1-browsebox table  { margin-top:15px; margin-left:auto; margin-right:10px; text-align:right; }
.tx-cccbrowse-pi1-browsebox table td { margin:2px; border: 1px #ddd solid; padding-bottom:0px; padding-top:2px; padding-left:4px; padding-right:4px; background:#f1f1f1; }
.tx-cccbrowse-pi1-browsebox table td p a { font-weight:normal; text-decoration:none; }
.tx-cccbrowse-pi1-browsebox-SCell p a { color:black; text-decoration:none;}
)
tt_content.text.20.parseFunc.allowTags = {$styles.content.links.allowTags},split 

#----------------------------------------------------------------HauptmenĂŒ
MENU2 = HMENU
MENU2 {
special = directory
special.value = 144
entryLevel = 1
1 = GMENU
1.NO = 1
1.NO {
wrap = |<br>
XY = 192, 24+[16.h]
backColor = #ffffff

10 = TEXT
10.text.field = title
10.text.listNum = 0
10.text.listNum.splitChar = |

10.fontColor = #000000
10.fontFile = fileadmin/ortho/fonts/arial.ttf
10.fontSize = 12
10.align = right
10.niceText = 1
10.offset = -25, 20
transparentBackground = 1
}
#------------------------RollOver HauptmenĂŒ
1.RO < .1.NO
1.RO.fontColor = #FBC953
1.RO {
15 < .10
15.fontColor = #FBC953
15.offset = -25, 20
4 = IMAGE
4.file = fileadmin/ortho/images/over.gif
}
1.CUR < .1.RO
#----------------------------------------------------Zweite Ebene (UP1)
2 < .1
2.NO {
backColor = #ffffff
10.fontColor = #000000
10.fontSize = 10
10.offset = -35, 20
}
2.RO < .2.NO
2.RO.backColor = #ffffff
2.RO.10.fontSize = 10
2.RO.10.fontColor = #FBAF00
2.CUR < .2.RO
#---------------------------------------------------Dritte Ebene (UP2)
3 < .2
3.NO {
10.fontSize = 8
}
3.CUR < .3.RO
}
#----------------------------------------------------------------Obere MenĂŒzeile
MENU1 = HMENU
MENU1.special = directory
MENU1.special.value = 334
MENU1.entryLevel = 1
MENU1.1 = GMENU
MENU1.1.NO = 1
MENU1.1.NO {
wrap = |<br>
XY = 150, 16
backColor = #FBC953

10 = TEXT
10.text.field = title
10.fontColor = #000000
10.fontFile = fileadmin/ortho/fonts/arial.ttf
10.fontSize = 13
10.niceText = 1
10.offset = 25, 12
transparentBackground = 1
}
MENU1.1.RO < .MENU1.1.NO

#--------------------------Over oberesmenĂŒ
MENU1.1.RO {
backColor = #FBC953
15 < .10
15.fontColor = #838382
15.fontSize = 13
15.offset = 25, 12
}
MENU1.1.CUR < .MENU1.1.RO
20.offset = 40, 10

#-----------------------------------------------------Inhalt einfĂŒgen
CONTENTNORMAL = CONTENT
CONTENTNORMAL {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}
CONTENTRECHTS = COA
CONTENTRECHTS.10 = CONTENT
CONTENTRECHTS.10 {
table = tt_content
select.where = colPos = 2
select.orderBy = sorting
}
CONTENTRAND = COA
CONTENTRAND.10 = CONTENT
CONTENTRAND.10 {
table = tt_content
select.where = colPos = 3
select.orderBy = sorting
}
CONTENTNORMAL < plugin.tx_cccbrowse_pi1
CONTENTNORMAL < styles.content.get 
}
}

BITTE; BITTE BRAUCHE DRINGEND HILFE!!!