Jump to content

Christophe

Members
  • Posts

    688
  • Joined

  • Last visited

Everything posted by Christophe

  1. ProcessWire would probably really benefit from being listed at https://developers.google.com/webmasters/mobile-sites/website-software/index?hl=en and having its own page like it is already the case for: - WordPress, Joomla!, Drupal, Blogger, vBulletin, Tumblr, DataLife Engine, Magento, Prestashop, Bitrix, Google Sites, Typepad (external site), Squarespace (external site) and Wix (external site). See "How do I make my site mobile friendly?" and "If your website software isn’t listed or you have any feedback, feel free to fill in this form.".
  2. Thank you. I'll try to understand the logic behind the code. I'm really new to PHP. Edit: I'm working on it, but the navigation structure and logic is different from the examples so I'm having a hard time figuring out how to adapt it... And I'm not sure I really understand what the examples code is doing.
  3. Hello, I would like to use the Jumbo version of Drop (Simple, mobile-friendly dropdown menus). With the Navbar version of Astro (A collection of five mobile-first navigation patterns, with an optional expand-and-collapse menu on small screens). https://cferdinandi.github.io/kraken/odds-and-ends.html The Drop demo also uses Astro. Here is the static code that I currently have for the project I want it for: <nav class="nav-wrap-navbar nav-collapse"> <a class="nav-toggle-navbar" data-nav-toggle="#nav-menu" href="#">Menu</a> <div class="nav-menu-navbar" id="nav-menu"> <ul class="nav-navbar"> <li class="dropdown-jumbo" data-dropdown> <a href="FALLBACK-URL.com"> Link <span class="dropdown-show">+</span> <span class="dropdown-hide">-</span> </a> <div class="dropdown-menu-jumbo" data-dropdown-menu> <div class="container"> <div class="grid-three-fourths float-center"> <ul> <li><a href="#">Sub-link</a></li> </ul> </div> </div> </div> </li> </ul> </div> </nav> The first href="#" has to stay as it is. href="FALLBACK-URL.com" is here in case javascript is disabled. I can see later what I will put (first child, sitemap, etc.). <div class="container"><div class="grid-three-fourths float-center"> is specific to this project. <span class="dropdown-show">+</span><span class="dropdown-hide">-</span> logically only has to appear when there is at least one child. I've started testing things with a menu (with a function) I have for one website, but as you can see the sub-link structure is quite different from the link structure. The homepage link should stay a simple link with no drop-down. I need help from the masters . Thanks in advance. Have a nice week! NB: can someone change from Processwire to ProcessWire in the title of the topic please...
  4. Hello, Whatever you think about the article at tutsplus, there is still a quality article awaited at http://opensource.com/tags/open-cms-column. See https://processwire.com/talk/topic/2311-processwire-on-the-web/?p=96919. Have a nice weekend!
  5. Where are you developing? On a local host or on a(n) remote/online host(ing) (which one)? Can we have more details about the platform (Windows, Mac OS X, Linux...), the LAMP setup (WAMP(SERVER), XAMPP, EasyPHP...), etc.?
  6. I guess $myDB could be anything else. And that Database() is like Page(), something related to ProcessWire. But I could be wrong .
  7. Hello again, You could try, for example, something like: # Redirect from Subfolder to Root RewriteEngine on RewriteRule ^en/(.*)$ /$1 [R=307,NC] RewriteRule ^se/(.*)$ /$1 [R=307,NC] (Did you choose 307 on purpose?) (Had you submitted a sitemap.xml to Google (Webmaster Tools)?) NB: perhaps it would work with RedirectMatch without the first slash(?). Just wondering...
  8. @tkaranka Hello, I created a multilingual website (just a few pages for the moment) not long ago (Processwire 2.6.1). With French as the default language (default fr) and the old/default default language as the secondary language (en en). I have Language "fr" enabled for the guest user. In the backend I only have the "fr" tabs activated (*). I didn't comment out the language switcher (but I could also). I have only "fr" at the top of the website (that I could hide with css, for example, if I wanted) (*). My "Default language homepage is same as root URL". (*) For Languages > en > Settings > Status, I have "Hidden: Excluded from lists and searches" currently enabled. If this is enabled, if I add en to http://domainname.tld/ I arrive on a "404 Page". I didn't uncheck "Active?" in the homepage Settings (the setting is visible only if "Hidden: Excluded from lists and searches" is not enabled). In the source code I have: <link rel='alternate' hreflang='fr' href='http://domainname.tld/' /> On all default pages except the homepage, /fr/ is added to the url. (Did you try with RewriteCond and RewriteRule?)
  9. Some interesting alternatives among others: uikit, semantic ui, kraken, pure... NB: I've just noticed that skeleton has a new website Edit: I have just found (again?) http://materializecss.com/ Edit 2: apparently materialize is also supported in Pinegrow
  10. @mr-fan: I don't know why I didn't try with an if...else statement. Perhaps I had been too long on the computer... I also have a commented version for the first menu. @Cerulean: this time, just using $rootPage = $page->rootParent; is enough. It's possible I used $rootParent here or somewhere else once without really knowing what I was doing, but then changed it as I was testing things in multiple tabs, and couldn't find it back later. And perhaps I also did like just now: I forgot to upload the file again in FileZilla. Thank you both! I will also later look (if and) how I can use Drop Jumbo [ http://cferdinandi.github.io/drop/ ] with MarkupSimpleNavigation. (The Drop Basic demo is going to be fixed. It seems that, since the new version and website were released a few days ago, it doesn't work anymore.)
  11. Hello Soma, Where can version 1.3.4 be found? Perhaps it can help solve my "issue". Have a nice day!
  12. Hello, I've been testing MarkupSimpleNavigation for the first time yesterday. I had been testing some pieces of code found in the ProcessWire Forums and in some profiles just before deciding to finally try it. But for the moment, I'm stuck with the same obstacles. I have a first horizontal menu with only the homepage and its children(1) (I will see if I remove the homepage later). Just below I would like a second horizontal menu with the children(2) of a child(1) appearing when their parent is active. But, I would need the children(2) not to disappear when clicking on one of them. Is it possible, and without having to create a different template? Thanks in advance for some help. Here is the current second menu (but I've tried several variations with the first and second menus): <?php if($page->template != "home") { $subMenu = $modules->get("MarkupSimpleNavigation"); // load the module $rootPage = $page; echo $subMenu->render(null, null, $rootPage); // render default submenu } ?>
  13. Hello, If you haven't done it already, and to help you during your development phase, you can activate the "debug mode" in config.php: $config->debug = true; It will help you in both the front-end and the back-end.
  14. If you haven't already seen it, there is the "ProcessWire Basic Guide - Repeating elements" video: Starting at around 28:05, you can see an example (among others) with repeaters. It is normally the same logic for an accordion. NB: you can see the video on YT at HD and at Full Screen (the quality seemed good enough to me).
  15. From my 32" screen, I see "Made by ED" on one line and "Design" on another one. More precisely, only a very small top part of "Design" is visible. This only appears on Firefox (38.0), not on Chromium or Opera. Perhaps it's only on GNU/Linux... It is resolved, for example, with something like: footer .wrap p:last-child { width: 14%; } The minimum seems to be 14%. It seems not necessary to precise the difference (86%) for the first p tag.
  16. Interesting. I found this a few days ago: https://sandstorm.io/ https://sandstorm.io/apps/:
  17. Hello, Can you give more details please?! Your hosting details, the admin theme you are using (default or another), the modules that you might have added after you completed your installation, etc.
  18. Hello, From what I see, I can only guess that you haven't used "Option A: Easy Embed" (for the moment, the only option I used for one website). There is a dedicated forum If you've just bought the Form Builder . You just need to sign in to see it. Try to just add a height or max-height property to the form class. You can add it to your website css file. Try with 100%, auto or some pixels. Add !important to override some inline styles if necessary. NB: we don't know your css "level".
  19. ProcessWire is now listed here: http://opensource.com/resources/projects-and-applications
  20. @doolak Hello, From Example: Disallow tags // Disallow <a> element. The Link button will be removed from the toolbar. config.disallowedContent = 'a'; it seems that it's possible. Source: http://docs.ckeditor.com/#!/guide/dev_acf Go to your specific field > Input > Custom Config Options... and try with config.disallowedContent = 'p'; This is for (1). For Custom Config Options, I've just tried with disallowedContent: p (see Example: uiColor: #438ef0) and I don't have the error message. But for the moment I don't see any change. (I don't know where it is/should be saved...) I have the error message if, for example, I write disallowedContent: 'p' I'm going to try this(1): If preferred, these settings can also be set in one of these files: /site/modules/InputfieldCKEditor/config.js - for all CKEditor fields /site/modules/InputfieldCKEditor/config-sidebar.js - only for this CKEditor field I have just tried with config-sidebar.js. It doesn't seem to work either. It must be "normal", the p tag is an essential block element for CKEditor. We can replace it with a div element, but inside a h1 element it is not a solution. Perhaps creating 2 text fields would be... (with the span element(s) or not, for example). And using an if statement (but not necessarily).
  21. I know, but, like for browser-update.org, having a plug-in/module can/could help spread the word about ProcessWire. If other CMSs are there, why not ProcessWire. I don't do it on purpose (for the moment), but when I am on a website where I see other CMSs listed (like also on opensource.com), if I see that there is something to do, I naturally do it.
  22. Hello, I've found (again?) ami.responsivedesign.is yesterday. I can use it, then, for example, take a screenshot after having removed the (red) section part and the body background image, changed (or not) the body background color and removed the mobile and tablet divs if the website is not responsive/adaptive/mobile-friendly. I've just realized that the ones for which both the "Am I Responsive Bookmarklet" and the website input field don't work are ProcessWire websites. Probably because of Header always append X-Frame-Options SAMEORIGIN in the .htaccess file. Could/Would some of the things in the following article be interesting to incorporate in ProcessWire's .htaccess file?: https://www.simonholywell.com/post/2013/04/three-things-i-set-on-new-servers/ (I've just found this article while searching for more information on "Header always append X-Frame-Options SAMEORIGIN" via Google.)
  23. Hi, Has someone already used Semantic UI (http://semantic-ui.com/) and/or Kraken (https://cferdinandi.github.io/kraken/index.html), or Kraken-Sass (http://jwebcat.github.io/kraken-sass/index.html)? They seem very interesting. [ List of some other grid systems: http://www.cssauthor.com/grid-systems/ ] Edit: I've already used HTML KickStart and a Pure.css layout for some websites. I want to redesign my website. I was about to use UIkit (or Pure, or PocketGrid). There are so many choices...
  24. Hi, I've just found (about) http://opensource.com and have used the Contact page form to mention the ProcessWire CMF/CMS. We will see if it is added here: http://opensource.com/resources/projects-and-applications I've seen this at the end of an article (about a Python/PostgreSQL CMS): "This article is part of the The Open CMS column coordinated by Robin Muilwijk. Share your stories about working with open source content management systems (CMS) and platforms like Drupal, Joomla, Plone, WordPress, and more." So if someone is ready to write a nice story...
×
×
  • Create New...