• Content count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About ARG

  • Rank
  1. Yes, I had a look into, 2 days ago. And...well... I am not ready I will follow your advice: understand the ''normal'' logic of PW, instead of trying to apply another (CMS) logic, just to stay in the confort zone. Thank you !
  2. Oh no ! Cool things need time to be done. The difference between mediocrity and quality, is, frequently, the addition of time to talent, and work. But I am patient... Thank you again.
  3. Hello szabesz, thank you for your advices. But.... I don't want to build an HTML element structure inside Ckeditor. This part is built (or, I would like it to be built) in the other field ''card_html'' (textarea field) I just want to use Ckeditor like it is supposed to be: for the ease to write content, and manage things related to content. Nothing else. (In my actual website, the editor (old version of TinyMCE) allows the mix of content and HTML tags. I don't fear for security, as I am the only user/admin/redactor/designer/builder... name it... But as soon as the page/block is a little bit complex, the edition of the content becomes cumbersome.) I am trying to find a way to separate HTML structure from content. And my question is about ''how to include the content (ckeditor1 file) in the structure (card_html file)'' ? (if possible)
  4. Hello everyone. I am in the process to understand how to build HTML blocks ( like cards, for example) with de possibility to edit/populate them with the confort and ease of use of Ckeditor. I built a template with 3 fields: -Title: page title -ckeditor1: textarea (the editor) -card_html: textarea (the html code) The template is associated to a page. The output will look to something like: echo "<h3>{$page->card_html}</h3>"; Until there, no problem. The question is about the card_html code: if I want to use ckeditor to populate my card, I must output the content generated by the editor, in the HTML code of the card_html field. I tryed something like: <div class="uk-child-width-1-2@s uk-grid-match" uk-grid> <div> <div class="uk-card uk-card-hover uk-card-body"> <h3 class="uk-card-title">My title</h3> <?php echo $pages->get("/page-1/")->ckeditor1; ?> The output shows: get("/page-1/")->ckeditor1; ?> So : Or I am trying something impossible. Or I am doing it wrong. Can anybody help ? Thank you.
  5. This describes a kind of liberty ... (this is why I find Processwire so attractive).... but... ..''Is the technology an instrument of liberation or enslavement?'' You have four hours. GO ! Just joking Thank you for the answers: each of them open up the door a little more.
  6. Doable? Ok. I probably missed something. I will digg deeper in the doc. Thank you monchu.
  7. Hello. Sorry in advance for the super basic question, from a total begginer: -when I want to create a new template in the admin, I have to create firstly a ''new.php'' page in the site/template folder. -Is it possible to do the same in an ''_new-include-some-page.php'' in the site/template/include folder? I was thinking to a solution: removing the Include folder, and put all the .php pages in the template folder. But, I am sure I am missing something, and other solutions exist. An advice? Thank you for your time.
  8. Thank you ''fbg13'' I have made the change and everything is fine, now. Maybe this change should be done also in the tutorial?
  9. Hello, I am completely new at PW, (and Php) coming from another CMS. I decided to try to understand the beast, before crafting anything. So, I started from the beginning: the simple web site tutorial. I am trying to output the Home page with Head and footer included in. Here is my Home page code: include("./includes/"); echo "<h1>{$page->title}</h1>"; include("./includes/"); include("./includes/"); Here is my code: <?php require_once("./includes/"); ?> <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="<?php echo $pages->get("/site-settings/")->site_meta_description; ?>"> <title><?php echo $pages->get("/site-settings/")->site_meta_description;?></title> <link rel="stylesheet" href="<?php echo $config->urls->templates?>css/simplegrid.css" /> <link rel="stylesheet" href="<?php echo $config->urls->templates?>css/site.css" /> </head> <body> And this the message I got, when I try to view my page: Compile Error: require_once(): Failed opening required 'C:/wamp64/www/processwire-master/site/templates/includes/includes/' (include_path='.;C:\php\pear') (line 1 of C:\wamp64\www\processwire-master\site\assets\cache\FileCompiler\site\templates\includes\ Any advice would be helpful Thank you for your time.