-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
Damn. Already an update?
-
NO problem renobird! Yes the parent::init() loads the scripts/styles. So also nothing wrong with doing it manually in your init as alternative. But thanks for bringing this up for sure!
-
Congrats to Beate for being the 1800th user! You won a prize: New Checkbox Inputfield settings!
-
Ok I installed both and tried. It works fine I have put that in init and no loading in execute. public function init() { $this->modules->JqueryDataTables; parent::init(); } And renamed the DataTable.js to ProcessDataTable.js.
-
Just add your code you have posted to the init in that order. All ok. No? And remove a parent::init() in the init if there.
-
Mhhhh, so a ProcessModule? But it's no autoload I guess. Can you show code, first methods init() execute() etc when you experience the wrong order?
-
on http://luxcommunications.ca/blog/brand-new-lux-website/ When I look on my desktop 1440x900 the copy font isn't readable. I can't finish one paragraph before loosing it and my eyes get tired. It's too big and very little contrast. Kinda get a upface feeling, maybe also todo with distance from monitor. When I scale in the browser to 2 steps smaller it's already better and I can read it already a lot easier. On the main page http://luxcommunications.ca/ It's all nice and has nice touches! But found it hard to use and the fading at best annoying. For example I scrolled down with mousewheel and suddenly it starts darken - lighten and I don't really get it at first why. Also the "drag" arrows when hovering are a nice touch, so I start dragging and am kinda surprized that there's no inertiam it's kinda sticky and have to drag-drag-drag, personally not that nice. It may would be nicer it it snaps to the next one. After dragging suddenly it scrolls back to the first and I haven't done anything (ah now see, it's when I "mouseout" on the browser window), again wired and annoying. Just my honest feedback from first time observation.
-
What module? Can you provide a little more details where and how you load them.
-
U I often use $field = $modules->get("InputfieldMarkup"); $field->value = "<label><input type='checkbox' name='newsletter'>Ja, ich möchte per E-Mail über Neuheiten informiert werden</label>"; $form->append($field); Also you could use InputfieldCheckboxes and use addOptions(key, value) so you can set to not display header, but it will make the checkbox name an array $field = $modules->get("InputfieldCheckboxes"); $field->skipLabel = Inputfield::skipLabelHeader; $field->addOption("newsletter", "Ja, ich möchte per E-Mail über Neuheiten informiert werden"); $form->append($field);
-
146 here and growing still, and very noticable slowdown. Other admin pages and Server is fast.
-
When on projects with lots of fields (+100), the loading of the setup fields list takes 4-5 seconds. What I think could be cool is if they load via ajax. Not sure about details but I use tags often then to group them. Maybe after certain amount of fields and tags, collapse the sections and only load the fields in them when openened. Just something to think about.
-
Hah, you were lucky I was even here atm
-
$page = $event->object->getPage();
-
Ah sorry I haven't really ever read the docu that far, seems like a bug cause I see code in there that sets $page to context specific. But I can't get it to work and it's always the same wire("page") and $page. I also noticed some strange behavior when using wire()->set("page", $somepage); and then use $page. So Ryan might have a look into this. For example this code in a template $p = wire("page"); wire()->set("page",$pages->get("/")); $content .= "p1: " . $page->id; wire()->set("page",$p); $content .= "p2: " . $page->id; is different as this: $p = wire("page"); wire()->set("page",$pages->get("/")); $content .= "p1: " . wire("page")->id; wire()->set("page",$p); $content .= "p2: " . wire("page")->id; when used in a template for example basic-page.php.
-
The page that originated the request is meant the one that is rendered, and that's not your article page. wire("page") or $page is the requested page, so doing echo $someotherpage->body won't give the hanna code on this body the $someotherpage but $page. You would need to set the page in this case to the one you get the body from and set it back after to make it work in this case. Something like this should work: function renderArticle($article_page) { // ... $current_page = wire("page"); wire()->set("page", $article_page); $out .= $article_page->body; wire()->set("page", $current_page); return $out; }
-
Just to see if the module has been loaded anytime previously to then get data that has been set to it for output at the end of output. It's just to not load it on every request and on every page, just on pages I need it. But I guess I can also solve it differently with populating a variable, anyway.
-
Ok , class_exists() doesn't work as the class is loaded even if the module not loaded.
-
Ahhh yes of course. But as a $mouldes->isInstalled("module") already exists it might be cool to add that too
-
Is it possible to have a non autoload module and then if I load it somewhere in the templates to check later if the module has been loaded? Does this make even sense? Example, as soon as I call the module somewhere $modules->MyModule; it is loaded. So something like this exists? $modules->isLoaded("MyModule");
-
That would render the cart.
-
There's a readme in it with a step to step guide to install and run a Shop. You put all files in a folder for example "Shop" or "ShoppingCart"
-
You could try reassign the field and its content manually or with the api. But currently not at computer. But maybe someone else. Although you have to attach all the right processes so not easy.
-
You're screwd. I don't know how to recover cause that's most important you removed. Maybe a backup?
-
The only drawback I see is that WireArray is always single level and not nested, so chunk() would have to change that concept. I think if you post this in Wishlist forum, Ryan will have to tell.
-
$arr = $page->images->getArray(); $arr2 = array_chunk($arr,2); foreach($arr2 as $key => $chunk){ $content .= "chunk$key<br>"; foreach($chunk as $c){ $content .= "$c->url<br>"; } } Though not sure if getArray() really is optimal, but I guess so. But like the idea of chunk() for WireArrays maybe.