Notice

This old forum is now only available for consultation/read. User accounts on this old website are blocked.
Please create a new account on seblod.com and use the new forum http://www.seblod.com/community/forums.
Apologies for this perturbation and thank you for your understanding!
Welcome, Guest
Username Password: Remember me

[Solved] Unlimited number of images
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [Solved] Unlimited number of images

[Solved] Unlimited number of images 2 years, 9 months ago #1

  • DaReign
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 133
Hi
It is possible in seblod to load unlimited images to article. Maybe using fieldx or groupx, I don't want to create for example 20 upload image field in article , I just have one upload field so any uploaded images would be saved in images/art_gallery/art_title folder, then I could load all this images in article view.
I think this is the nearest solution but I don't understand it
www.seblod.com/support/forum/Getting-Sta...1-Image-Gallery.html
I also read this post
www.seblod.com/support/forum/105-General...slideshow.html#31981
but this solutions doesn't satisfy me


Anybody have any other solutions ?
Last Edit: 2 years, 9 months ago by nithinp89. Reason: Solved

Re: Unlimited number of images 2 years, 9 months ago #2

  • serval
  • ( User )
  • OFFLINE
  • Platinum Boarder
  • Posts: 500
Hi DaReign,

The best for you is to use the joomla media manager, if you just need to upload photos in a folder... Seblod is useful if you want to add title, description... to your photos.
The following user(s) said Thank You: DaReign

Re: Unlimited number of images 2 years, 9 months ago #3

  • posokhoff
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 138
Hi, of course it's possible.
Simpliest way is:
1) create one image field
2) create fieldX using first image field
All settings which you need you can set in first image field.
In fieldx you can set limit, how many image fields is possible to create.
3) add fieldx to your content type.
That's all! Now, You are able to choose how many image fields you need directly in article.
PS. don't forget that storage for fieldx should be custom/article/introtext
But unfortunatelly, image field still works improper (problem with cropping and resizing, you can read about on tracker )... Simpliest solution - change folder on server, using image field from 2.0GA
Best Regards,
Yury Posohov
www.seblod.PRO
Last Edit: 2 years, 9 months ago by posokhoff.
The following user(s) said Thank You: DaReign

Re: Unlimited number of images 2 years, 9 months ago #4

  • DaReign
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 133
What I do wrong ? I add field Gallery , but where it sholud be in Admin Form or Content. If I add it to Content and then add Fieldx then in Admin Form I have to fields for upload image. One is this field named "Gallery" (field type Image) and second is Fieldx (type field x and Typography Image ). I thin I don't understand point 1 and 2 . I read earlier this topic
www.seblod.com/support/forum/Getting-Sta...1-Image-Gallery.html
and this tutorial
www.seblod.com/support/documentation/seb...th-fieldx-field.html

and
in forum topic is written
www.seblod.com/support/forum/Getting-Sta...1-Image-Gallery.html
1.create a field image and set the folder where you will upload your images (for example "images/example1/").
2.Create a "FieldX" and set the "Field(Form)" with the name of your image field,

Ad.1 So I assume I need to create just image field and set its parametres, but should I add it to Admin Form or Content ?
Ad.2 Ok if I did correct point one, now I should add Fieldx in "Field (Form) *" parameter of Fieldx I should write the name of image field created in step 1. Fieldx should be in Content as I see in image here
www.seblod.com/support/forum/Getting-Sta...1-Image-Gallery.html

So mine questions are .

1.Did I created good Image Field ?
2.Where this image field I should add , Admin Form or Content ?
3.What I should see in admin form ?
4.Can I show this images in article view following this tuorial because
www.seblod.com/support/documentation/seb...eldx-and-groupx.html
Because when I tried this code

<?php foreach($cck->get( 'fieldx_galeria' )->value as $gx){ ?>
<p><img src="<?php echo $gx['galeria']->value; ?>" alt="<?php echo $gx['galeria']->image_alt; ?>" title ="<?php echo $gx['galeria']->image_title; ?>" /></p>
<p><?php echo $gx['text_field']->value; ?></p>
<p><?php echo $gx['second_text_field']->value; ?><p>
<?php } ?>

I got message
<b>Fatal error</b>: Cannot use object of type stdClass as array in
On line 2

Where "fieldx_galeria" is my FieldX and "galeria" is my image field created in step1.

Re: Unlimited number of images 2 years, 9 months ago #5

  • DaReign
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 133
Ok few minutes after I wrote earlier post I got success

As I see everythin is working without step 1. I just created Fieldx , named it Fieldx Gallery
and set up is Typography as image. I set is Field(Form) as Gallery (image field form step one)
but I don't see any reason that this field from step one should exist, I don't use it. Does I miss something ?

P.S
I show images in article view that
<?php foreach($cck->get( 'your_fieldx' )->value as $fx){ ?>
<img src="<?php echo $fx->value; ?>" alt="<?php echo $fx->image_alt; ?>" title ="<?php echo $fx->image_title; ?>" />
<?php } ?>

Re: Unlimited number of images 2 years, 9 months ago #6

  • nithinp89
  • ( User )
  • OFFLINE
  • Platinum Boarder
  • Posts: 1140
Hi,

Seems that u have added both image & fieldx fields to form !! Why?

In NutShell
->Create a new field (Image Upload)
->Create new Fieldx and set name of your image upload field in field settings.
->add your fieldx to form & content.

and below should work, just replace with your fieldx name.

<?php foreach($cck->get( 'your_fieldx' )->value as $fx){ ?>
<img src="<?php echo $fx->value; ?>" alt="<?php echo $fx->image_alt; ?>" title ="<?php echo $fx->image_title; ?>" />
<?php } ?>
Best Regards
Nithin Prathapan

5 Things to Start with SEBLOD
1. Documentation 2. Videos 3. Getting Started & FAQ 4. Tips & Tricks 5. SEBLOD Forum

Re: Unlimited number of images 2 years, 9 months ago #7

  • nithinp89
  • ( User )
  • OFFLINE
  • Platinum Boarder
  • Posts: 1140
k. Gd.

but I don't see any reason that this field from step one should exist, I don't use it. Does I miss something ?


You need only to add Fieldx not image upload field. Fieldx will call the image upload field.

On your first attempt, seems that code you have mixed with groupx code. That may be the reason for showing error.
Best Regards
Nithin Prathapan

5 Things to Start with SEBLOD
1. Documentation 2. Videos 3. Getting Started & FAQ 4. Tips & Tricks 5. SEBLOD Forum
The following user(s) said Thank You: DaReign

Re: Unlimited number of images 2 years, 9 months ago #8

  • DaReign
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 133
Cool now I understand this , please close this topic, and thanks all of you for help .
  • Page:
  • 1
Time to create page: 0.24 seconds