-
Posts
396 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Pixrael
-
Since I haven't received answers, I add the code directly in the module (I know is bad but I need to finish) Line 264: $inputfield->attr('class','form-control'); It would be great if this option was in the configuration as well as the current option for the Send button
-
Is there any way to assign a css class directly to the input element? I'm trying to build the form with the bootstrap classes
-
This look good!!! --> https://github.com/APIs-guru/graphql-voyager
-
I think it would be great to start the marketplace precisely by doing it with Processwire as a module, then that module is also on offer as a platform demonstration. Maybe?
-
This should be the simple way, and you can modify anything else inside your card while Show class is on Codepen
-
http://fontawesome.io/icons/ have this using the Argolia search engine.. maybe we can have something similar using this https://jets.js.org/ .. is very easy to use with html/data tags and really fast
-
$config->urls->templates with absolute URL?
Pixrael replied to Jonathan Lahijani's topic in API & Templates
Works!.. Where you learn this?? -
..
-
A super easy way and not complicated to be extended by the client (even for only one product) is using something like this https://modules.processwire.com/modules/textbox-list/ with an implementation like this https://help.shopify.com/manual/using-themes/themes-by-shopify/supply#product-tips-tips-specific later use the API to filter the pages, this works easy with localization too
-
and maybe: https://github.com/meltingice/CamanJS or https://github.com/girliemac/filterous-2 too
-
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
-
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..
-
Thanks Robin! Works!.. for the moment I modified the source code of my installed 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) ??
-
$files->include() don't get vars from _init.php??
Pixrael replied to Pixrael's topic in API & Templates
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.. -
$files->include() don't get vars from _init.php??
Pixrael replied to Pixrael's topic in API & Templates
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? -
$files->include() don't get vars from _init.php??
Pixrael replied to Pixrael's topic in API & Templates
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 -
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..
-
ERROR Call to undefined function ..from an include file
Pixrael replied to Pixrael's topic in General Support
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!! -
ERROR Call to undefined function ..from an include file
Pixrael replied to Pixrael's topic in General Support
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 -
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??
-
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.
- 1 reply
-
- 2
-
What is that technique?