Jump to content

Christophe

Members
  • Posts

    704
  • Joined

  • Last visited

Everything posted by Christophe

  1. 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 } ?>
  2. 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.
  3. 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).
  4. 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.
  5. Interesting. I found this a few days ago: https://sandstorm.io/ https://sandstorm.io/apps/:
  6. 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.
  7. 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".
  8. ProcessWire is now listed here: http://opensource.com/resources/projects-and-applications
  9. @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).
  10. 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.
  11. 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.)
  12. 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...
  13. 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...
  14. Hello, Do you mean something like (php short tag(s) version)?: <a href="<?=$config->urls->root?>"><?=$pages->get('/')->title?></a> Edit: Also: <a href="<?=$pages->get('/')->url?>"><?=$pages->get('/')->title?></a> Or $homepage = $pages->get('/'); and <a href="<?=$homepage->url?>"><?=$homepage->title?></a>
  15. Hi, Isn't it that you need single or double quotes?: <img src='<?php echo $page->my_imagefield->url; ?>' /> or <img src="<?php echo $page->my_imagefield->url; ?>" /> Edit: it probably doesn't change anything but there are 2 spaces before />. 1 is enough.
  16. Hello, Is there someone ready to create a notfound.org module for ProcessWire? I've just found (again?) this project indirectly. notfound.org/faq -> a plug-in is available for Wordpress and a drupal module is also available (still in "sandbox mode").
  17. Your (MySQL database) credentials may be incorrect. Edit: it must be obvious... Are the MAMP Apache and MySQL servers started? Did you create the database from within MAMP? Edit: I don't know if/think PW can create the database at install on a local host like it is possible now on some hostings. On Gnu/Linux I always create it first with phpMyAdmin.
  18. In fact, I had understood at first. But then I had thought that I hadn't understood with: "Edit: Your version would allow for this: <a centre="something" gras="green" noir="dark" credit="given">I'm a link</a>" I had read (more than once perhaps) the following part too quickly: "// Rules allowing: // * <p> and <h1> elements with an optional "id" attribute, // * <a> with a required "href" attribute and an optional "id" attribute. p h1; a[!href]; *[id]" I wanted to only allow one id, not all (via the backend). So it's probably why I haven't tried the *[id]. Apparently it's not possible. Edit: at least this time, I will just insert the part of the code with the id in the appropriate template file.
  19. Hi, In this case, in a production website: *(centre) is active with class="centre" *(gras) is active with class="gras" <- bold *(noir) is active with class="noir" <- black *(credit) is active with class="credit" I would just like to be able to allow id="credit" instead of a class. As I've said, I've tried to use *[credit]. It doesn't seem to be the way to do it (perhaps just by default in ProcessWire).
  20. Hi, I have installed the French language and set it up for the Guest user. It doesn't change anything apparently. I still can't have the "missing required field" error message (of the contact page) translated. Solutions? Thanks in advance
  21. I've thought about this when seeing the topic earlier but haven't written anything as I didn't "want" to ask the question. I always (as far as I remember) have to create the database first. I know/guess there can be ways to create it at the same time... On which (type of) hostings (exactly) don't you have to do it with ProcessWire (or other CMSs)? Edit: I have no problem with having to create it before...
  22. Hello cstevensjr, For some websites, I would like to be able to allow an id. For example, I have to use class="credit" because I can't use id="credit" apparently. But an id would be more appropriate in this case, and in other cases as well. It's related to (the) styling (of) a paragraph containing a link to my website. The information is in a hidden "footer" page. I've tried replacing *(credit) for the class with *[credit] for the id. Admin >Setup >Fields > Edit Field: body -> Input -> Extra Allowed Content: *(centre) *(gras) *(noir) *(credit)
  23. Hello, How can we allow an id in CKEditor? *(class) works for classes. *[id] should work for ids normally, but apparently it doesn't. I have already had this problem before, and have tried to find an answer, the only difference being that this time I'm posting a message.
  24. I've just found the following article via Twitter: https://www.cmscritic.com/a-look-at-processwires-latest-core-updates/. I haven't read it yet. I have just clicked on the link because I've seen an error worth noting... I am going to send the author a message to suggest him a change from "ProcessWire, the open source PHP platform, has some updates well worth nothing." to "ProcessWire, the open source PHP platform, has some updates well worth noting."
×
×
  • Create New...