• Content count

  • Joined

  • Last visited

Community Reputation

33 Excellent

About Pixrael

  • Rank
    Jr. Member

Profile Information

  • Gender
  • Location
    Florida, USA
  1. and maybe: https://github.com/meltingice/CamanJS or https://github.com/girliemac/filterous-2 too
  2. Wow! Just for curiosity, how many hours/years did take you to be in that moment? ..To calculate if I can finish my own "engine" before retiring jjj because I'm right now in the middle of my first "advance" stuff for social media tasks .. Congratulations
  3. It might be interesting to have a module with general functions for the many common problems that we find here every day. Something similar to what Ryan did with the uikit file. I know that just could be a simple file for include like _func.php, but I like much more the module format because it's more easy to include it directly from the repository, easy locate the last version (updated, enhanced and fixed) As a plus maybe you can configure which features to include before you download it..
  4. module

    Thanks Robin! Works!.. for the moment I modified the source code of my installed module :-(
  5. try this: https://modules.processwire.com/modules/fieldtype-yaml/ or this: https://modules.processwire.com/modules/textformatter-multi-value/
  6. module

    Just installed in PW 3.0.61 .. when add new field type YAML and save I get the following error: Session: Warning (showIf): dependency field 'contentType' is not present in this form. (ProcessFieldEdit) ??
  7. I already use a configuration similar to you, where the modern favicon, social tags, json schemas, prefetch, etc. is under each own partial, and in _main.php I include the partials common for all pages, and the templates files put the rest, but instead of region() function I use the new <region> tags because allow me to use all the autocomplete features of my IDE. ..inside the partials sometimes I need to do adjustments before echo and the related queries are made there. A question: partial() is a function from your arsenal to include files eh? My question to @LostKobrakai is because in some post before, he talk about using a call to a function to render the same partials in the head, something similar to the renderNav() function from the PW starter profiles..
  8. louisstephens the prepend file option is ok, thanks. @lostkobrakai - thanks for clarifying that. Another question for you: what is best (in your opinion of course) for stuff like twitter cards, facebook cards, prefetch tags, etc.. use an include file with the logic + markup, or use a function that do the logic and return the same markup?
  9. https://processwire.com/talk/topic/10350-passing-variables-using-wirerenderfile/ there are some answers to this questions, but I don't understand why native php include() can receive the variables
  10. Hi, in my _main.php when I use the native PHP include() function, I can get in the include file, the vars declared in _init.php, but if I use the PW functions $files->include(), $files->render() or wireRenderFile() I don't have access to this vars. It's normal? I need to pass all this vars explicitly to the PW function? An example vars in _ini.php is $styles = $config->urls->templates.'styles'; ..I use the PW namespace in all my files..
  11. OK, that's all.. the famous namespace.. I try that before (because it's a common problem here in the forum) but I receive this error "Compile Error: Namespace declaration statement has to be the very first statement or after any declare call in the script" perhaps I let some whitespace before the <?php ... so for my record: the namespace statement should be declared in every every every php file that I use in my project? Thanks Zeka!!
  12. Yes, if I call the function from _main.php ( <?php renderNavTree(); ?> or <?php echo renderNavTree(); ?> ) all work as expected, but when call the same function from an external file that is included in _main.php I get that error.. even TracyDebugger don't see this error... let me clarify the context: _func.php <-- the function is declared here _init.php <-- here load the _func.php _main.php <-- call the function from here = ok ..here is include _header.inc.php includes _header.inc.php <-- call the function = error All the content from _header is include in main correctly when I don't call the function, so all seems to be fine until I use any function from _func.php file I tried to include _func.php directly inside _header.php but don't work... but for me this no make sense because the functions was already loaded from _init.php in the PW workflow
  13. Hi, I'm getting a Call to undefined function error when I try to call a function (eg. like the sample renderNavTree) that is in the _func.php file from a file (header.inc.php) included in _main.php. I already check the namespace, and that all the files are including correctly. All is OK If I make the call from _main.php, but it doesn't work if I do it from the file that is included. What foolish mistake am I do??
  14. I always have those same conflicts when I do a project in which the main language is another and English is secondary. Otherwise it works perfectly. It seems to be a conceptual issue that has not yet been resolved for a while. I think it would be useful during the installation of PW to be able to indicate the default language for the Front-End, to get "www.domain.com/" in that language. The Back-End language could be set or change in the admin as needed.
  15. What is that technique?