Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by doolak

  1. Hello again, a very nice guy sent me a pm with some suggestions and of of them worked: And it wasn`t activated but needed... So it works fine now! Merci encore pour tout, C.! Kind regards Christian
  2. Hello everybody, on a multilanguage job website I am using the following code to show up a list of job offers. The site structure is as follows: - stellenangebote/ -- stellenangebote/stellenangebote_de/ --- jobs as child pages The jobs are located under /stellenangebote/stellenangebote_de/ as child pages and I want to show them up on /stellenangebote/ with the following template code: $stellenanzeigen = $pages->get("/stellenangebote/stellenangebote_de/"); foreach($stellenanzeigen->children('stellenanzeige_kategorie=1') as $child) { ?> <h3 class="uk-text-primary"><?php echo $child->title ?></h3> <?php } ?> This works fine for the default language (german) on /stellenangebote/ but its does not work on the french url version of this page /fr/offres-demplois/ . I have no idea whats wrong - has anybody an idea? Cheers Christian
  3. Hi there, found in the Roadmap that it is planned to replace the Regular site profile with a Uikit-based site profile. I am already working with Uikit - so I am looking forward to the replacement. Is this possible to get the Uikit-based profile even now? Kind regards, Christian
  4. No, it wasn't CKEditor - modified it in the module now and it seems to be ok.
  5. So it seems to be CKEditor which produces the problem - tried to set config.forceSimpleAmpersand in CKEditors config.js, but no success. Any idea?
  6. Hi, it's me again... Strangewise after having used the module for a long time I am having now a little problem with the generated URLs. The output encodes the URL Parameter to &amp; - Maybe this was the same all the time, but now Google returns an error: https://maps.googleapis.com/maps/api/staticmap?sensor=false&amp;center=loc:47.8528818,12.3630332&amp;markers=loc:47.8528818,12.3630332&amp;size=240x200 Does anybody have an idea how to fix this?
  7. Hey sorry, found the problem... The error occured just because there where some pages without added images - everything is fine now!
  8. Hi there, I need to show a cropped image from another page, which is selected with a page-field. I get the following error: here is the code I use: <?php foreach ($page->selected_page as $portfolio_item) { echo "<article class='one-fourth'\n>"; $image = $portfolio_item->foto->first()->getCrop('vorschau'); echo "<a href='{$portfolio_item->url}' alt=''>\n"; echo "<img src='{$image->url}' width='220' alt''>\n"; echo "</a>\n"; echo "<a href='{$portfolio_item->url}' class='project-meta'>\n"; echo "<h5 class='title'>{$portfolio_item->title}</h5>\n"; echo "<span class='categories'>Lorem ipsum dolor sit amet</span>\n"; echo "</a>\n"; echo "</article>\n"; } ?> On the portfolio page itself there is no error when showing the cropped image - anybody an idea what can be wrong?
  9. As I found no solution without hacking the core I tried to do it with jQuery. This seemed to work, but then I recognized that the browser will have already tried to load the images from the relative path before the script will be called. So I am using a PHP solution now: $body_orig = $page->body; $body_absolutepath = str_replace("/site/assets/files/", "http://xyz.de/site/assets/files/", $body_orig); echo $body_abosultepath; This works fine - but if somebody knows a simpler and better solution, please let me know.
  10. In an actual project I had to install PW in a subdomain and display the content via JSON / Pages Web Service. So I have the problem that, when adding images to a CKEditor textarea, the image path has to be absolute. Is there a possibility to make CKEditor render the image path in that way?
  11. Thanks a lot - have updated and it works fine. At the moment without translation support for the buttons but very nice!
  12. Ah, so this feature exists just in the dev branch - not in the stable version, right?
  13. Is this module still available and working with the newest PW release? Couldn't find it in the modules list.
  14. I have another problem... I am trying to access the value of an options field through the Webservice - the returned JSON is this: "mf_termin_schwerpunkt":{"1":{"id":1,"sort":0,"title":"black","value":"" and, if multiple options are selected: "mf_termin_schwerpunkt":{"3":{"id":3,"sort":2,"title":"blue","value":""},"2":{"id":2,"sort":1,"title":"green","value":"" I want to show the result just if the selected option matches "black" and tried already: if($mf_termin->termin_schwerpunkt == 1) { ... } if($mf_termin->termin_schwerpunkt->id == 1) { ... } if($mf_termin->termin_schwerpunkt->title == "black") { ... } But none of them worked. The problem seems to be that an option field is again an array and I cannot manage to access the values: Would be great if someone could help me with this problem!
  15. Found a solution - FieldtypeConcat worked fine for this.
  16. Hi there, I am trying to show the static map linked with the Google Maps page? Is there a possibility to include the content of the CKEditor field (which contains that link) unformatted but still use the formatted code for the map? So it should be shown like this: <a class='map' href='https://www.google.de/maps/place/XYZCompany/@53.17363,8.94532,17z/data=!3m1!4b1!4m2!3m1!1s0x47baaf1431b6b1cd:0x8672b17350e41d9c' target='_blank'> <img style='max-width:100%;height:auto' width='200' height='200' src='//maps.googleapis.com/maps/api/staticmap?sensor=false&center=loc:52.17363,9.94532&markers=loc:53.17363,8.94532&size=200x200' alt='' /></a> Is there an option to show the unformatted content for the link and the formatted content for the map?
  17. Perfect! Thanks so much! Works brillant with echo "<img class='termin_thumb' src='http://xyz.de/site/assets/files/".$termin->id."/".$termin->mf_termin_image->basename."'>";
  18. But - I have another question: When I want to display an image through the JSON service page, how can I do this? The Service page displays just the basename, not the path of the image - is there a way to show the path somewhow by adding "->url" like shown below (which does not work)? <?php $json_file = file_get_contents('http://xyz.de/service-pages/?template=mf_termin'); $jfo = json_decode($json_file); $posts = $jfo->matches; foreach ($posts as $post) { ?> <li> <h2><?php echo $post->title; ?></h2> <img src="<?php echo $post->mf_termin_image->basename->url; ?>"> </a> </li> <?php ?>
  19. OMG - my fault... wrong thinking in syntax. Everything works fine!
  20. Tried it now for the first time - the query "service-pages/?template=mf_termin" shows the following: {"selector":"template=mf_termin, limit=25","total":1,"limit":25,"start":0,"matches":[{"id":1018,"parent_id":1016,"template":"mf_termin","path":"/termine\/lorem-ipsum-dolor-sit-amet-consetetur-sadipscing\/","name":"lorem-ipsum-dolor-sit-amet-consetetur-sadipscing","created":1437313802,"modified":1438870554,"created_users_id":41,"modified_users_id":41,"title":"Lorem ipsum dolor sit amet consetetur sadipscing","mf_termin_datum":"31.07.2015","mf_termin_image":{"basename":"mf_termin_blank.png","description":"","tags":"","formatted":false,"modified":1437315061,"created":1437315061},"mf_termin_info":"","mf_termin_kurzinfo":"<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.<\/p>","mf_termin_ort":{"lat":"0.000000","lng":"0.000000","address":"Musterstrasse 1, 12345 Musterstadt","status":0,"zoom":12,"skipGeocode":false}}]} So that seems to be fine i guess. But with the query "service-pages/?template=mf_termin&field=mf_termin_kurzinfo" I receive the following error: {"errors":["Field 'field' is not allowed in queries"]} What am I doing wrong? How can I access specific values / fields?
  21. Thanks a lot, will give it a try then!
  22. I would never use it! Have a costumer which has a very extensive website and want to switch part by part to PW... Had a quick look at Pages Web Service - how do you think could that be useful? Include via JSON?
  23. Yes, I wanted to do it exactly like you described - tried to include / inject PW in an excisting TYPO3 website. There is an easier way, already included several PHP scripts with tt_content.script: tt_content.script = CASE tt_content.script { key.field = select_key FORMULAR = PHP_SCRIPT_EXT FORMULAR.file = fileadmin/xyz/include/landingpage/index.php } But with PW I receive the error in PW... Yes, there seem to be a template class in TYPO3: https://docs.typo3.org/typo3cms/InsideTypo3Reference/CoreArchitecture/Backend/TheTemplateClass(templatephp)/Index.html If this is the problem - any idea for a workaround?
  • Create New...