Jump to content

Manaus

Members
  • Posts

    217
  • Joined

  • Last visited

Everything posted by Manaus

  1. I tried a bunch of combinations in the key=value range, but I see nothing changing... Title=Title|template.name page.title=page.title template.name title="hello"
  2. Thanks Dragan, at the moment I'm on 2.7.2...
  3. Hello, is there any plugin to show the template assigned to some page, as navigating the pages tree? Usually I have to go to pages details, then settings, I'd like to skip that.. Thanks
  4. Hello, I have a local development website, holding the skeleton, and the production website, where articles are being published regularly. I developed a new section locally, creating templates with fields, family rules and so on. I'd like to know if there is a quick way to copy such templates and fields on the production site, or do I have to create them manually one by one, and check their family relations etc. Thanks!
  5. Thanks Wanze, sorry I'm a bit dumb, what do you mean by "behind the $view API variable"?
  6. @wanze Global file should make {extends} useless if I understood right. That's because in child templates {extends} works also if no Global File is specified in the admin pane. I hope I clarified the issue...
  7. Thanks Wanze, still I noticed that if I use the Global File instead of the {extends} instruction, no block is being passed. Anyone tested this happening?...
  8. Hello, in the settings page I'd like to know what "Global Template File - Filename of a template file that is used as main template behind the API variable" is for. I tried to make up a layout.tpl and use the file name as field setting, but looks like {block} contents are not passed to the file. Thanks!
  9. When I create a new page in the admin environment, the name field gets from somewhere a value like 2017-08-03-312631thursdayamerica-new_york, which is cool, but I'd like to enter the page title first. This default function seems somehow deactivated. Since it is a fairly old website (2.7.x), I can't recall if I set that up, or it's some sort of plugin/function. Thank for any suggestion
  10. Hello, I'd like to know how to set the layout block logic for the ProcessWire side (the default one) of the templates. That is, twig uses {% block content %}, Jade uses block content, PW... ? Also, is there documentation of the module for using PW as the main language? I checked the forums but found none... Thank you very much
  11. RT @doodlewhale: That wholesome feeling when you think you are contributing but you really have no idea what you are doing. https://t.co/80…

  12. RT @processwire: ProcessWire nominated for Best Open Source CMS, Best Free CMS, Best SB CMS at @cmscritic awards! Please vote at https://t.…

  13. RT @newsonaut: The unsung hero of CMS’s. https://t.co/qA07mXgw3H

  14. RT @OmnibusType: Say Hi! to Chivo #freefont by H. Gatti https://t.co/2MXSyFbZtE Thanks! @NOTISMAPP, @UXDesignNews and @DesignWorkflow https…

  15. RT @baekdal: Just saying... https://t.co/k8L7Sbhr8C

  16. RT @idiot: https://t.co/1akqloKN6k

  17. Hi @Gazley, just discovered, if the field is not autojoined, it is possible to use: {{ page.get("body") }} and it works as well. Doh!
  18. @Gazley you're the man Thanks
  19. Thanks @Gazley, problem is that the view can output page.title which is native, but not page.body, unless it's out of a structure. I mean, if I set a variable 'thepage' as a container of one page $view->set('thepage', $pages->get('/')) // I get all the fields: {{ thepage.body }} works $view->set('children', $pages->get('/')->children) // body of child is unknown This valid also with getArray()...
  20. Hi guys, I have a .twig template I'd like to use as a children container. {% for item in page.children %} {{ item.body }} {% endfor %} Problem is that Method Page::body does not exists or is not callable in this context. I think I should pass it explicitly. Anyone has a chunk of code on how to pass subpages to templates from a controller page? Thanks!
  21. Ok finally I got it, I added this line to the initEngine function within TemplateEngineTwig.module: $this->twig->addExtension(new Twig_Extension_Debug()); And now there it is! Thanks!!
  22. Hi guys, sorry I don't catch, I added this code to the _init file wire()->addHook("TemplateEngineTwig::___initTwig", function($event) { $twig = new Twig_Environment($loader, array( 'debug' => true, )); $twig->addExtension(new Twig_Extension_Debug()); }); By 'adding the extension' do you mean adding this code to a page? Thanks
  23. Oh ok pal, no problem, thanks for your time!
  24. I added wire()->addHook("TemplateEngineTwig::___initTwig", function($event) { $twig = new Twig_Environment($loader, array( 'debug' => true, )); $twig->addExtension(new Twig_Extension_Debug()); }); to a _init.php file I prepend to pages, but alas, dump is still unknown.... Yes $config->debug is set to true in the config file...
×
×
  • Create New...