[TYPO3-dev] Suggestion to optimize the "click-to-enlarge"option of
Emilie Coma
emilie.coma at wanadoo.fr
Wed May 23 04:23:55 CEST 2007
Thanks again, I added :
scrollbars=1 in the class.tslib_content.php and I have my scroll bars.
But I still don't know where I should add the code you gave me, so I still
need your answer...
My site is at http://poivredelafreta.com
I tried to learn a bit of various parts of typo3 fast (2weeks) so I am
still confused and need to work more.
I have a newbie question, please don't laugh :
Where is located the template file with the constants and setup ?
Are they files or records of the database.
I know it us supposed to be the basic, but I didn't find a doc easy on
that...
Regards,
emi
-----Message d'origine-----
De : typo3-dev-bounces at lists.netfielders.de
[mailto:typo3-dev-bounces at lists.netfielders.de] De la part de JoH asenau
Envoyé : mardi 22 mai 2007 20:15
À : typo3-dev at lists.netfielders.de
Objet : Re: [TYPO3-dev] Suggestion to optimize the "click-to-enlarge"option
of
> I have the same problem with version 4.1.1 and tried your solution
> but no option appears with the < click-enlarge" option.
>
> Maybe my code is wrong.
>
> If you have time, could you be kind enough to have a look and tell me
> if I did a mistake ?
>
> I've been working on that 3 days.
Well - I found Gernots post and now at least I know what you want to do.
The good news is: It's all there and you don't have to optimize anything.
Reason: imageLinkWrap offers it's own typolink property.
If typolink returns anything the rest of the imageLinkWrap (including the
JSwindow settings) will be ignored.
Now taking a look at the typolink section of TSref
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.
0.0/view/5/8/
shows there is a variant of the target part to open windows with a special
size and add some scrollbars to them.
So this one should be working together with CSS-styled-content
imageLinkWrap {
typolink.parameter.cObject = COA
typolink.parameter.cObject {
10 = IMG_RESOURCE
10.file {
import = uploads/pics/
import.field = image
import.listNum.stdWrap {
data = register:IMAGE_NUM
}
height = 580m
}
stdWrap.noTrimWrap = || 800x600:scrollbars=1|
}
}
Will open a new window with 800x600 size
containing an image with a maximum height of 580 pixels and a variable width
and offering scrollbars for larger images.
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
----------------------------------------------------------------------------
-----------
Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
Aucun virus connu a ce jour par nos services n'a ete detecte.
More information about the TYPO3-dev
mailing list