icietla
Members-
Posts
48 -
Joined
-
Last visited
Everything posted by icietla
-
I have made a mistake adding a large amount of pages with the API: 88142 pages... These pages are in a parent folder and I've moved this folder in the trash. But now, I can't empty the trash! I have an error message : This page may not be deleted And the pages are not deleted... So don't know how to delete theses pages. Have you any idea??? Thanks a lot!
-
Hello, @Ivan But as said Robin, it seems that repeaters don't allow field dependancies to find values for a selected feature. @Jan Thanks for your advises for changing the admin edit page. I'm not used to do that but it seems very powerful! I will try this!
-
Thanks Jan, do you think the best way to add some JQuery into the edit page is to use the Admin Custom Files module? Thinking about tables, it could be interesting to have an input field table that already creates rows in the admin according to existing pages of a given template or parent (in my example, the features_type template). The first column would be a label with the page title (same display as the Textareas pro field for the left colums).
-
I will give up the idea of "customized values", we'll create new pages for a new feature value. And so, I can use a simple page select multiple field. I have tried the Ryan "Select Multiple Transfer" and it's all right! I've add {parent.title} : {title} for the field' label to display also the feature's type (like 'Age' in my exemple). May be to exactly match with my initial idea of feature table with optional custom value, it need to develop a module to add a new field type like "FeatureTable".
-
Hello Robin, thanks for your answer. What make it difficult is to let my client easily add features without creating a new field for this. I think about a commun and simple solution to create and add features, just creating pages with specific templates: And a repeater for the product template with 3 fields (at 33% to make columns): - a page field for feature type, - a page field for feature predefined values - a textfield for customized value with conditional visibility. We don't have a table but we can add any features and values. The problem with this solution: at this state, all values will be displayed in the 2nd input field. Can we display in the second page field only values according to the first page field (types)? (like in some forms) An other simpler solution is to show only the 2nd page field to directly add features values. But il there is a lot of values, showing all possibilities in a select field without the feature type in a long list will not be clear. Any idea for a simple feature management solution?
-
Thanks, I've seen your link, it appears it could be a useful way to follow! I will try with this and I'll let you know.
-
Hello, I'm working on a product catalog (not an e-commerce website). For the product template, I'd like to fill a table of features (the rows) with 3 cols: - the name of the feature; - predefined values - a textfield for a custom value (if we don't want to create a new predefined value) See the attached file (an exemple from a Prestashop site, but I just want to manage a catalog and I like to work with PW!!! ) With a repeater or the profield "Table" I can't have this result. May be I have to create a specific field type for this use? Have you any idea?
-
Use each page field values just one time in the admin
icietla replied to icietla's topic in General Support
Extra! I've used a PHP snippet and it works well! Tranks a lot, I even not know this possibility... great I'm always amazed how PW can be customized to match any project!!! And if it can help someone else, the snippet in my case: // Toutes les villes $all=$pages->find("template=ville"); // Conseillers avec 1 ville principale $conseillers_linked=$pages->find("lien_ville_principale.count>0"); // Suppression des villes liées foreach ($conseillers_linked as $item) $all->remove($item->lien_ville_principale); // return villes non liées return $all; -
Hello, I use a page field to link members to cities. But a city must be associated just with 1 member, no more. And of course, in the admin, when I go to the member page, the page field "cities" lists all values even if they are already used. So the question is " In the admin, can we filter values of a page field with a rule (a custom function?) " ? In my case, if the value is already linked to a member. Thanks a lot for your help! Chris
-
Thanks for your answers. Of course, the cache configuration on save is the default (clear cache page on save). I've compared with my others sites built with PW, it's the same configuration and it works fine as expected on these others sites. It's why I think it may be a bug in some cases. And when connected with admin role, no problems.
-
So, no one has any trouble with cache not clearing when pages are saved?
-
Hello, I worked with PW 2.6.15 dev and I've just updated to 2.6.22. My templates are configured with a cache enabled. When I update a page content, visitors don't see any change, I see my changes just if i'm logged. I understand that the cache is used only for guest, it's my choice in the configuration panel (guests only). It's not a problem of navigator cache, i have disabled it for my tests. But how to make the page cache cleared when I save my page? Thanks for your help.
-
Thanks for your help. I understand that there are two different things: "shortcuts" and now the "add new bookmarks". The problem is the same in the "Pages > add new" that in the shortcuts button All available for the admin: Two missing for the client role: But taking a look closer, I see that the 2 missing templates for the client are those that can add a new item in multiple possibles parents, like a new city in any of already department created. For the admin, PW send a page to choose the unique parent among the possibles ones: On the contrary, for the client, PW seems to don't allow this. But, we can add items with multiple possibles parent using the page three, so the right for these templates are well allowed for this role. Do you think it is possible to have the same behavior (use shortcuts) when the client want to quickly add an item in any page of a given template?
-
Hello mr-fan, - the rights for parent templates, too : all inherit the rights from the home template, rights enabled for the client (see, modify, create, add). And in the three pages, my client can add all templates types! - allowed child templates there: no problem for child/parents allowed, it's ok for all roles using the three page but theses templates not appears with the add shortcut menu. But again, it's ok for the admin role. - add new button activated for shure : yes, that's why for the admin role, it works fine. What is strange is that it seems a problem of rights only for the shortcut menu with the client role... My version; 2.6.19
-
Hello, my problem: with the role created for my client, the "add new" button don't list all templates authorized for this role. With the admin role all template are listed: With the client role city (ville) and program (programme) are missing : Have you any idea? Thanks a lot!
-
With every files at the same time at the root and in /v2/ directory, it works! And after this, even without the /v2/ it continues to work. I think it was a problem of PHP-FPM cache. We have added in the htaccess on the first line: Header add Cache-Control "max-age=1"
-
Hello, in the server log, I see that when I load the root index.php, the server still search the required PHP scripts in the /v2/ !!! PHP Warning: require(/srv/data/web/vhosts/www.moulindelapipe.com/htdocs/v2/wire/core/autoload.php): failed to open stream: No such file or directory in /srv/data/web/vhosts/www.moulindelapipe.com/htdocs/v2/wire/core/ProcessWire.php on line 18 PHP Fatal error: require(): Failed opening required '/srv/data/web/vhosts/www.moulindelapipe.com/htdocs/v2/wire/core/autoload.php' (include_path='.:/usr/share/php:/srv/data/web/includes') in /srv/data/web/vhosts/www.moulindelapipe.com/htdocs/v2/wire/core/ProcessWire.php on line 18 Could it be a problem related to PHP-FPM? (I don't know how this technology works, I don't admin servers)
-
I've tried the tips at https://processwire.com/docs/tutorials/troubleshooting-guide/ but it not works... In fact, even without htaccess I have the 500 error. When all is ok in /v2/, I move : - index.php - .htaccess - /site/ - /wire/ at the root folder. I can comment lines in the htaccess, I see a blank page and a 500 error with the web inspector (see attached file). When I comment all lines that can make a problem, it's the same. When I rename in htaccess.txt, always the same blank page... Like it was not a problem in the htaccess but elsewhere. When I move again theses files in /v2/ (and of course rename htaccess.txt in .htaccess) all works fine in this directory (so it's like the parameters are ok for this server, I should just have to change the RewriteBase if there's any problem don't you think?) Are there any parameter to change in the database?
-
I will try these advices and let you know, thanks.
-
Thank for your answer. I've renamed the .htaccess just to see if the error still occurs (a Ryan's advise in https://processwire.com/talk/topic/2439-htaccess-issue/?p=38495 ) In the subfolder, it works with the RewriteBase commented. I've tried RewriteBase / but unfortunately it's not the solution. I'm very surprised that the site works in the subfolder if it's a question of htaccess configuration (except the rewrite base)...
-
Hello, I work on a PW version of this site : http://www.moulindelapipe.com The PW works at this URL: http://www.moulindelapipe.com/v2/ When I move the files at the root, I've an error 500. When I try to change each 500 notes or rewrite base in the htaccess, nothing works more. Remember that it works in /v2/ ! After, I rename .htaccess in htaccess.txt and the error still remains... No PW logs in the assets about this error. But in the server logs : PHP Fatal error: require(): Failed opening required '/srv/data/web/vhosts/www.moulindelapipe.com/htdocs/v2/wire/core/autoload.php' (include_path='.:/usr/share/php:/srv/data/web/includes') in /srv/data/web/vhosts/www.moulindelapipe.com/htdocs/v2/wire/core/ProcessWire.php on line 18 Like it still load the v2 when I load the root index... and at this time, there's nothing in this /v2/ directory as I've moved them at the root. Does anyone understand something? Thanks for your help!
-
Questions about ProcessWire for building a Magazine
icietla replied to elmago79's topic in Getting Started
To sum up, with Processwire : "More you use it, more you love it" ! -
Stability: "One more thing"that make processwire different from others...
-
Thanks a lot for your quick response! I understand the philosophy. And it's a good news, I'm happy to know that we can enjoy the dev branch without "great danger"...
-
Hello, I always use the master version of Processwire but today, reading the download page I'm confused. " The dev version is recommended for new and development sites, while the master version is recommended for existing and production sites. " Does it mean that we should use the dev version for new sites but just if we want to try this version? Because new sites will of course became production sites... May be a stupid question ! Can someone just clarify this?