-
Posts
1,548 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
Good day! This topic got split off this post in Jumplinks topic. It seems the problem is not related to the module. I got a site that responds differently to different subdomains. I am writing a .htaccess redirect from www of a subdomain to no-www. RewriteCond %{HTTP_HOST} ^www\.subdomain.domain\.ru$ [NC] RewriteRule ^(.*)$ http://subdomain.domain.ru/$1 [R=301,L] If I run www.subdomain.domain.ru it gets redirected to subdomain.domain.ru. But if I go to something like www.subdomain.domain.ru/something I get redirected to subdomain.domain.ru/index.php?it=something/ not to subdomain.domain.ru/something. I tried putting my code before and after PROCESSWIRE HTACCESS DIRECTIVES block without a difference. Could you please give me a hint here?
-
Testing of New user-admin permissions of dev 2.6.10
Ivan Gretsky replied to adrianmak's topic in Getting Started
Yep, but to assign these new permissions you need to first assign prerequisite permissions. Hаve you managed to do it? -
It does work in firefox and chrome dev tools.
-
Testing of New user-admin permissions of dev 2.6.10
Ivan Gretsky replied to adrianmak's topic in Getting Started
I think you need page-edit and user-admin permissions assigned to a user to be able to set them new granular user-admin-XXX permissions. -
Good day, Mike (and all the other redirect maniacs)! I got a site that responds differently to different subdomains and got Jumplinks installed. I am writing a .htaccess redirect from www of a subdomain to no-www. RewriteCond %{HTTP_HOST} ^www\.subdomain.domain\.ru$ [NC] RewriteRule ^(.*)$ http://subdomain.domain.ru/$1 [R=301,L] If I run www.subdomain.domain.ru it gets redirected to subdomain.domain.ru. But if I go to something like www.subdomain.domain.ru/something I get an error: You don't have permission to access /index.php.pwpj on this server. I turned the module off and realised that it is not the module that is the reason, as I still get redirected to subdomain.domain.ru/index.php?it=something/ not to subdomain.domain.ru/something. I tried putting my code before and after PROCESSWIRE HTACCESS DIRECTIVES block without a difference. Could you please give me a hint here?
-
The server-side validation via pattern does not seen to work. At least I can save a page via api with field value not matching field pattern (I set the pattern without php delimiters like "/"). Should I call some validation method explicitly?
-
Is processwire core's code base PHP7 friendly ?
Ivan Gretsky replied to adrianmak's topic in Dev Talk
The issue is moving forward https://github.com/ryancramerdesign/ProcessWire/issues/1308/. I wonder if Beluga and mestaritonttu is the same person) -
Ryan says you can use fieldset for grouping on the frontend, diogo says you can't. Could you please clear things out: сan I get all fields within a fieldset via API from the frontend? If so, how?
-
How do you organize module files in your module folder
Ivan Gretsky replied to Ivan Gretsky's topic in General Support
This new feature makes using modules for hooks obsolete in many cases. The module folder will be a lot cleaner! -
Yes, there is another topic on this bug.
-
@Mike: Can't get your solution to work. The other redirects are running as they should, but this one does not even trigger the module (I turned the debug mode on). Tried it on localhost in subfolder and on a subdomain on a live server if that matters.
-
It works, thank you!
-
Good day, Adrian! I am adding images to an ImageField with CustomUploadNames hook enabled via API like this: $images->add($file_path); "Maximum files allowed" = 1. If "Formatted value" is set to automatic I get this error: Error: Call to a member function getVariations() on a non-object (line 245 of /var/www/***/site/modules/ProcessCustomUploadNames/ProcessCustomUploadNames.module) If "Formatted value" is set to Array of items, there is no error. Am I doing something wrong or is it a bug?
-
@diogo I installed Image Tags to use with Inputfield ACE Extended while writing plain html. I do not know, should I switch to using this module (it is formally compatible with 2.5 while Image Tags is not). Could you please tell about the differences between the modules? Are you planning to support both or merge them in one? Edit: I did install this Textformatter image fields markup and couldn't manage to use it in plain html input. I did not ret the imahe url rendered. Is it even possible to use it imn this case, or is it for Markdown/Textile only?
-
I am starting to use gulp for building my frontend. Though grunt was more popular a while ago. But I do not think there is any significant difference for a beginner (and mature user as well) as both are just task-runners, and plugins are what doing all the work here (both options have enough plugins for any purpose you will possibly need). Mr. jlahijani shared a nice video, related to your question. Sage did move from grunt to gulp as far as I know, so that can be kind of indicative.
-
If you do not insist on doing it all by yourself, you could just use this usefull module for building menus.
-
I have 2 languauges: 1st (default) is set to Russian as it is for my site visitors and editors; 2nd is set to English (has no transkation files loaded) for myself. I have language set to English in profile. But I still see modules names and descriptions (at least for the core ones) translated to Russian in admin in Modules section. It makes harder to apply your wonderfull answeres, as support is only in English. Am I doing something wrong, or is it a bug? Please verify so I can either fix it somehow or write an issue on github.
-
It took me some time to find how to use Selector Inputfield, so I think this post just might help someone else. As it should be obvious from the word Inputfield (was not for me ) it is not a fieldtype. That means you should create a field with fieldtype "Page" and then select "Selector" inputfield on the "Input" tab. But it can't be done without some customization. You need to go to the Inputfield Page module config in Modules and add it to the allowed inputfield list. After that all works as expected. Thank you, Macrura! Without you topic I wouldn't even know this awesome inputfield existed in the first place.
-
Is not it the "parent_class" option?
-
User Interfase translation guides
Ivan Gretsky replied to Ivan Gretsky's topic in Multi-Language Support
Yep. But if there is some reading I can do or a piece of advice I can take... I think it just may help a bit those that could happen to use my work later. -
How can I delete 'default' language?
Ivan Gretsky replied to Roman's topic in Multi-Language Support
It is answered somewhere else in the forums, but this topic is more relevant place for this. You can double click on the trash icon of any file now and all the translation files will be marked for deletion. -
Good day! I am making my another attempt to start updating russian translation for PW. But once again I am stunned with a whole new field I know nothing about. Where to strart? How to choose the right words? My English is "pretty okay". I can find my way around the interface and all the technical stuff. But I suggest there is something more to it. Like being consistent with the term translation, choosing the same wordforms for similar entities, choosing words short enough to fit the space and such. I tried to google it and found this to be kind of usefull, but really not much more. Could you please share your experience on this? Is there any info on how to do software interface translations? Maybe guides or some common principles?
-
Template 'Name format for children' expansion
Ivan Gretsky replied to SiNNuT's topic in Wishlist & Roadmap
I do not think it is possible to generate name based on any other custom field but the title as no field is populated or even connected to the page at that moment. But the id, created by, created should be availiable. And being able to define some kind of pattern using those will be great. So we can get something like: item-123 (where 123 is id) post-2015-05-17 (where 2015-05-17 is date) and post-2015-05-17-2 for sequential ones.