-
Posts
273 -
Joined
-
Last visited
Everything posted by kaz
-
At admin login the following message is displayed: Hinweis: Ihre aktuelle Server-Locale-Einstellung funktioniert nicht wie erwartet mit dem UTF-8-Zeichensatz und kann kleinere Probleme verursachen. Ihre aktuelle Gebietsschema-Einstellung ist "en_US.UTF-8". Bitte übersetzen Sie die "C"-Locale-Einstellung für jede Sprache in die kompatible Locale in /wire/modules/LanguageSupport/LanguageSupport.module: Default Beispielsweise könnte die Gebietsschema-Einstellung für US-Englisch lauten: en_US.UTF-8 Note: Your current server locale setting does not work as expected with the UTF-8 character set and may cause minor problems. Your current locale setting is "en_US.UTF-8". Please translate the "C" locale setting for each language to the compatible locale in /wire/modules/LanguageSupport/LanguageSupport.module: Default For example, the locale setting for US English might be: en_US.UTF-8 In the page header I have this: <!DOCTYPE html> <html lang="de"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> in config: // Locale setting setlocale(LC_ALL, 'de_DE.UTF-8'); The error message remains, even if I set the entry "C" under Default (the link in the error message) to de_DE.UTF-8 or en_US.UTF-8. Maybe I have to set a code for language selection in the header, instead of <html lang="en">? What did I forget?
-
I have done news with Lister, the summary is output via foreach. <?php foreach($pages->find('template=news, sort=date') as $item): ?> I would like to open the full article via <p><a href="<?= $item->url ?>">read more</a></p> into another detail template (news-detail), which I have created. Is there a way to open the $item content in a different detail template, perhaps a second 'template= … ?
-
I have a lister in my menu, and do not want to display their child pages. Can I disable the display of levels for single pages?
-
@elabx that's so easy, wow
-
My lister is under pages (Uikit admin theme). Can a lister also be placed in the top main menu? https://i.imgur.com/eN94Rp0.png
-
-> get, learned again
-
I coded breadcrumbs (I know, only two levels) with a simple code. Because titles are usually too long for breadcrumbs I added menutext to the first level (Home): <?php if ($page->id == 1 ): ?> <ul class="uk-breadcrumb"> <li><span><?php echo $page('menutext|title'); ?></span></li> </ul> <?php else: ?> <ul class="uk-breadcrumb"> <li><a href="<?php echo $page->parent->url; ?>" title="<?php echo $page->parent->title; ?>"><?php echo $page->parent->title; ?></a></li> <?php if ($page->title): ?> <li><span><?php echo $page->title; ?></span></li> <?php endif; ?> </ul> <?php endif; ?> In the first level it works fine, I see 'Home' instead of 'Welcome on our …' The echo does not work for the parent layers: <?php echo $page->parent('menutext|title'); ?> This is surely because two -> occur? How to insert menutext correctly for parent pages.
-
@rick I meant code (css, php, …) changes, not content. For example, if I try a change in the footer: <footer class="bgcolor-secondary"> to <section class="bgcolor-primary"> Nothing changed in the source code of the browser, in Safari, Chrome and Firefox. I clear the cache, no change, I restart the browser, no change. I have used MAMP and MAMP Pro (demo). Because I couldn't find a better idea, I have deleted MAMP / Pro from the Mac, and installed XAMPP. I previously saved the layout with ProcessExportProfile. Then I reinstalled Processwire with that profile, and yes, now I see changes when I refresh the browser via cmd + r, it works! I don't know why it behaved this way in MAMP, I worked with MAMP many years ago with ver. 1+2, I haven't used it since. In XAMPP it works now, so I simply forget about the problems with MAMP.
-
@BitPoet I activated the lines in php.ini (php7.4.12), they were commented: opcache.validate_timestamps=1 opcache.revalidate_freq=0 Settings: Cache was "off", I changed it to "OPcache", due to the change in php.ini Unfortunately nothing changed. Changes will only be visible after a "save" in the editor. I have installed a module, Cache Control. Even "clear all" makes no difference in the frontend. I guess I have to live with it.
-
@elabx I run localhost:8888 with MAMP (Mac). I don't use developer tools, it is a simple PW blank installation.
-
@wbmnfktr I just use the CMS without any changes to the cache. @rick Great, I will try the no-cache for the time of development.
-
When I do code changes, they are not displayed in the browser. Only when I change a content in the editor (for example a heading), save, clear the cache, the code changes will be displayed. Is this normal? A wrong cache setting in the development?
-
I have implemented the module, it works fine. The data comes from a page with global settings. What I don't understand, the marker has a link to the Global Settings page. But I don't want a link in the marker, I just want the marker with name and address. In the description I found how to add an address, but unfortunately not how to remove the link. $options = array('markerIcon' => 'star', 'markerColour' => 'blue'); echo $map->render($pages->get('1025'), 'location', $options); Can the link be prevented in the options?
-
I have created a template with a PHP file, with fields, everything are included. The template is in the editor, pages, settings, template not visible. What could be the reason for this? PS: It's a template for a lister; in the lister I was able to add it.
-
@wbmnfktr Wow, that actually worked, I was able to install it ?
-
Maybe something is blocked at the provider when the module is installed? As soon as I copy the module into the folder the admin is completely dead. Can I change the Namespace before installation ? How does it work?
-
@wbmnfktr PW 3.0.165, PHP 7.4, PageTableExtended 2.3.3 Beta Debug-Mode is already activated. But: I can't install the module. The moment the PageTableExtended folder is dropped, the administration is dead. Therefore I can't check it via Debug.
-
Good idea, but this did not help, the error remains.
-
I copied the module folder to /site/modules: /site/modules/PageTableExtended-master Downloaded from: processwire.com/modules/fieldtype-page-table-extended/ When I go to "modules" and "search for new modules" I get an: Server Error We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later. error 500 After that, an access to Modules is no longer possible in Admin. So I delete the folder, and everything is okay. What could be the reason for this?
-
such a 'little thing', and it works. Thanks a lot!
-
I have a repeater image field: <img src='$repeater->field->url'> In the browser it appears like this: <img src='image.jpg->url'> Why the "->url" is not interpreted? Actually the path should be placed <img src='site/assets/files/123/image.jpg'> !?
-
There is nothing in the backend to Tracy. There are only two entries in the modules directory: Tracy Debugger + Process Tracy Adminer. I have viewed both, but find no option for a debugger. The help unfortunately also gives no information about the use, no 'go on'.
-
I have installed Tracy, but I don't understand how to use it? The options are massive. I assume that if there are any errors, Tracy will show them in the front or back end? But, no errors displayed. Then maybe it's not a code error!? Maybe the 'Images' field does not can handle multiple photos? Maybe I need a ProFields repeater for this? I don't use any additional scripts, except the CSS framework, which could cause the error, which is not shown. The slider is already in Materialize: materializecss.com/media.html#slider
-
No, that unfortunately does not work either. The result looks this way: <section class="slider"> <ul class="slides"> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> <li> <img src="" alt=""> </li> </ul> </section> Uploaded were 2 photos, 10 list items returned blank. The name of the field is correct. When I start the photo single it is not displayed either. <img src="<?php echo $heroimage->url; ?>" alt="<?php echo $heroimage->description; ?>"> Is it perhaps because the field is a multiple field and I am uploading multiple files (Maximum allowed number of files: 5)? That's why I took foreach, so that the list items build up based on the number of photos. I need it for the Materialize CSS Slider, it's built up in a simple list, one list item per photo.
-
Sorry, I wake up an old post, but it fits exactly my question: I don't upload multiple photos with the editor, I upload them with an image field (heroimage). Will this work then too? I have adjusted the code so, but unfortunately the output is missing: <section class="slider"> <ul class="slides"> <?php if($page->heroimage->count): ?> <li> <?php foreach($page->heroimage as $image): ?> <img src="<?php echo $page->image->url; ?>" alt="<?php echo $page->image->description; ?>"> <?php endforeach; ?> </li> <?php endif; ?> </ul> </section> The output is without error message, but unfortunately also without list: <section class="slider"> <ul class="slides"> </ul> </section>