-
Posts
182 -
Joined
-
Last visited
-
Days Won
1
Everything posted by neophron
-
I replaced your latest version from github. Now the sitemap generation works fine, but as soon as I'm editing a page, this error shows up in the backend/admin area: WireDatabasePDO: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_seomaestro.structuredData_inherit' in 'field list' This error appears only in pages with templates, where the seomeastro field is included. Do you need more informations from my installation?
-
Hi, I noticed the following problem: Processwire 3.0.123 and seomaestro 0.9.0, the step after the installation, where you can enable the sitemap generation. After hitting »submit« I got this error: Session: Failed to generate the XML sitemap. Make sure that "/www/htdocs/.../pw-3-0-123" is writeable. This happens in two different PW installations. After replacing the module with the 0.6.0 version, everything works fine.
-
Hiding a container folder inside Breadcrumbs nav?
neophron replied to PhotoWebMax's topic in API & Templates
Thanks! -
Hiding a container folder inside Breadcrumbs nav?
neophron replied to PhotoWebMax's topic in API & Templates
Hi there, five years later… ? Is it possible to hide a page in a breadcrumb depending on the template? Something like this (it's not working): <?php foreach($page->parents() as $item) { if ($item->('template=myTemplate')) continue; echo "<li><a href='$item->url'>$item->title</a></li> "; } echo "<li>$page->title</li>"; -
Thanks a lot. This is of course the better solution for the long run.
-
@ukyo Teşekkürler! This is the solution!
-
The image field is »array of items« with 0=no limit. And this is the code the template: <?php foreach($page->images_slider as $slide_image) { $slide = $slide_image->size(0,700); echo " <li class='uk-width-3-4'> <img class='photo' src='{$slide->url}' alt='{$slide_image->basename}' height='700' /> </li> "; } ?>
-
Hi, I was searching in the forum about a method how to remove a file extension, like .jpg, but couldn't find anything. There are some php methods out in the wild, but I wanted first to get sure, that Processwire is offering a solution. The background is, that a clients website has a lot of images, packed in different galleries. All image files contain the name, dimensions and other stuff about the image (painting). I want to echo the image name in the image tag. thanks
-
Hi guys, I'm definitely interested in such meetings, but Monday is always my volleyball-day ?
-
Thanks, (2) is the solution for me ? I'm using the markup regions output strategy.
-
Hi, thanks for this extension. I'm working now on a website with audio samples. I found and installed your module but can't get it work. I installed and setup everything, following the descriptions step by step. What I also did is: Created a file field – "audio_file" (0=No limit, Automatic … ). In the soundmodule-setup I applied this "audio_file" to the Audio Files Field. I created a text-field and under details -> »text formatters« I applied the Soundmanager2 Audio… . In the soundmodule-setup I applied this text-field to the Tag Field. This is in the template file: <?php $options = [ 'type' => 'bar-ui', 'skin' => 'gradient-fat', ]; foreach($page->audio_file as $track) { $content .= $sm2->player($track, $options); } ?> The template has the two fields ("audio_file" and the text field). And on the page I uploaded a file – brahms_01.mp4 in the audio_file field. In the text field I'm trying to echo the mp.4 file with this: [smplayer tag=brahms_01] Tracy doesn't show any errors.
-
Thanks for these informations. I'll have a closer look at this next week.
-
Hi, I launched a site with comments functions. Now the website is online and I totally forgot about the missing honeypot option in the comment form. Are there, besides the Akismet option, other possibilities for spam fighting? The module here is 3 years old and there is a warning: Do not use yet!!! Is this still the only solution?
-
From time to time, when I'm on a website, I'm checking the source, because I'm curious. But may be since two years, I got the feeling, that the more and more websites are stuffed with interesting crap. Today I found these body styles. It's from Squarespace. There were times, when a webpage was stuffed with table constructions and local styles. Now this madness appears again.
- 2 replies
-
- 10
-
-
-
-
What is the best practice to change the home page?
neophron replied to Robert Zelník's topic in General Support
Thanks for the tip. I never tried this module, now the time as come ? -
What is the best practice to change the home page?
neophron replied to Robert Zelník's topic in General Support
Hi, for a new website project, the client wants a horizontal menu and some of the end items are parent pages. The problem ist, that the »home«-page item also should have subpages as the other items. If I have two »home«-pages with the same content, this could be problematic, due to the double content (solution echo $pages->get(1234)->render();). If I create a redirect from "/" to "/fakehome" and I leave in the sitemap.xml the "/", how google would show and list the website? My goal is, to create a search result like e.g. Processwire in the attached screenshot. -
http://blog.chriszacharias.com/a-conspiracy-to-kill-ie6
-
Hi, I'm looking for a calendar solution. It should be like this: http://www.graalmueritz.net/plan-aurum.php The important part is, that the calendar should show 4 different stages: 1. free 2. arrival 3. departure 4. occupied and the actual date. This is for a german website. The client wants to manage the calendar be themself. I need detailed offers/estimations in €. thank you, Nikolai
-
Ok, thanx. Do you think, that this »tutorial« would work with your module? https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/?tab=comments#comment-15919 At 5. are the interesting informations: This get lost from Ryans the quote: if($user->isLoggedin()) $session->logout(); $session->redirect('/');
-
Hi, the next weeks I have to build a website with some protected pages, accessible with a password in the frontend. Now I discovered this module and I'm going to use it, thanks for this ? I couldn't find informations about a logout button. Is there also a logout function, for visitors who are logged in? Or must I build my own one?
-
German language pack (de_DE) with formal salutation
neophron replied to dotnetic's topic in ProcessWire Language Packs
Hi there, I wanted to share for all newbies my almost translated comments code. I'm using this with the blog profile (PW 3.0.123). <?php // blog post content echo ukBlogPost(page()); // comments list with all options specified (these are the defaults) echo $page->comments->render(array( 'headline' => '<h3 id="comments">Kommentare</h3>', 'commentHeader' => '{cite} schrieb am {created}', 'dateFormat' => 'd.m.Y', 'encoding' => 'UTF-8', 'replyLabel' => 'Antworten', 'admin' => false, // shows unapproved comments if true )); // comments form with all options specified (these are the defaults) echo $page->comments->renderForm(array( 'headline' => "<h3>Kommentar schreiben</h3>", 'successMessage' => "<p class='success'>Vielen Dank für Ihren Kommentar.</p>", 'errorMessage' => "<p class='error'>Your submission was not saved due to one or more errors. Please check that you have completed all fields before submitting again.</p>", 'processInput' => true, 'encoding' => 'UTF-8', 'attrs' => array( 'id' => 'CommentForm', 'action' => './', 'method' => 'post', 'class' => '', 'rows' => 5, 'cols' => 50, ), 'labels' => array( 'cite' => 'Ihr Name', 'email' => 'Ihre E-Mail', 'text' => 'Kommentar', 'submit' => 'Absenden', 'website' => 'Webseite', ), // the name of a field that must be set (and have any non-blank value), typically set in Javascript to keep out spammers // to use it, YOU must set this with a <input hidden> field from your own javascript, somewhere in the form 'requireSecurityField' => '', // not used by default )); ?> -
German language pack (de_DE) with formal salutation
neophron replied to dotnetic's topic in ProcessWire Language Packs
Hi @jmartsch, I'm keeping my backend (as an admin) in english, it's better for finding solutions in the community. So, in my config.php I have now this: setlocale(LC_ALL,'en_US.UTF-8, de_DE.UTF-8'); The backend for an editor is german. After my login I'm getting this message in yellow box: Session: Note: your current server locale setting isn’t working as expected with the UTF-8 charset and may cause minor issues. Your current locale setting is “C”. Please translate the “C” locale setting for each language to the compatible locale in /wire/modules/LanguageSupport/LanguageSupport.module: • Default • Deutsch For example, the locale setting for US English might be: en_US.UTF-8 In the backend my setup and the result in the frontend. Are there german translation for the months and days? -
German language pack (de_DE) with formal salutation
neophron replied to dotnetic's topic in ProcessWire Language Packs
I'm trying to find out, how to translate the english months into german in the frontend. It's from a date field. I installed the german language pack (core), in the config.php I added setlocale(LC_ALL,'de_DE.UTF-8'); Kopfkratz… -
@dragan & @adrian Thanks for these informations.
-
Hi there, I'm facing the following problem: PW 3.0.123 installation with markup regions as templating. In the _main.php I have in the header this: <header id="header"> . . . <figure id="header_image"> <img src="<?=$page->image_header->size(1024,200)->url;?>" alt="<?=$page->image_header->description;?>" width="1024" height="200"> </figure> </header> I created an image field (image_header) and most of the templates (internal, not the ftp templates) has this image field, so on every page the editor can place a different header image. Now, there is a page, that has a lot of children, and all these subpages shall have the parent header image. In the child-template I put this code: <figure id="header_image" pw-replace> <img src="<?=$page->parent->image_header->size(1024,200)->url;?>" alt="<?=$page->parent->image_header->description;?>" width="1024" height="200"> </figure> The result is a really weird code, and as you see, the »pw-replace« is still there: <html lang="de"><head></head><body id="html-body"><figure id="header_image" pw-replace=""> <img src="/site/assets/files/1052/kalender.1024x200.jpg" alt="Maya Kalender" width="1024" height="200"> </figure> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> . . This is setup of the field image_header: max files allowed: 1 single item required