[TYPO3-english] How to fix max image width for page content?

Benoit Montereau bmontereau at gmail.com
Fri Sep 17 14:55:17 CEST 2010


Hi Joey,
Thanks for your reply, your answer regarding the position of the image
worked fine.
However, I'm not sure it's ok with the amount of images to upload. Actually
for a block "Text with image" I would like to have only one or two picture
but for blocks "Images", the number should not be limited.

I think the parameter I would need is only for FE. If users load a few
images in BE, only the first one will be displayed in FE.

I found a parameter named "styles.content.imgtext.imgMax = 2" but I don't
know how to use it because it does not seem to work.
Any tips are welcome.
BM


On Fri, Sep 17, 2010 at 11:50 AM, JoH asenau <info at cybercraft.de> wrote:

> > Max 2 images (for imagein text)
> > Postion left and right only
> >
> > I tried to define something like styles.content.imgtext.imgMax = 2
> > but my users are still able to insert more images than this limit.
> > What am I doing wrong here?
>
> You are trying to use TypoScript where it's inappropriate.
> TypoScript is used for frontend output only, while what you want to do is
> related to backend forms.
>
> To remove values from a selectbox of a backend form you can use TSconfig.
> There are two types page and user TSconfig and it depends on what exactly
> you want to do, which one will be right for you.
>
> Page TSconfig will set stuff that will behave the same way for all users,
> while User TSconfig will change things differently for different users
> and/or usergroups.
>
> Something like
>
> TCEFORM.tt_content.imageorient.removeItems = 0,1,2,3,4,5
>
> should do the job. Just fill in the numbers of the variants you don't want
> to appear.
>
> Read the TSconfig documentation for further information.
>
> To change the maximum number of images to be uploaded you have to edit the
> extTables.php file that is located in your typo3conf directory.
>
> $GLOBALS['TCA']['tt_content']['columns']['image']['config']['maxitems'] =
> 2;
>
> You can find the array structure for all these settings when looking at
> "Configuration" in the left menu of the backend.
> Select $TCA in the selectbox and then click your way through the tree.
>
> The available options for the configuration can be found in the
> API-documentation.
>
> 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
> Xing: http://contact.cybercraft.de
> Twitter: http://twitter.com/bunnyfield
> TYPO3 <http://twitter.com/bunnyfield%0ATYPO3> cookbook (2nd edition):
> http://www.typo3experts.com
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list