-
Posts
697 -
Joined
-
Last visited
Everything posted by Christophe
-
Hello @fbg13, I hope you are doing well! /fr/annuaire-des-books/mannequins-modeles/ and /fr/annuaire-des-books/autres-artistes/ have their own template files (even if the code is the same, at least for the moment). I'm trying to create the search.php file starting from the skycrapers demo profile search.php file, removing, adding, and changing things, but as it's my first time I don't really know what I'm doing. I can only imagine/guess some things for the moment. I'm turning a bit around. I think I understand most of the file but I don't really know how to convert it for my use case. And I guess that for the "Autres artistes" filtered children pages It can be more "automated", and that for the "Mannequins Modèles" filtered children pages it is a bit different as there is Miss & Mrs (Women/Femmes) or Mr (Men/Hommes). (At the end I'll also need to include the corresponding sub-link texts as h2 tags in the results pages.)
-
This is the code for the 2 non-filtered "listing" pages: <?php $children = $page->children("limit=12"); $pagination = $children->renderPager(); foreach($children as $child) { if($child->joindre_au_maximum_4_photos->count) { $thumb = $child->joindre_au_maximum_4_photos->first()->size(200,200); echo "<div><a href='$child->url'><img src='$thumb->url' width='$thumb->width' height='$thumb->height' /></a><p><strong><em>$child->votre_pseudo</em></strong><br />$child->pays</p></div>"; } } echo $pagination; ?> (The image field is mandatory but I left the if condition. I'm going to remove it in search.php.)
-
I'm including _head.php, _foot.php, and also _left_menu.php now. I also use an _init.php file. Here is the code that I have for the moment in the _left_menu.php file: <?php $mannequins_modeles = $pages->get(1050); $autres_artistes = $pages->get(1051); echo "<ul id='left_menu'><li><a href='" . $mannequins_modeles->url . "'>$mannequins_modeles->title</a>"; echo "<ul><li><a href='" . $mannequins_modeles->url . $woman ."/'>" . $woman . "</a></li>"; echo "<li><a href='" . $mannequins_modeles->url . $man . "/'>" . $man . "</a></li></ul></li>"; echo "<li><a href='" . $autres_artistes->url . "'>$autres_artistes->title</a><ul>"; foreach($choix_autre_artiste->children('include=hidden') as $skill) { echo "<li><a href='" . $autres_artistes->url . $skill->name . "/'>$skill->title</a></li>"; } echo "</ul></li></ul>"; ?> I'm not sure it is correct. For example if civilite= put twice is ok. I'm going to start working on the search.php file. I don't know exactly for the moment how I'm going to code all this and if I'm in the right direction. I'm going to study the skycrapers demo profile search.php file to see if it can help me. I'm not sure if _left_menu.php and search.php will be sufficient. And if I need to separate with if else the parts for models and for other artists, and inside insert other if else conditions. I just want to have the search page echo something different depending on the link or sub-link and the "query" in its URL. It's my first time trying to do something like that, a sort of basic search form. Later I'll certainly have to create more complex/advanced ones. I just need to figure out if this basic "search form" is "simple" to create or more complex. One of the 2 websites I created with kraken css. I'll redirect the directory to the women models after if possible. (Website started a few days last year, and improved a bit during a few days now. I have a nice "conditional" form that now saves data as ProcessWire pages (Form Builder)...). Edit2: I wouldn't mind a bit of help...
-
I'm slowly trying to do it with some logic, the little knowledge I have, and looking at the skycrapers demo profile files (removing what doesn't seem to concern my use case to see things more clearly). The positive aspect is that I'm learning/progressing. I don't know if I'll succeed, I guess I'll have to tell the client (the kind we all know that is always in a hurry when it benefits him/her, who thinks that adding this or that functionnality is easy, who asks for relatively complicated things/functionality at the last moment, and so on) to be more patient. I'll post some code here as soon as I have enough of it to show. Have a nice day!
-
You can use the following module: http://modules.processwire.com/modules/process-wire-upgrade/
-
Problem updating a input file type description
Christophe replied to Uonze's topic in General Support
What is your ProcessWire version? Have you updated/upgraded it recently? If yes, how? What are your hosting settings (php, mysql, apache/nginx...)? What modules have you added/activated/installed? Have you added/modified some configuration settings? The Portuguese (or Brazilian Portuguese) language is installed as the default or as the second one? Have you changed language settings? Yes, it could be related to permissions.- 3 replies
-
- file
- description
-
(and 1 more)
Tagged with:
-
Hello, Let’s call a page « Directory », redirected - for the moment at least - to its first child page. http://www.domainname.com/fr/directory/ So its children are something like: mannequins-modeles/ → template : directory_listing_mm autres-artistes/ → template : directory_listing_autres_artistes With thumbnail images of the first image of their children pages (linking to these children page). So for Models it’s listing all the models, and for Other artists all the artists. And there is pagination (limit=12). On the left panel/column, there is a link to Models and one to Other artists (it will possibly be on the directory children and their children pages). It’s the first time I have this use case, so I don’t know how to do it at all, and what would be the best approach/technique (« search »/find functionality - and page, ajax-like…). For Models, I need to use the civilite field (required page field with radio output) to have Women and Men sub-links to filter by gender. So I have something like Miss, Mrs and Mr as radio buttons. (Example path for a hidden page: /fr/outils/choix-civilite/mademoiselle/ It may be better to use page ids if needed if later other languages are activated. I don't remember if it's really necessary.) For Other artists, I need to use the qui_2 field (required page field with checkboxes output) to get sub-links corresponding to each of the checkboxes and filter depending on these. Here, at least now, I just want/need to filter by one checkbox at a time, and some artists can be listed in more than one place/sub-link page as they can have multiple skills (there is another field for their profession but it’s not important here). For the moment 15 skills exist. (Example path for a hidden page: /fr/outils/choix-autre-artiste-vous-etes/musicien/) Thank you for any help/advice! Have a nice week! Edit: NB: I can PM the website urls if needed... Edit 2: ProcessWire 2.8.35
-
Sorry to say that this website shouldn't be in Sites anymore. I was looking for an example to give to a newcomer on the ProcessWire Forums and, feeling something was different and/or by habit, have just looked at the source code... I'll perhaps look for an automated way to find other websites like this one in Sites. I had done it to check if websites' urls were still valid as I had found that a few weren't anymore. It reminds me of the CMS Critic case.
- 33 replies
-
- 3
-
- Photography
- Travel photography
-
(and 1 more)
Tagged with:
-
Outputting the value of the selected radio button (page field)
Christophe replied to Christophe's topic in API & Templates
Hello @Robin S, I had seen this but I guess I was "afraid" that changing the setting would mess things up, but it's only for the API. I wanted to still be able to change the selected radio button if needed. Perhaps I thought that if I changed this setting I would lose all the other choices. I don't know why, as even then, as the pages would still be there , I could easily have had them all again by reverting back to the previous setting. Thank you :)! Have a nice weekend! -
Hi, I've tried several things (before posting), they don't seem to work. It's the first time, if I remember well, that I use "Radios" or "Checkboxes" page fields in order to display the values on the front-end. I've just managed to make the checkboxes' ones work with PHP's implode function (with delimiters). But I can't manage to make the radios' ones work. Not sure to remember well as I first tried with "Radios" a few hours ago (and have forgotten to eat...) , but I think that I tried with things like: $page->nameofthefield->title and $page->nameofthefield->name seen in posts. I've tried with a foreach, but (logically?) it adds another radio button's value each time I change the selected one and save the page. I need some experts' help. Thank you so much in advance! Edit: I'm using ProcessWire 2.8 (for the first time - upgraded recently).
-
Hello @KriiV, The demo is currently using ProcessWire 3.0.35, if you look at the footer in the admin part of the online demo. Perhaps you have already seen it. Also, at the end of the following blog post, after "With 3.x out, what’s next?", the demo site is mentioned: https://processwire.com/blog/posts/processwire-3.0.36-and-looking-forward/ Someone will surely confirm that the profile in the Modules directory is also compatible (or not).
-
You're welcome !
-
http://foundation.zurb.com/emails.html (Formerly Ink) http://tedgoas.github.io/Cerberus/
-
https://www.mautic.org/blog/developer/mautic-2-2-in-good-company/
-
Hello, Why do you have 4 different calls to jquery? Are you testing something? Have a nice week!
-
Hello @mer! Just a quick css fix to check/test: #skel-panels-defaultWrapper {height: auto !important;} I can't find for the moment the difference(s) between your website and the demo website that makes height: 100% not working.
-
E-commerce tutorial with ProcessWire + Snipcart: your thoughts?
Christophe replied to maxlab's topic in Tutorials
@maxlab You can also use template engines with ProcessWire if you prefer. For example: http://modules.processwire.com/search/?q=twig http://modules.processwire.com/modules/template-latte-replace/- 8 replies
-
- 1
-
- ecommerce
- shopping cart
-
(and 1 more)
Tagged with:
-
It's ok @Pete, it has been discussed starting at Your module is also mentioned by adrian and horst. Have a nice weekend!
-
Thanks a lot, @adrian and @horst. You guys are awesome. As is this community.
-
Replace image by drag-and-drop not working (3.035+)
Christophe replied to tpr's topic in General Support
I don't think/remember that dragging an image on another one will replace it. Do you mean with a different name? Usually I just add the image. By default, it renames the new image file if the filename already exists (like adding "-1" or something else). If "overwrite existing files" is checked, it replaces it. Normally, but I could be wrong, you cannot replace automatically an image with a new one (with different filenames) just by dragging it on top. When there is only one image authorized in an image field it can make us think that this is what happens. If the filename is the same it could be that it renames it also by default, as the old image hasn't been removed and the page saved before adding the new image. -
Hello Pete, I hope you are doing well! Does this module have the ability to put a website in "maintenance mode" for an undetermined time without affecting SEO? With a 503 status code and perhaps in combination with a particular HTTP header (Retry-After), etc. Thank you in advance!
-
Thank you Adrian for the clarifications/confirmations. I'm going to ask Pete.
-
Replace image by drag-and-drop not working (3.035+)
Christophe replied to tpr's topic in General Support
Hello tpr, Is it a new installation, an update/upgrade...? Have you exported/imported fields? We know that if the image field is set to hold only 1 image a new one replaces the old one. There is no need to check "Overwrite existing files" in the "Input" tab. Have you checked "Overwrite existing files" for this particular image field? (Is it in a repeater field, elsewhere, or an image field directly in a page?) Is it a standard image field? You must have verified everything, but we never know... -
Hello Adrian, I hope you are doing well! Does "Protected Mode", or "Page Protector", have the ability to put an entire website in "maintenance mode" for an undetermined time (eventually with a customizable message), but without affecting SEO? With a 503 status code and perhaps in combination with a particular HTTP header (Retry-After). A nonprofit association committee has just asked me to put its website in maintenance mode (like have done other committees) because their federation has a legal problem, surely with a committee that leaved it some time ago. Have a nice day!
-
https://developers.google.com/web/tools/chrome-devtools/device-mode/ You can add the device pixel ratio with the 3-vertical-dots menu in the top-left panel. https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode Firefox or Firefox Developer Edition: https://www.mozilla.org/en-US/firefox/developer/. http://www.opera.com/developer/mobile-emulator https://chrispederick.com/work/web-developer/