-
Posts
688 -
Joined
-
Last visited
Everything posted by Christophe
-
Other image versions rendered and found in site > assets > files
Christophe replied to Christophe's topic in API & Templates
@adrian. Yes, there are thumbnail images, so it's normal . I really need to go to sleep earlier, sleep more/better and have a healthier life . @kongondo. I didn't use code tags this time because it created a horizontal scrollbar, so it seemed less readable at the moment I put it. But it's ok . -
Other image versions rendered and found in site > assets > files
Christophe replied to Christophe's topic in API & Templates
It's possible it's simply because I'(ve) inserted the images in the admin before inserting the code in the template file. Edit: I've tested with a third gallery, I've created the code before inserting the images in the page via the admin, it seems to be the same, there is always a .0x100.jpg version for each image. Perhaps it's defined in /wire/ (?). -
Hello, Not sure I'm in the right section. I've just noticed something. In site > assets > files, there are folders apparently named after the id of the page in which the images are inserted in the admin. I'm developping a website locally this time, with version 2.5.0 now after an upgrade. It is the same for the first gallery rendered (before the upgrade) on it's own page and for the second gallery that've I've just rendered on the parent page of the page in which the images are inserted in the admin. For the first "gallery", the code is: foreach($page->children('include=hidden') as $child) { $thumb = $child->images->first()->width(320); echo "<a href='$child->external_url' target='_blank' rel='nofollow'><img src='$thumb->url' width='$thumb->width' height='$thumb->height' /></a>"; } (I've just updated this gallery code from width='320' height='200' to width='$thumb->width' height='$thumb->height') For the second gallery, it is: foreach($pages->get(1032)->images as $image) { $thumb = $image->width(90); echo "<a href='$image->url'><img src='$thumb->url' width='$thumb->width' height='$thumb->height' /></a>"; } For the first gallery, there are these versions: the original version (640x400), the .320x0.png version (320x200), in two folders a .300x212.png version (300x187 - perhaps old images with dimensions that I tested...(?)), and a .0x100.png version (160x100). For the second gallery, there are these versions: the original version (640x480), the .90x0.jpg version (90x68), and again a .0x100.jpg version (133x100). Where can I disable the creation of this .0x100.jpg version, in which file, is it "normal"? Thanks in advance !
-
Hello, I've got a list of bookmarks of interesting desktop-based and web-based applications related to all this, but the list is not organized, I'll try to do it when I have more time. For information, and perhaps to have some ideas, there is this one (web-based) at least : https://www.odoo.com/page/download (Windows and Ubuntu installers are available). Online Demo: https://www.odoo.com/start There are, for example, Project Management, Billing and Accounting. For accounting, while configuring at the beginning, you can apparently choose the Germany accounting package and the accounting (plan) model: Configurable Account Chart Template, Deutscher Kontenplan SKR03 and Deutscher Kontenplan SKR04. I remember also at least one desktop-based application quite complete. (And there is a fork of Odoo (Ex-OpenERP): Tryton, with a desktop-based version still available.) I'll really have to organize all the bookmarks related to these subjects . In fact all my bookmarks (in the different browsers and computers I use). I often also prefer desktop-based apps when available.
-
If we don't like too many echoes we can write this (but you already know it ): <li><a href="<?= $page->url ?>">Предложение</a></li> <li class="active"><a href="<?= $page->url ?>spros/">Спрос</a></li>
-
I've just encountered another CKEditor "problem" in ProcessWire. For one page, I want to create 3 "internal links". So I've used the Anchor (flag) button. I want the targets to be h2 tags. The generated code for the targets is: <h2><a name="h2titlename" id="h2titlename">h2titlename</a></h2> The result is that, of course, the h2 titles take some properties from links: color and text-decoration. I know I can use something like a[id*="anchor_"] or a[name*=anchor_] to change the properties. But I don't "understand" why an <a> tag is generated instead of a span tag for example, or why the id isn't added to the h2 tag (perhaps it can't be added). Also, is name=" " still used? Thanks in advance
-
@teppo: of course, "width" and "height" are attributes in this case . It's really time I go and eat something today... and rest a bit. And oxygenate my brain with some physical exercises. For Extra Allowed Content, I'll look at it later. Thanks. I'll give you news. EDIT: ul(classname) works (but I won't use it). I don't know what I was thinking. I had put ul(class). If I wanted to allow all classes, I guess (?) I would have to write ul[class], but that's not what I wanted.
-
Hello, I've just noticed something in Processwire 2.5 as I am converting an old website to Processwire. I was using version 2.4 and upgraded with ProcessWireUpgrade. In Admin > Setup > Fields > Edit Field: body > Input, for Extra Allowed Content, it is written: "Example: img[alt,!src,width,height]". When in the docs, it is written: // A rule accepting <img> with a required "src" attribute and an optional // "alt" attribute plus optional "width" and "height" styles. img[alt,!src]{width,height} // The same as above, because the order of properties and their lists is irrelevant and white-spaces are ignored. img { height, width } [ !src, alt ] and: Rule format: elements [attributes]{styles}(classes) By the way, I can't get ul(class), for instance, to work for the moment. Everything is by default, except in "Details" where I have the option "Markup/HTML" enabled. I've also tried with "Unknown".
-
Hello, What kind of editing do you need?
-
Hello, I've just really enjoyed reading this case study ! Just for information, mailerlite is another interesting email newsletter solution ("Email Marketing Software, Services and Newsletters"). Edit: a "Forever Free Plan" and affordable "Small Business Plans" now -> www.mailerlite.com/pricing And tinyletter.com and sendy.co
- 33 replies
-
- 1
-
- Photography
- Travel photography
-
(and 1 more)
Tagged with:
-
Hello, Would it be (technically) possible/difficult to have a Processwire native language pack automatically created based on the official git repository files, and also updated automatically or from time to time to see the changes/additions more easily? I'm often not satisfied with parts of French translations in CMSs and would prefer to have a native file(s) pack to start from. NB: I know I can always change later the parts that I would like translated differently, but it's good to have a (complete) reference in the native language in the same form as the language packs.
-
Pootle seems interesting: pootle.translatehouse.org + translatehouse.org/products.html
-
German facility management & building-cleaning company, oellerking.de
Christophe replied to Ole's topic in Showcase
Hello, Very nice website ! For the slideshows (with bx slider apparently), when there is only one image there are no left and right arrows. But there is one "big dot link" under the image. Is(n't) it possible to make it disappear/have this option deactivated automatically when there is only one image? -
Hello, Nice Job! Wouldn't it be easier for everyone to have something like a language pack in the default language of Processwire in an official git repository (I'm just starting to learn it) that would enable to see changes and also ease translations?
-
Textformatter To Remove Annoying Image Heights
Christophe replied to diogo's topic in Modules/Plugins
We would/could then use "height: auto !important;", wouldn't/couldn't we ? (I'm writing with my left hand as I can't really use my right hand for at least one month.) -
Has someone contacted you? Have you found someone? Have a nice week! [ Posting Guidelines: https://processwire.com/talk/topic/2320-posting-guidelines/ ]
-
Thank you for the information. For the heading, yes, it's not really a better solution. Perhaps always having 2 lines, even if the second is blank, and reducing line-height... and putting a small border around the heading with some padding. German compound words can be very long. Have a nice weekend!
-
Just in case... codeaware.co (codeware.co is already taken) codeawire.co (or code-a-wire.co) codewire.co hackwire.co hackawire.co (or hack-a-wire.co) hackware.co hackaware.co braincode.co (taken), braincodes.co (also taken) softcodes.co, hardcodes.co, nicecode.co/nicecodes.co [the first e could be "closed" to seem like a o *], nicehack.co/nicehacks.co *, awesomecodes.co, codeawesome.co brainycode.co, brainycodes.co, smartcode.co (taken), smartcodes.co (taken) brainywire.co ... (NB: I wanted to launch a topic on the rise of bitcoins, the rise of darkcoins, just to name these virtual currencies (, the rise of gold, and the decrease of the euro/dollar rate...), but I lost what I had written before saving it, so I "make it short" here, I don't know if I will create a topic or not...)
-
Very nice websites. I'd love to already know how to create this kind of real-estate website (profile) with processwire in order to offer this service to real-estate agents. I just have some unclear ideas about all this, for the moment. I've just been testing, with firebug, what the homepage would look like if the h4 titles at the bottom where after the images (because of the titles that are not short), like for example putting the h4 tag around the anchor tag inside footer and the h4 text instead of Details, and adding title="Details". (I think I've seen that in html5 we can put header tags inside anchor tags, if really needed.) Or putting the h4 tag between the image and the Details button (I'm not sure if it's "semantic" or not to put the h4 tag after, if it's important). (Is the form a simple php form? I like the "?link=1643" functionality.)
-
Hello, Concrete5 and ImpressPages CMS are a bit similar in some aspects. Processwire is so customizable (html/css frameworks, backend organization/page input fields...). It is nice to developers and nice to users, as far as I know.
-
Hello again, I have this error message (like others have had apparently) when using the code: "Error: Call to a member function size() on a non-object (line 12 of...". I have tried some variations, but with no good results for the moment. NB: I'm wondering if I'm not going to link to the pages directly intead of (to) the external urls, and above all if it wouldn't be better, in this case, to remove the categories and use fields/"tags"* to possibly filter these pages by "category" later. Could you give me hints on how to "categorize" by "tags"' and/or tell me what you think about this*? I guess it must be simple to do. It's just a decision to take. * Ok, so I've removed the 3 categories' pages, and now it logically works (no more error message), certainly because the pages are the direct children. Perhaps one day I will need the code as it should be with categories in between. Also, size apparently needs at least 2 "arguments", so I've put width instead and the "thumbnails" appear too. *
-
Hello, Yes, I knew there were certainly some errors . I have also "overcomplicated" the code. As foreach($page->images as $image) became foreach($page->children('include=hidden') as $child), I guess '$child->external_url' was sufficient. For $thumb = $child->images->first()->sizewidth(320); I now remember having read that the image field behaves as an array of images by default, but that it can be changed, and having seen this type of code with "first()", when looking at the API Images page. I'll test the code as soon as I can and come back here to confirm that it works. I have to add the headline field too. After, I may try to see how I could possibly filter the "pages" displayed depending on their category, with a drop-down menu at the top of the page for instance. And if I want it to be without clicking on a button, I guess I could use something like Isotope. Also I would prefer the "portfolio" page to appear by default with the first "pages" being the last websites made, and so on. They are manually organized like that inside each category, but when they are (partially) displayed on the "portfolio" page they are no more really sorted by/in (general) order. I surely can use a field for that, or something like that. I will see. Thank you
-
Hello, From where I am located I can't access your homepage correctly. Be it in Firefox, Chromium, or Opera (GNU/Linux versions), the homepage takes a bit of time to load and when it does it appears without the css rules applied to the website. At least one time, I've had a blank page. But if I go to the contact page, for instance, it is complete. Perhaps because of netdna.bootstrapcdn.com... > This must be for Font Awesome... * The homepage loads fine now. * In firefox, on the contact page for example, but not only, the right side of the left vertical menu goes below the image and above the main content area. On the Sites (portfolio) page, the url is http://test.pixlbendr.com/ Have a nice week!
-
Hello, I know almost nothing about php. I've looked a bit a the API docs and tried to find answers in the forum these last hours. I've seen different styles, one of them being for example the use of <? foreach(...): ?>...<? endforeach; ?>. It's the first time I want to do something like this with Processwire. Let's say I have a horizontal menu, and one of it's first-level links is something like Projects. At first the sub-sub links/pages where directly under Projects, but then I created 3 "categories" (level 2), and so each sub-sub page (level 3) is under one of these categories The categories and sub-sub pages are "Hidden". The Projects page uses a template file that has a name like projects.php (so the code needs to be inserted here normally). The sub-sub pages use a template file named for exemple projects_childen.php (or it could be projects_grandchilden.php). For the pages that use projects_childen.php as a template file, there are several fields including images (Image type) and external_url (URL type). So I want something like a porfolio list/gallery using for example the headline, the images and the external_url fields. Later on I will perhaps link the image to the url of the corresponding page for each image, and/or try other variations. But for the moment I'd like to have for example the headine (before or after the image), then the thumbnail image inside a link pointing to the external url entered in the grandchild page. I've tried to "merge" some pieces of code but it doesn't work for the moment, and also I hadn't taken into account the creation of the categories. I know that I probably need to use include=hidden. I don't know if I need to use something like a double foreach... I've tested some things, starting from the following code at http://processwire.com/api/fieldtypes/images/: foreach($page->images as $image) { $large = $image->width(500); $thumb = $image->size(100, 100); echo "<a href='$large->url'><img src='$thumb->url'></a>"; } The image inserted in each grandchild page is 640 X 400. The images in the Projects page need to be for instance 320 x 200. I've ended up with this: <div class="gallery"> (because I'm using HTML Kickstart) <?php foreach($page->children('include=hidden') as $child) { $external_url = $child->get('external_url'); $thumb = $child->images->size(320); echo "<a href='$external_url' width='320' height='200' target='_blank' rel='nofollow'><img src='$thumb->url' width='320' height='200' /></a>"; } ?> I can just imagine or am perhaps close to or far from the solution, but as I said I know nothing about php. Perhaps the $external_url part shouldn't be inside the foreach part, or this part or another one is not good. It's possible that some of the old versions were better . And also it doesn't take into account the fact that now the pages are grandchildren, not children. Single or double quotes also sometimes have to change depending on the style, etc. The headlines need to go somewhere... Perhaps the "get" is not necessary where it is, but it could be necessary elsewhere. A lot of "perhapses" . I have impressions, not more... There are so many variations possible. Thanks in advance for your help . I need external (re)views as I can't seem to concentrate anymore and/or step back... NB: I've seen that I can specify the name of the template used only by the grandchildren pages (in order to "avoid" the categories).
-
Hello, I suppose this is you: Napolitano & CO Napolitano And Company, 90 W Wieuca Road NE # 103 Atlanta, GA 30342 - View Map Phone: (404) 843-8038 Web: Napolitanoinc.com Domain Name: NAPOLITANOINC.COM Registrar: NETWORK SOLUTIONS, LLC. Whois Server: whois.networksolutions.com Referral URL: http://www.networksolutions.com/en_US/ Name Server: DNS2.EARTHLINK.NET Name Server: DNS3.EARTHLINK.NET Status: clientTransferProhibited Updated Date: 04-feb-2013 Creation Date: 15-mar-2001 Expiration Date: 15-mar-2015>>> Last update of whois database: Wed, 28 May 2014 10:19:01 UTC <<< Earthlink hosting services seem quite expensive for what they offer and (what could be) your needs. Can you precise how many pages (more or less) you would like please? What would be the interaction/functionalities you would need or desire? Mobile-friendly website (or not), contact form, image/photo gallery, slideshow...? Do you want to redesign the logo that we see at napolitanoinc.com? On which media does the logo need to appear? Is the content already ready/available (texts/copy, images/photos...)? For when (more or less) do you need the project to be "live"? I'm not sure if you would work with people from Europe (apart from email, instant messaging, and skype for instance, in France we can have free phone calls - including to mobile phones - to the USA, Canada, China... with some of the competing ISPs). I have to precise that depending on your requirements/needs, I may, or may not, be the one you need or who is qualified enough for the project, as I'm quite new to Processwire, that is an incredible Content Management Framework/System. I'm currently redesigning my website with it and the form builder, among other functionalities, is awesome. I could perhaps help for Search Engine Optimization later (but like many, I often optimize the website from the very beginning and improve it later on). For the logo, it wouldn't be a problem as we all know, including myself, good graphic designers. I'm writing this message to help, be it me or probably someone else that will take on the project. Have a nice day ! NB: it's "incredible", if we enter Melanie Simington VP of Media Services in the google search field, your post is in first position... I have the impression I have already seen you, perhaps on Linkedin or somewhere else on (the) Internet... PS: I'm thinking that I really need to make my website bilingual/multilingual later on, and why not also in Spanish . NB 2: by the way, this may interest you (I found this service a few days ago): mailerlite.com PS 2: and perhaps this responsive HTML email framework too (mentioned on the forum): zurb.com/ink/ [Complementary: templates.mailchimp.com/ + templates.mailchimp.com/resources/inline-css/ + github.com/mailchimp/Email-Blueprints + campaignmonitor.com/templates/ + "We recommend using an ESP like ... or ..., since some mail clients strip out the responsive formatting when you send an email."]