Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by hellerdruck

  1. Thanks for your answer @elabx, but I can't get it to work.. I used the following settings in config.php: $config->httpHosts = array('rootpage.ch', 'www.rootpage.ch'); $config->MultisiteDomains = array( "site-a.ch" => array( // domain name is used to map to root page "root" => 4886 // page id ) ); $config->httpHosts = array_unique(array_merge($config->httpHosts, array_keys($config->MultisiteDomains))); the domain site-a.ch points to the same hosting as rootpage.ch (I guess there should be no redirect on the domain) but no luck...
  2. Hi all I've built a website that contains 3 OnePagers. The structure is: - home (landingpage with links to sites a, b and c) -- site a -- site b -- site c -- other pages... Home has the main domain, let's call it main.com. the three pages are main.com/site-a, main.com/site-b and main.com/site-c. I'm looking for a way to have site a to c with their own domains, like site-a.com, site-b.com, site-c.com. these domain names should be visible in the url-bar of the browser (not main.com/site-a). Is there a way to do that? I want to keep it a single Processwire installation, not having three different ones (I know how to do that). Your help is very much appreciated. Thanks
  3. Hi all I have a text search based upon Ryans search template. Unfortunately, I can't make it work with Repeater Matrix fields inside repeaters. I have a repeater field called "content_sections" and inside, there's a repeater matrix field called "items". As I understand it, the selector for a textfield inside the repeater matrix should be: content_sections.items.textfield But this does not deliver any results at all. Any ideas anyone? Thanks Roli
  4. 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); } } }
  5. 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?
  6. 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
  7. 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.
  8. 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.
  9. 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..
  10. No, I uploaded the zip file by using the modules installation uploader. just upload, install, didn't work. hope that helps.
  11. 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?
  12. Is there a demo version i can try? would love to play around and find out if it works for me..
  13. 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..
  14. 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?
  15. 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.
  16. 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..
  17. Thank you @bernhard and @rick I was thinking front-end, actually. What i have so far is a table with the products and an input field for the order amount and an order button. When clicked, the order button adds the article to a cart and adds the details to a formbuilder field. So I would receive an email saying "brochures, 10 Ex.". So far so good. But how could I write something back to the backend? Is that something that needs to be done by hooks?
  18. Hi All I have the following task to solve and don't know if this is doable with Processwire: Parties: Admin, Customers (with individual Logins) Customer opens the Website and has to log in. Then he/she will be directed to their list (Table) of their products we have on stock for them showing the current quantity. On each line there should be an empty "order" input field, where they can enter the amount of goods they need. When they click on "order" an email will be sent to the administrator and the available amount of this product should be updated in the backend (!). Any suggestions? Thanks and best, Roli
  • Create New...