Jump to content

joe_ma

Members
  • Posts

    176
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Liebefeld, Switzerland

Recent Profile Visitors

4,144 profile views

joe_ma's Achievements

Sr. Member

Sr. Member (5/6)

24

Reputation

  1. Just so as you know: The problem was triggered by Kaspersky anti virus software. It seems to interfere with Firefox. Weird but still a problem for all of us, since the combination Firefox/Kaspersky might be rather common.
  2. Sorry for asking this question here, but I cannot ask it in the VIP section because I use an version of FormBuilder that is expired. I have a fairly simple form on a website done with FormBuilder (PW 3.0.148, FormBuilder 0.2.4) that seems to work quite well. I've tested it with Firefox (88.0.1), Chrome, Opera, Edge and it works in all browsers as expected. The form is embedded in the page by pasting the name of the form in the body field. Now my customer tells me, that her Firefox (88.0.1) is blocking the page where the form is embedded: "Firefox may not open this page" for safety reasons. I have no clue as to what seems to be the problem here, since the form is on the same server and has the same domain.
  3. I thought that maybe using the WireArray::Explode function to create an array first and then loop through this array could work. The code looks like this: $content .= '<main class="front">'; // begin list container $content .= '<ul class="topCircles" role="navigation">'; // begin list for nav $items = $page->children('sort=front_position'); // page array $links = $items->explode(function($item) { // turn into a php array return array( 'pos' => $item->front_position, 'url' => $item->url, 'title' => $item->title ); }); $link = reset($links); for ($index = 1; $index <= 16; ++$index) { $content .= '<li class="circle">'; if ($link['pos'] == $index) { $content .= '<a href="' . $link['url'] . '">' . $link['title'] . '</a>'; $link = next($link); } $content .= '</li>'; } $content .= '</ul> </main>'; // end nav and list container This produces a list, but only with one link (the first one with "Text") and 15 empty li elements. $links does contain all the elements though, as shows print_r($links): Array ( [0] => Array ( [pos] => 1 [url] => /rederei/text/ [title] => Text ) [1] => Array ( [pos] => 3 [url] => /rederei/logos/ [title] => Logos ) [2] => Array ( [pos] => 4 [url] => /rederei/plakate/ [title] => Plakate ) [3] => Array ( [pos] => 5 [url] => /rederei/events/ [title] => Events ) [4] => Array ( [pos] => 6 [url] => /rederei/krimitage/ [title] => Krimitage ) [5] => Array ( [pos] => 7 [url] => /rederei/fotografie/ [title] => Fotografie ) [6] => Array ( [pos] => 9 [url] => /rederei/sonstiges/ [title] => Sonstiges ) [7] => Array ( [pos] => 14 [url] => /rederei/ideen/ [title] => Ideen ) [8] => Array ( [pos] => 15 [url] => /rederei/ueber/ [title] => Über ) [9] => Array ( [pos] => 16 [url] => /rederei/mit/ [title] => Mit ) ) Still don't know what's wrong with the loop.
  4. That doesn't do the trick either. Since there are less than 16 pages in $items this produces only – in this case – 10 li elements. And they are without links.
  5. Oops. So how can I achieve this List ?
  6. Hello I'd like to build an unordered list for a front page that looks like this: <ul class="topCircles" role="navigation"> <li class="circle"><a href="#texte">texte</a></li> <li class="circle"></li> <li class="circle"><a href="logos.html">logos</a></li> <li class="circle"><a href="plakate.html">plakate</a></li> <li class="circle"><a href="events.html#">events</a></li> <li class="circle"><a href="krimitage.html">krimitage</a></li> <li class="circle"><a href="fotografie.html">fotografie</a></li> <li class="circle"></li> <li class="circle"><a href="sonstiges.html">sonstiges</a></li> <li class="circle"></li> <li class="circle"></li> <li class="circle"></li> <li class="circle"></li> <li class="circle"><a href="ideen.html">ideen</a></li> <li class="circle"><a href="ueber.html">über</a></li> <li class="circle"><a href="mit.html">mit</a></li> </ul> It's a 4×4 set of circles, some of them with links in it, some without. Redactors should be able to choose, at what position a certain page should be linked to. So I put an integer field (front_position) into the template for these pages, where redactors indicate the desired position for the pages. I tried to achieve all of this with this code: $content .= '<main class="front">'; // Container for circles $content .= '<ul class="topCircles" role="navigation">'; // nav list // Output of 16 li elements with links at the chosen postions $items = $page->children; // Array of pages $item = reset($items); // set the first element of the array // loop for 16 elements; put a link in it where front_position == $index for ($index = 1; $index <= 16; ++$index) { $content .= '<li class="circle">'; if ($item->front_position == $index) { $content .= '<a href="' . $item->url . '">' . $item->title . '</a>'; $item = next($items); } $content .= '</li>'; } $content .= '</ul> </main>'; // Ende Liste und Container This doesn't work though. I only get 16 empty li elements. Thanks for help.
  7. Hi everyone I have a form built with the formbuilder module that uses a datetime field with a date picker. The frontend is in German but it is not a multi language site, so the backend is in English. Is there a way to have the date picker showing the German version in the frontend and the weeks beginning with a monday not a sunday? pw: 3.0.148 FormBuilder: 0.2.4 Locale is set to setlocale(LC_ALL, 'de_CH.UTF-8') in the config.php
  8. Ah, I just found the solution: the template of the older version has no namespace. After defining a namespace, the form works fine.
  9. Other modules: FieldtypeTable FormBuilder InputfieldCKEditor somatonic-Emailobfuscator No hooks, everything else is out of the box. Installed profile is default, as of now without any code-modifications.
  10. OK, never mind. I have done it now with a simple template file. Works like a charm and exactly as I wanted.
  11. I've purchased a dev (0.2.4) version of formbuilder some years ago. Now I tried to use it with the new pw 3.0.148 version and it doesn't seem to work. The form is not visible, neither when clicking on the "Preview" tab nor on the page it is embedded on. The source code of the page has only an empty iframe. Is this version I have got not compatible to the new pw version?
  12. No, it is not. Just a plain simple site with one language only. Just one domain.
  13. I haven't used this module until now. I thought I might give it a try for a new site I am developping at the moment. After I installed the module and wanted to have a look at how the sitemap woud look like, I got this notice: and a few other lines as well. Plus this warning: When editing one of the pages, there is this notice: what seems to be the problem here? PW: 3.0.148, MarkupSitemap 0.6.0
  14. I tried to update the module on the live site. Now I get this error message and can't go back to the backend. What can I do to repair this? Edit: So I replaced the module with the version from my local server (1.0.6). Now everything works all right. And all videos become inbedded now. I became aware, that the live server is still running on PHP 5.6. Is it save to switch to php 7.4 with PW 2.5.3?
×
×
  • Create New...