Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 31.03.08, 08:13
Forum Stammgast
 
Registriert seit: 12.07.07
Beiträge: 335
imagelinkwrap bei $this->cobj

Moin @ Alle,

erste Gehversuche in der Extensionprogrammierung ....
ich hab da ein Problem mit folgendem ....

PHP-Code:

    
if(preg_match('".jpg"'$word)===1){
            
            
$image = array(
             
'file' => 'fileadmin/farben/'.$word,
             
'file.' => array (
             
'maxW' => '150'
             
)
             );

            
$word $this->cObj->IMAGE($image,$image1);
        } 
Das funktioniert .. . .

nur ich bin irgendwie zu blöde da ein Imagelinkwrap drauf anzuwenden ....

PHP-Code:

        
if(preg_match('".jpg"'$word)===1){
            
            
$image = array(
             
'file' => 'fileadmin/farben/'.$word,
             
'file.' => array (
             
'maxW' => '150'
             
)
             
'imageLinkWrap' => 'enable'
             
'imageLinkWrap.' => array (
             
'parameter' => 'fileadmin/farben/'.$word,
             
'ATagParams' => 'rel="lightbox"'
             
)
             );
            
$word $this->cObj->IMAGE($image);
        } 
Wäre schön wenn mir jemand das erklären könnte.

Geändert von rosieres (31.03.08 um 08:15 Uhr). Grund: 1,8 Mio Rechtsschreibfehler ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Sponsored Links
  #2  
Alt 31.03.08, 18:21
Benutzerbild von just2b  
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.052

Hallo,

bau dir das ganze was ins TS gehört auch im TS zusammen, ist auch wesentlich einfacher. Bsp für imagleinkwrap solltest du genug finden für ein cObj IMAGE

anschließend das ganze via TS übergeben und dann mit
$imgConf = $conf['image.']; auslesen
$imgConf['file'] = $deinFile;

und an cObj->IMAGE übergeben mit ($imgConf);

georg
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 01.04.08, 11:22
Forum Stammgast
 
Registriert seit: 12.07.07
Beiträge: 335

ts setup

plugin.tx_rsys_csv2front {

image {
imageLinkWrap = 1
imageLinkWrap {
enable = 1
ATagParams = rel="lightbox"
}
}


und in der pi1

PHP-Code:

    
foreach($words as $word){
    
        if(
preg_match('".jpg"'$word)===1){
            
$image = array(
             
'file' => 'fileadmin/farben/'.$word,
             );
      
$img $this->conf["image."];
      
$img['file'] = $image;
            
$word $this->cObj->IMAGE($img);
            
$content .= $word .' ';
        } else {
            
$content "<p>$word</p>";
        }

    } 
Wo ist der Fehler ... Container für das Bild bleibt leer . . .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 01.04.08, 11:25
Benutzerbild von just2b  
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.052

las dir mal das $conf ausgeben, da steht nix drin

plugin.tx_rsyscsv2front_pi1

georg
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 01.04.08, 11:38
Forum Stammgast
 
Registriert seit: 12.07.07
Beiträge: 335

jetzt muss ich mal ganz blöd fragen ...... warum ist es leer ... bzw wofür ist es ... das pi1 war n schreibe fehler ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #6  
Alt 01.04.08, 11:52
Benutzerbild von just2b  
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.052

weil du es im TS falsch definiert hast
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #7  
Alt 01.04.08, 12:07
Forum Stammgast
 
Registriert seit: 12.07.07
Beiträge: 335

ich seh nicht was falsch gemacht habe oder vergessen habe ....

gib mir nen kleinen Wink mit der Bratpfanne ....

PHP-Code:
plugin.tx_rsys_csv2front_pi1 {
image IMAGE
image 
{
file fileadmin/farben/
file.maxW 140
imageLinkWrap 
1
imageLinkWrap 
{
//enable = 1
ATagParams rel="lightbox"
}
}
tx_rsys_csv2front_pi1 <  plugin.tx_rsys_csv2front_pi1 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #8  
Alt 01.04.08, 12:19
Benutzerbild von just2b  
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.052

plugin.tx_rsyscsv2front_pi1
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #9  
Alt 01.04.08, 12:59
Forum Stammgast
 
Registriert seit: 12.07.07
Beiträge: 335

Das war in der Tat falsch geschrieben ..... !!! DANKE

jedoch bleibt $conf leer . . . . wo kann ich weiter ansetzen um herauszufinden warum es nicht befüllt wird ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #10  
Alt 01.04.08, 13:55
Forum Stammgast
 
Registriert seit: 12.07.07
Beiträge: 335

Nochmal zusammenfassend:

class.tx_rsyscsv2front_pi1.php
PHP-Code:
    foreach($words as $word){
    
        if(
preg_match('".jpg"'$word)===1){
            
            
$image = array(
             
'file' => 'fileadmin/farben/'.$word,
             );
             
      
$img $conf["image."];

foreach (
$conf as $key => $value) {
echo 
$key;
echo 
$value;
}

      
$img['file'] = $image;
            
$word $this->cObj->IMAGE($img);
            
$content .= $word .' ';
        } else {
            
$content "<p>$word</p>";
        }

    } 
gibt mir das conf array aus : userFunctx_rsyscsv2front_pi1->mainimageIMAGEimage.Array

/static/frontend/setup.txt

PHP-Code:
plugin.tx_rsyscsv2front_pi1 {
image {
imageLinkWrap 1
imageLinkWrap 
{
enable 1
ATagParams 
rel="lightbox"
}

Statisch eingebunden ist das ganze im Basistemplate.

Geändert von rosieres (01.04.08 um 14:30 Uhr). Grund: punkte vergessen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Trackbacks are An
Pingbacks are An
Refbacks are An


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
$this->cObj->stdWrap + Extension + Hook Denny1987 Extension modifizieren oder neu erstellen 3 31.03.08 16:00
CobJ TEXT Mehrsprachigkeit Asimock TYPO3 4.x Fragen und Probleme 2 14.03.08 17:20
Probleme mit $this->cObj->IMAGE() typonewbe Extension modifizieren oder neu erstellen 2 20.09.07 16:14
Bilder mit cObj->IMAGE skallieren? typonewbe Extension modifizieren oder neu erstellen 0 19.07.07 16:57
cObj->RECORDS() Bildgröße anpassen maxhb Extension modifizieren oder neu erstellen 1 12.01.07 08:40


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:08 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS