Jump to content

Clarity

Members
  • Posts

    125
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Clarity

  1. Actually, the page which is not yet created actually has ID = 0, but the path for adding the page is /page/add/ and it doesn't have ID of this page as GET parameter. Thank you, it seems to be right! I shall explore what I can do with this page in more details and report here about the results.
  2. Thank you for the clue! I found the method ___processInput in ProcessPageAdd.module which works before Pages::save, however, it takes $form (likely the form in the editor of page) as an argument instead of $page. It would be nice if it would be possible to extract $this->page from this method.
  3. The error is "Missing required value" on title and name. It is not in error stack, it's just a specific error which follows from requirement of title and name. I want to resolve it by filling transliterated title and name on other languages. However, I don't know the name of the function in which I should hook in order to edit the title well before actual save(). When I hook immediately before save() and try to bd() inside this hook, bd() doesn't work.
  4. Hello everyone! I'm using multi-language site, and if I save the page with title and name only on non-English language, the error appears. I need to hook into some function which applies immediately when I click "Save" so that I can fill the title on English language. Can you please tell the name of this function or give a clue?
  5. In Gmail, for example, you can set "Less secure app access" (Security > Less secure apps) so that WireMailSMTP will be able to access it. Probably it can help.
  6. Hello, @franciccio-ITALIANO! In site/modules/InputfieldCKEditor create the file named config-<your field name>.js and put the following code into it: CKEDITOR.editorConfig = function( config ) { config.enterMode = 2; config.shiftenterMode = 1; };
  7. Hello, @tires! Code 250 OK means that everything went well and your message was delivered to the recipient server. It is possible that privacy settings block receiving of messages.
  8. Hello everyone! I have a text in Textarea and need to underline the first line of it (append class="u-bottom-underline"). By the line I mean the part of Textarea before the first "\n". I've checked the topic: But it's not quite what I need. Thank you in advance!
  9. Hello, @teppo! Can you please tell me whether it is possible or not to use Wireframe's components on templates where it is not initialized? It is needed because some parts of our site work on Wireframe while some aren't, but we need some component that will work across all templates.
  10. Hello, @Frank Schneider! The code is: $content = str_replace('xName', 'something', $content); Have a nice day!
  11. Hello, @Frank Schneider! You can use $ts_entry->of(false) instead of $ts_entry->setOutputFormatting(false).
  12. Hello, @rastographics! I can't reproduce it right now. Maybe it is a temporal issue?
  13. Hello, @DrQuincy! I've noticed that you've used var_dump() for dumping variables. You can use TracyDebugger instead. It will allow you to work much faster: .
  14. Hello, @fruid! I think it is because of limit of RAM in your php.ini file. You can set memory_limit = 512M or larger instead of 256M there. Very likely the backup consumes more than 256M of memory.
  15. Hello, Ksenia! On a bit unrelated note, you can use Tracy Debugger instead of vanilla `var_dump`. You can output the variables to the debugger using `bd()` function like that: `bd($matches->getSelectors())`.
  16. Hello, @Ksenia! I think it happens because IDs of pages are 1652 and 1674, and `$item` variable converts to ID. When you iterate over pages, you get `$item` to be 1652, 1652 and 1674, which composes into 1652|1652|1674| and then truncates into 1652|1652|1674 when you assign `$final_output` to it. That's why your condition is true and you have "I don't get it!!!" string. For example, if you write on homepage template file `echo $page`, it will output 1 because 1 is the ID of the homepage.
  17. From documentation: "…but findRaw() is more useful for cases where you want to retrieve specific things without having to load the entire page (or its data)". It is a reasoning that findRaw() might be faster in this case, since it won't wait when the page will be loaded.
  18. Hi, @Allan! Could you please explain more precisely the matter of the problem?
  19. Hello, @Violet! It also sometimes happens with me while I'm trying to log in or save the page. Usually reloading the page with clearing cache helps me to avoid this problem. But not sure how to fix it so that it won't appear in the future.
  20. I found the root of the problem. The checkbox "Group fields inside fieldset" was unchecked, and it leads to values of fields being unsaved.
  21. Somewhy when I save a page with fields given by Mystique, content from these fields disappear after saving. Is it a problem with next branch?
  22. Hello, @ukyo! Current variant of Mystique in "master" branch gives the error "You need to select a resource and save field before start to use Mystique." after creation of the page. I don't see that it is possible to select a resource just after creation of the field. Switching to the branch "next" solves the problem. In addition, Mystique will search files in form Mystique.*.php in site/templates/configs, not in site/templates.
  23. I need that because my admin action copies content of fields from one language to another, and we should somehow warn user that languages are identical (since I think it doesn't make sense to copy the content to the same field). I've thought that not allowing to pick language in "destination" fields might solve the root problem, but I already solved my problem using PHP. Just added the warning that languages were identical after successful execution of Admin Action.
×
×
  • Create New...