将图像存储在TYPO3 6中FlexSlider扩展的文件夹中

问题描述:

This question might be very basic, I'm an amateur in TYPO3.

I needed an image slider for my website and found this extension FlexSlider. I want this extensions to take all the image records from a folder, instead of manually creating a record for each image.

This is what I did so far

I have my set of images in fileadmin/templates/images folder. I then created File Collection under System Records and stored the fileadmin/templates/images into this.

I created a Backend Layout for a page slider page and inserted the flexSlider extension to it.

In flexSlider/Configuration/TypoScript/setup.txt is added this:

persistence.storagePid = 81

81 being the pageId of the File Collection Record Folder .

Of course, this is not the final step to this process. Do I need to write a PHP Code or something to insert the images from fileadmin folder to the System record folder? I'm stuck here.

这个问题可能非常基本,我是TYPO3的业余爱好者。 p> 我的网站需要一个图像滑块,发现此扩展名 FlexSlider code>。 我希望此扩展程序从文件夹中获取所有图像记录,而不是为每个图像手动创建记录。 p>

这是我到目前为止所做的 p>

我在 fileadmin / templates / images code>文件夹中有我的图像集。 然后在系统记录 code>下创建了 File Collection code>并存储了 fileadmin / templates / images code>到此。 p>

我为页面滑块页面 code>创建了一个后端布局,并将 flexSlider code>扩展名插入其中。 p> \ n

flexSlider / Configuration / TypoScript / setup.txt code>中添加: p>

  persistence.storagePid = 81 
  code>   pre> 
 
 

81 code>是文件集合记录文件夹 code>的pageId。 p>

当然,这不是此过程的最后一步。 我是否需要编写PHP代码或其他内容来将文件从fileadmin文件夹插入到系统记录文件夹中? 我被困在这里 p> div>

This won't work. The named flexslider extension has its own db table and expects records in there to be rendered. The storagePid option is just the place where those records are stored, if not on the page where the extension is inserted on.

A record consists of more than just an image. You can specify an alt-text, title and subtitle of the slide and so on. Assuming that your slides won't change every 5 minutes, it is worth the (little) additional effort of creating those records in comparison to find another extension/solution for your plan.

The extension has (for instance) also the advantage of being responsive out of the box, which you may take into account for decision as well. I use it quite often and really like it.