-
Posts
4,956 -
Joined
-
Last visited
-
Days Won
100
Everything posted by LostKobrakai
-
This seems like a undesirable behaviour, which should be changed in my opinion. Would you please post your findings in an issue at github? You can just summarize the issue and link to here for further explanations.
-
If I recall it correctly the inline mode will just do that.
-
I think the problem is mostly a wrong mental mapping from the term "page". Most people will at first think about pages as "pages to be seen on the frontend", whereas a page is ultimately just a flexible container holding information, while adhering to a contract called template. It's nothing special about it, but just as one does need to learn how models work in MVC frameworks it's a likewise process to see what's possible with pages.
-
That's not a basic (quickly enableable) functionality of asmselect. But it's used in template settings of pw and also in kongondo's menu builder. YOu can have a look there how it's working.
- 75 replies
-
That's the table pro field used there.
-
menu with 2 levels, a dropdown, active flags and …
LostKobrakai replied to ngrmm's topic in API & Templates
if(in_array($child->id, $dropdown_id_array)){ // echo text + children }else{ // echo link and no children } As long as you want to arbitrarily exclude children from the menu you need to specify the pages with dropdowns in code. You could also use any field value of those pages if there's one for differentiating between dropdown/no-dropdown pages. -
Those profiles do not only consist of the files you find in the site folder after the install, but more importantly of sql files, which initially populate the database. These sql files can be different depending in the profile you're installing (blank being a lot smaller then e.g. multilanguage). So the best way to switch is really a fresh reinstall.
-
You'll use the compiled css file like you would any other css file in processwire. There's nothing special about it after it's compiled. For compilation I'd suggest to start with one of those applications mentioned here http://sass-lang.com/install.
-
Sass compilation is not the job of processwire. You're doing that with one of various tools out there on your local machine and you'll simply link the compiled css file in your markup, which processwire will generate.
-
On your profile page there's a tab "Likes". Should be what you're looking for. Edit: Should've looked more closely. These are just own posts which were liked by others.
-
There's the ProcessRedirect or Jumplinks modules which allow you to redirect users from the .html urls to your new pages without file extention. To add .html you could add .html to all the pagenames, but I'd rather suggest not going that way.
-
XDEBUG slowing things down considerably (Wampserver)
LostKobrakai replied to SiNNuT's topic in Dev Talk
Such ready made packages will probably always be outperformed by a server, which does rarely more than serving webpages, whereas your laptop is running the whole OS and other programms at the same time. You could try using a vm with something like ubuntu and see if it's faster. I've read a few days ago from sass compilation speed up tips and the author did report that a virtual ubuntu was indeed faster than the hosting mac os computer. -
Gallery "Deleting" images from multi upload
LostKobrakai replied to louisstephens's topic in API & Templates
Where those bigger images? Maybe you exceeded any of the php post vars limits. -
XDEBUG slowing things down considerably (Wampserver)
LostKobrakai replied to SiNNuT's topic in Dev Talk
Xdebug is not really known for being a performant analysis tool and processwire does sometimes generate quite deeply nested function stacks, which xdebug will fully log. Also wamp isn't really the environment for super performant php anyway. -
How to create a pageArray from id's which i get via $pages->find
LostKobrakai replied to iNoize's topic in General Support
There's no "creation of a new page array", because $kunden->unternehmen is already the pagearray. It's just converted in a list of id's for stringified output. You can directly loop over the list like so: foreach ($kundenliste as $kunden) { foreach($kunden->unternehmen as $unternehmen){ echo $unternehmen->title; } } -
That's only part way correct. $db is a wrapper around php's mysqli class, whereas $database is serving a pdo object with the correct settings.
-
The order of files is determined by the order of finishing the upload and not the order of input.
-
select field type who uses images for preview changes
LostKobrakai replied to Chris's topic in Wishlist & Roadmap
You can already define custom subfolders in the field settings (at least you should be) and here's the patch to have subfolders supported: --- /InputfieldImageSelect/InputfieldImageSelect.module +++ /InputfieldImageSelect/InputfieldImageSelect.module @@ -13,7 +13,7 @@ if(empty($this->optionAttributes[$value])){ $this->optionAttributes[$value] = array(); } - $this->optionAttributes[$value]["data-img-src"] = "/site/templates/ImageSelect/$path$value.jpg"; + $this->optionAttributes[$value]["data-img-src"] = $this->config->urls->templates . "ImageSelect/$path$value.jpg"; } if($this->showLabels) $this->addClass("InputfieldImageSelectShowLabels"); -
Is the dutch language installed on the server system? PHP can only use languages that exist in the system.
-
They want to push people to Win 10 where the whole upgrade process is more modern and intuitive and cloud and stuff. It's only partly about IE.
-
I'm talking about InputfieldSelector.module. Also AJAX is only needed if the filters do contain something dynamically changing, which I suspected to not be the case, but you're certainly right, that you'd need jquery or at least javascript.
- 3 replies
-
- 1
-
- filter
- conditions
-
(and 2 more)
Tagged with:
-
DId you install the Language Support modules and create a new language beforehand? This is just the last step.
-
InputfieldSelector is build to be a GUI for building page selector strings and is therefore quite specialized to that job. But you could always take a look into the files of the module and see if you can reconstruct the parts you need (e.g. all the ajax things are probably not needed).
- 3 replies
-
- 1
-
- filter
- conditions
-
(and 2 more)
Tagged with:
-
The homepage does work because apache does simply call the index.php without arguments, whereas the .htaccess does convert urls to something like index.php?it=/path/ which is still the same file.