-
Posts
343 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Mats
-
That's great! Thanks @BitPoet
-
@BitPoet I tested your solution and i'm probably missing something but it's not working. I tried this after searching the API docs: And it seems to work. Sets the file but doesn't change it once it's set.
-
Hello! Is it possible to use wireframe only for logged in users and guest users are presented with the regular template?
-
Who can help with adding a download icon to image fields?
Mats replied to bernhard's topic in General Support
It's still working in an old install of mine somewhere. (I might have updated the code on the install and forgot to push it to the repository) -
Who can help with adding a download icon to image fields?
Mats replied to bernhard's topic in General Support
https://github.com/madebymats/ImageDownload -
Thanks @teppo!
-
Hi @teppo! I' trying to check what view file the user is on but the getView method returns null. I'm using it like this in the controller (tried both in the render and init method): if($this->wire('page')->name == "kopa-bil"){ $this->view->setView('buy'); } And $page->getView() in the view-file which returns null.
-
@Ivan Gretsky Absolutely, that would be great.
-
Hi! I'm not maintaining the module.
-
I'm always listening to Radio Paradise. Will check NTS Radio out, sounds interesting. ?
-
What is the best way to add controller action for all templates
Mats replied to Ivan Gretsky's topic in Wireframe
Did you try using a utility class? https://wireframe-framework.com/docs/patterns-and-practices/utility-classes/- 1 reply
-
- 1
-
-
Hello @teppo I'm having trouble when trying to use pagination on a view where the page array is coming from a controller with a limit ($this->wire('pages')->find('template=mytemplate,limit=20')). When on a page number (page2 for example) the page array is null. I've checked the allow pagenumbers setting on the template. The pagination is working now, not sure what made it kick in, but it's working. ?
-
I had a similar problem when i forgot to delete the processwire folder that was created when extracting the zip-file and the admin url is /processwire.
-
This solved it: \ProcessWire\__text(' Your email', 'email'); I tried to add namespace ProcessWire earlier but got an error that it had to be added at the beginning of the file. Thanks @teppo! Edit: Seems like the field doesn't show up in the editor. The field (label is showing) is there but no field to edit.
-
Right, here is the error: Fatal Error: Uncaught Error: Call to undefined function __text() in site/templates/views/home/default.php I have created and added the field to the template. When i call the field with $page->myfuncfield it outputs FunctionalWireData.
-
Hi @teppo! I'm trying to use Ryans Functional field on a Wireframe site like this in the home view: <?= __text('Email') ?> But i get an error: #0 wire/core/TemplateFile.php (327): require() #1 site/modules/Wireframe/lib/View.php (84): TemplateFile->___render() #2 wire/core/Wire.php (414): Wireframe\View->___render() #3 wire/core/WireHooks.php (951): Wire->_callMethod('___render', Array) #4 wire/core/Wire.php (485): WireHooks->runHooks(Object(Wireframe\View), 'render', Array) #5 site/modules/Wireframe/Wireframe.module.php(799): Wire->__call('render', Array) #6 wire/core/Wire.php (417): Wireframe->___render(Array) #7 /Applications/MAMP/htdocs/stellankram (line 19 of site/templates/views/home/default.php) Do you have any ideas how to get the Functional fieldtype working with Wireframe? /Mats
-
Thanks @teppo! I used the code in a search function like you do in the Wireframe docs site. The init method works fine. Thanks for your help and for creating Wireframe and SearchEngine, trying to use them on everything i build nowadays.
-
I'm using the Searchengine module along with Wireframe. When trying to set the view for the ajax return it seems that the default view is called instead. When i add mark up to the default view it shows up in the json. if ($this->wire('config')->ajax) { // Respond AJAX query with JSON search results. $this->view->setLayout(null)->setView('json'); header('Content-Type: application/json'); // Return results as JSON. $json = $searchEngine->renderResultsJSON([ 'results_json_fields' => [ 'title' => 'title', 'desc' => 'summary', 'url' => 'url', 'parent' => 'parent.title', 'template' => 'template.name', 'image' => 'pris_strl_nr_repeater.first.images.first.url', 'price' => 'pris_strl_nr_repeater.first.pris' ], 'results_json_options' => JSON_PRETTY_PRINT, ]); return $json; } else { // Render search form and results. return $searchEngine->render(); }
-
I'm trying to use a component in the layout file and followed the instructions here: https://wireframe-framework.com/docs/view/components/. But i get an error that the Wireframe class is not found: Fatal Error: Uncaught Error: Class 'Wireframe' not found in site/templates/layouts/default.php:12
-
Hi @Bike Did you check the docs? https://processwire.com/docs/fields/select-options-fieldtype/#multi-language-translating-options If you want pages as options you can use the page reference field. /Mats
-
@JeevanisM Hi! I don't know if that is possible at the moment, the website field is already there like Wanze mentioned.
-
The 5000 hits limit resets hourly so I think it should be ok.