hellerdruck
Members-
Posts
28 -
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 (3/6)
5
Reputation
-
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 replies
-
- processwire
- multisite
-
(and 3 more)
Tagged with:
-
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
- 2 replies
-
- processwire
- multisite
-
(and 3 more)
Tagged with:
-
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
- 1 reply
-
- search
- repeater-matrix
-
(and 2 more)
Tagged with:
-
Create Page from OpenImmo XML Files (Images)
hellerdruck replied to hellerdruck's topic in API & Templates
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); } } } -
Create Page from OpenImmo XML Files (Images)
hellerdruck replied to hellerdruck's topic in API & Templates
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? -
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
-
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.
- 1 reply
-
- translation
- export
-
(and 3 more)
Tagged with:
-
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.
-
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..
-
No, I uploaded the zip file by using the modules installation uploader. just upload, install, didn't work. hope that helps.
-
that helped, thanks!
-
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?
-
Filter folder structure, download, file-import in PW
hellerdruck replied to hellerdruck's topic in General Support
you should ? will do that right away, thanks!- 10 replies
-
- 1
-
- filesmanager
- files
-
(and 4 more)
Tagged with:
-
Filter folder structure, download, file-import in PW
hellerdruck replied to hellerdruck's topic in General Support
Is there a demo version i can try? would love to play around and find out if it works for me..- 10 replies
-
- filesmanager
- files
-
(and 4 more)
Tagged with:
-
Filter folder structure, download, file-import in PW
hellerdruck replied to hellerdruck's topic in General Support
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..- 10 replies
-
- filesmanager
- files
-
(and 4 more)
Tagged with: