Jump to content

hellerdruck

Members
  • Posts

    24
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hellerdruck's Achievements

Jr. Member

Jr. Member (3/6)

4

Reputation

  1. Hi @3fingers, thank you! @horst, can you help me with the attributes part? I tried this now (not working): foreach ($xml->anbieter->immobilie->anhaenge->anhang as $anhang) { $attr = $anhang->attributes(); foreach ($anhang as $key => $image) { if ($attr == 'TITELBILD') { $object->object_header_img = $image->daten->pfad; } else { $object->object_images->add($image->daten->pfad); } } }
  2. Hi @horst Unfortunately, it doesn't work. As mentioned above, I have one field, where the header image should be added (object_header_image) and the other field for the rest of the images, they go to the gallery. The only difference between these images is the xml attribute ("Titelbild" or "Grundriss" or whatever). I thought, that's how I have to target them. I just don't get it to work. Is there a setting that I haven't done on the image field itself maybe?
  3. Hi all I'm working on a website for a real estate company using a CRM Software called "Propstack". All the Objects are created in Propstack and when ready, the customer can send an XML-File (OpenImmo Format) to the server of the website - one per language (English and German). I was able to create pages out of every estate object apart from the images. I can't make it work. Here's the important part of the XML-File (pfad would just be the image link): <openimmo> <uebertragung art="OFFLINE" umfang="TEIL" modus="CHANGE" version="1.2.7" sendersoftware="PROPSTACK" senderversion="1.0"/> <anbieter> <immobilie> <anhaenge> <anhang location="REMOTE" gruppe="TITELBILD"> <anhangtitel>Aussenansicht</anhangtitel> <format>PNG</format> <daten> <pfad>https://image-link.com/image.png</pfad> </daten> </anhang> <anhang location="REMOTE" gruppe="GRUNDRISS"> <anhangtitel>Grundriss 1.2</anhangtitel> <format>PNG</format> <daten> <pfad>https://image-link.com/image.png</pfad> </daten> </anhang> </anhaenge> </immobilie> </anbieter> </openimmo> There will always be one image with the tag gruppe="TITELBILD" that should be inserted to the field object_header_img. All other images should go to the gallery field object_images. I was able to create the pages and transmit all textfields to the right fields in Processwire then save it, but it would not save the image. Here's what I've done: $object = new Page(); $object->template = 'object'; $object->parent = wire('pages')->get('/objekte/'); $object->name = 'objekt-' . $object_id; $object->object_id = $object_id; $object->title = $xml->anbieter->...; // this works $object->save(); // this part doesn't work foreach ($xml->anbieter->immobilie->anhaenge->anhang->attributes() as $attribute) { if ($attribute == 'TITELBILD') { $object->object_header_img = $xml->anbieter->immobilie->anhaenge->anhang->daten->pfad; } else if ($attribute != 'TITELBILD') { $object->object_images->add($xml->anbieter->immobilie->anhaenge->anhang->daten->pfad); } } $object->save(); Can anyone help with this, please? Also, I would need to know, how to target the fields for a certain language. Propstack will deliver 1 xml file per language, but I would want to have one object in Processwire with both languages. Any ideas? Thank you very much Roli
  4. Hi all I need to export all the texts from a website to a translation company (as json or csv or txt...). How can this be done? Of course manually, but this website is huge and it would take me years... Also, as a second step, importing the translation ... Any ideas anyone? Tutorials? Plugins? Thanks for your help.
  5. No, I meant rather some list-like thing. I wouldn't need a thumbnail preview for an excel file. A line of info, next line of info.. what you have there only kinda suits images.. I guess I'll find it in the CSS files then.
  6. by the way, is there a way to show a more "dataTables" kinda look? I find the thumbnails quite big for the file load we'll have..
  7. No, I uploaded the zip file by using the modules installation uploader. just upload, install, didn't work. hope that helps.
  8. Hi Just installed the Media Manager. It seems that I cannot make any changes to the settings. When I save, it won't save my changes. Any ideas?
  9. Is there a demo version i can try? would love to play around and find out if it works for me..
  10. Actually, I thought this could be an option. Include a folder structure somewhere in "templates" and have them synchronise with something like Cyberduck. yes. Their customers need to access this page front-end and filter by type, classes, keywords, whatever. Jquery Data Table looks good at first glance. I'll definitely check that out. Could the Media Manager work here for the batch processing? Something else that would make things even more complicated: is it possible to index the filex by keywords in a batch upload? Could you specify this a little? Sorry for all the questions..
  11. Hey @kongondo, thanks for replying. 1. no, displayed on a front-end page 2. Links to the files, the files should be downloadable by the visiting user 3. not sure how to store them best. it's a load of files, and it would be great, if they shouldn't be uploaded one by one. More like batch processing or a folder with the files on the server. I guess it would be great if PW could manage the files, but the customer does not want to go to the backend to upload the new versions of the files individually. rather some sort of folder synchronisation. if possible. does that make sense?
  12. Hi all I need help with something. Situation: We have let's say 2'000 Files (Excel) that should be displayed (list with links) on a page. We'd need to filter these files by given Keywords or a tree structure or both. Now, I'm looking for a solution whereas our customer can synchronise the files from his local computer with the folder on the webserver. They will update and upload files on a daily basis. Therefore, it would need to synchronise rather than load the files manually in pages or repeaters. Maybe indexing would be an idea, too. Are there any modules for Processwire that would help achieving this? Could anyone point me in the right direction? Thanks in advance.
  13. Oh wow, this is really cool. Didn't know you could do that. Thank you all, I'll try a few things and come back for more questions later..
×
×
  • Create New...