rallek / bulletin

a module for announcements and events
MIT License
0 stars 0 forks source link

import News #3

Open rallek opened 7 years ago

rallek commented 7 years ago

It would be great to have an import function for News-Module.

No idea how I should do this but it would be great 😄

rallek commented 7 years ago

The path of the news pictures is userdata/news_pictures. The pattern of the name is pic_sid1-0-norm.jpg

I am looking for a script which is copying the content of the database into the notice entity and picking all pictures from news with *-norm.jpg where sid ist the id of the news.

All pictures with *-0-norm.jpg are the image of the entity notice. All others are images inside the entity picture with the relation to the corresponding notice.