Jump to content

Pavel Radvan

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by Pavel Radvan

  1. Thanks Bernhard. I will try it and let you know. It looks interesting, because I need exactly to specify on page I do not want header and footer - so that class "noheader" would be suitable.
  2. Hi. I am using RockPDF module from Bernhard. I have request for creation of PDF document (several pages) which should have header and footer on every page but on one page it should be without them. So global need is to have header and footer and on specific page there should be some option to disable them in concept of single document. I found some info about htmlpageheader and htmlpagefooter in docs of mpdf but I think I will need to help with it... Another option is to have multiple PDF files created for one template page. One file with headers and footers and another file without... This I tried and I could not change hooks for it in ready.php right way... Could somebody help me with this ? Thanks for any advice..
  3. Hi. I am sorry I am now quite busy with some project. I did not even updated your module ...I will try it on weekend. Thinks to check - there were no errors, template is named lpk-api. I am using SSL with certificate (wildcard) for my domain. When I tried login again I was asked for saving passkey from my password app which is Dashlane, when I did not accepted, Windows Hello popup appeared and then when I confirmed auth it created record in passkeys.. But again when I logged off and tried to login again and clicked on Login with passkey - nothing happened.. I will try on weekend more and let you know
  4. Latest version is not showing any errors. I just need to explore settings more..I just enabled in backend and filled in what was required. Then I saw popout from my password manager to save passkey. I confirmed .. But when I wanted to login back I tried to use passkey, but nothing happened. So I think I will need some more configuration ? When I look in passkeys I do not see anything... How I could add passkey to my user - it is superuser admin of PW...???
  5. Hi. So I could test it again ?
  6. Not at all. So you could make some repair of it ? And yes..."pw" is name of db so table should be probably loginpasskey as you noticed For me it is quite good module, because in current days lots of systems recommends use of passkeys...
  7. After checking of tablets - there is no table "loginpasskey" in my database which is named pw. So this could be that problem... After install of module is this error: After enabling passkey for admin: DOException #42S02 SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw.loginpasskey' doesn't exist search► File: .../dev.webantique.cz/wire/core/WireDatabasePDOStatement.php:168 Let me know what do you think.. Pavel
  8. Since it is new install I do not have yet. I will install Tracy and also look in tables - I have webmin on machine so I could use its direct interface to admin MySQL. I will let you know
  9. Hi. Thanks very much for your reply. I tried to donwload module and then upload it with changed file from you. Module is installed without errors, but there are still errors when I enable module and passkey for admin (my only user...): Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead in /usr/local/www/apache24/dev.webantique.cz/index.php on line 64 Hey now… Error: Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw.loginpasskey' doesn't exist (in wire/core/WireDatabasePDOStatement.php line 168) #0 wire/core/WireDatabasePDOStatement.php (168): PDOStatement->execute() #1 wire/core/WireDatabasePDOStatement.php (148): WireDatabasePDOStatement->executeDebug() #2 site/modules/LoginPassKey/LoginPassKey.module (602): WireDatabasePDOStatement->execute() #3 site/modules/LoginPassKey/LoginPassKey.module (676): LoginPassKey->_getCredentialsFromDB() #4 site/modules/LoginPassKey/LoginPassKey.module (399): LoginPassKey->preRegisterUser() #5 wire/core/WireHooks.php (1099): LoginPassKey->registerAdmin() #6 wire/core/Wire.php (484): WireHooks->runHooks() #7 wire/modules/Process/ProcessPageView.module (193): Wire->__call() #8 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage() #9 wire/core/Wire.php (416): ProcessPageView->___execute() #10 wire/core/WireHooks.php (998): Wire->_callMethod() #11 wire/core/Wire.php (484): WireHooks->runHooks() #12 index.php (55): Wire->__call() #13 {main} This error message was shown because: you are logged in as a Superuser. Error has been logged. Other error from admin menu is still showing about missing table.... I had to delete module and then remove from db ...that error was blocking me from access to admin...
  10. Hi. I have fresh install of PW 3.0.248 (dev) and installed your module and after installing it showed this error: Fatal Error: Uncaught Error: Call to undefined function _() in site/modules/LoginPassKey/LoginPassKey.module:48 #0 wire/core/ModulesConfigs.php (588): LoginPassKey->getModuleConfigInputfields() #1 wire/core/Modules.php (1744): ModulesConfigs->getModuleConfigInputfields() #2 wire/core/Wire.php (419): Modules->___getModuleConfigInputfields() #3 wire/core/WireHooks.php (998): Wire->_callMethod() #4 wire/core/Wire.php (484): WireHooks->runHooks() #5 wire/modules/Process/ProcessModule/ProcessModule.module (1705): Wire->__call() #6 wire/modules/Process/ProcessModule/ProcessModule.module (1435): ProcessModule->renderEdit() #7 wire/core/Wire.php (413): ProcessModule->___executeEdit() #8 wire/core/WireHooks.php (998): Wire->_callMethod() #9 wire/core/Wire.php (484): WireHooks->runHooks() #10 wire/core/ProcessController.php (361): Wire->__call() #11 wire/core/Wire.php (413): ProcessController->___execute() #12 wire/core/WireHooks.php (998): Wire->_callMethod() #13 wire/core/Wire.php (484): WireHooks->runHooks() #14 wire/core/admin.php (174): Wire->__call() #15 site/templates/admin.php (18): require('...') #16 wire/core/TemplateFile.php (328): require('...') #17 wire/core/Wire.php (413): TemplateFile->___render() #18 wire/core/WireHooks.php (998): Wire->_callMethod() #19 wire/core/Wire.php (484): WireHooks->runHooks() #20 wire/modules/PageRender.module (581): Wire->__call() #21 wire/core/Wire.php (416): PageRender->___renderPage() #22 wire/core/WireHooks.php (998): Wire->_callMethod() #23 wire/core/Wire.php (484): WireHooks->runHooks() #24 wire/core/WireHooks.php (1099): Wire->__call() #25 wire/core/Wire.php (484): WireHooks->runHooks() #26 wire/modules/Process/ProcessPageView.module (193): Wire->__call() #27 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage() #28 wire/core/Wire.php (416): ProcessPageView->___execute() #29 wire/core/WireHooks.php (998): Wire->_callMethod() #30 wire/core/Wire.php (484): WireHooks->runHooks() #31 index.php (55): Wire->__call() #32 {main} thrown (line 48 of site/modules/LoginPassKey/LoginPassKey.module) And when I click on menu in admin - access - passkeys I see this: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw.loginpasskey' doesn't exist Do you know where could be problem ? Installation is on machine dedicated with OS FreeBSD 14.2, Apache24, PHP 8.4.5, MySQL 8.4.3 Are there any requirements specific for this module ? What do you think ? Pavel
  11. Hi. Thanks..I thought that it is in this condition.... Sorry for posting here. I will create thread if I will need more help, but now I know more...
  12. I tested it and for some strange reason this hook changed settings of form for every edit of PW page. It does not matter if i put int template == 'name of my template' or 'id'. All edit forms changed. Another thing is that i need to remove several fields and have required several fields - i had to put that form->remove several times and also that part for "required" several times - for each of field. Then it worked and removed fields and thos I wanted to be required were required... But there is still problem that this hook do not recognize my template id or name... I think I have to use another approach or is there some error in your code?
  13. Thanks very much Bernhard. This looks very interesting. Just I hope I understand right - when I call editing of page by editUrl this hook will start. Remove field - is this intended to remove from backend form ? I hope yes and not to remove from template permanently.... Regarding required - that means it will put on required for field which in backend is not set as required....? Regarding formbuilder, rockforms and others I understand - I know that modules for forms re intended to go out of my scope of use... I will try this anyway...it is of course better to have backend forms ..I already prepared some form on frontend, but if this will work it is better... Is there possible to more customize backend forms to have for example another text on button for save ? One more question : How could I edit same page without that hook ? How I could I distinguish when it is with hook or without ?
  14. Thanks for your answer. I know about FrontendForms also. FormBuilder specificaly is not intended for updating PW pages, and I think same is FrontendForms. In your docs for RockForms (I have whole suite subscription) is not specified that i could prepare forms for updating PW pages directly from templates. What I need it is this: There is PW page with fields and I need logged user (which has also access to backend) to update only specific fields from that page. In default those fields are not required and by using that form I need users to enter to them values. What do you think of this ? Is that possible by some simple form in template or I need RockForms, FormBuilder or FrontendForms for this...?
  15. HI. Is possible to use RockForms for updating existing PW pages from Frontend? For example to create form which will change only specific fields on selected page ($pages->find), that are normaly not required (by field setting in backend), but using this form user will need to enter them, because it will be required before submision of the form. Or is this better to use some custom way or FormBuilder? FormBuilder is quite big for this specific form... Thanks for any hint.
  16. Hi. I just upgraded my installation of dedicated server to PHP 8.4 and latest PW and Search Engine is showing this errors: It seems that it is some problems with selector with null ? I found some fix for this: https://dev.to/gromnan/fix-php-84-deprecation-implicitly-marking-parameter-as-nullable-is-deprecated-the-explicit-nullable-type-must-be-used-instead-5gp3 So I have to set some default value or is needed to be in code of module? Your module is working right anyway and is amazing for searching - so I just need to know if I could just ignore this for now... Thanks for any help.
  17. Thanks very much for quick response...I looked already before, but now noticed that I do not have php dom extension... After install of it and restart of apache it is OK... So solved...
  18. Hi. I have problem with your module. When I click in settings for example on SEO I get Class "DOMDocument" not found error. Here is screenshot: I have dedicated server with PHP 8.4 and MySQL91. Same error is also with RockPdf. Is there aby issue with this ? Let me know how to fix this. Thanks Pavel
  19. OK. That is good. I am preparing another field for contract page which should contain some crucial and personal data for contracted customer - i.e personal identification number, address and other details. So I could use PageTable for this...also i could try to switch...need to know more details...
  20. It is very nice from you. I think it is good to know that there is option to create new pages then use same already in system. At least for my project is better to have every time new page, because every new page is unique for my customer even if it has same name. He has business with Antiquities and every item from 1 contract is unique - so every time is new contract there are also new unique items on it. For example item "Vase with decoration pictures" from one contract is not same as same named vase from another contract. For this reason every item (child page) is new and unique.
  21. Hi. I tested all and I now know that inputfieldPage after save is creating new children pages in referenced page. It is working nice also with your numbering. I have condition in page template when showing on frontend, that if item has already older field with text name of item position it will use it. Otherwise will display new auto number with wireLen adjusted formatting (1 -> 01). It works nice and I will just make changes to code for handling only new pages, but it is not needed. For new chilren pages it nicely fill auto numbers. There will be testing from customer so I will see after their editing how it goes... Regarding PageTable - it is very nice - I am very considering it to integrate. Is needed to pay for whole ProFields from Ryan or is it working anyway ? Also I am not so sure if I have data to integrate it with this (lots of imported already)...
  22. I have tried hook from you and it works - so thanks very much... I have it in ready.php and it appears that it is doing what I needed. What it does more is that it puts value 1 to current existing data, but it is OK, because this numbering is only for new data. I will test it more and let you know
  23. Hi. I have to specify that example with house and floors was just to explain what I need. I hoped that it will help anyone to explain what I need. My project is more complicated but your approach is certainly right and I have to accept that I would like to have data in my project in ideal situation you noticed... For better understanding of whole context I will explain my project more and hope you will catch the idea: It is currently in development and it is system build completely on PW installed on dedicated machine on local network and primary intended for intranet use or access by VPN. Main task is evidence of my customer contracts, products, suppliers and other data. I had to import to PW quite lots of data from old system which was built on MS Access db. I exported tables from Access and imported them as child pages using module BatchChildEditor. Now I have for example page with about 1200 children(1.type of contracts) and there is corresponding another page with about 5000 children (contract specific product items). There is also another page with about 8000 children (2.type of contracts and corresponding page with about 50000 children (contract specific product items). There are also other pages with suppliers and other data. But main data are contracts and product items. I had interconnected children from contracts and product items and populated links for page reference field by script and very good advice from Ryan and Gebeer. So this is very short explanation how now system is. So I can not simply place specific contract product item children ("floors") and put them to specific contract children page( "house") now - I have already data in pages and children. If I wanted to do it the way you wrote, it could take me a lifetime to change this structure... For this reason I specified as simply as possible using that example with house and floors what now want to do. It is mainly for product item s field which is number of item in context of contract - so for example one contract has 20 items and every item has its "number", but it is not ID or unique number but just number which was entered when that item was created. Now this numbers are in data as text field like "01", "02". Reason was that it was better for import. Customer has access to admin backend to edit data, because I will not create new forms on frontend since in PW backend they are good. What I want is numbering for new items which will customer create by using PW. So for old data which are now in system it is not needed but for new I just prepare integer field and add it to template of product item children. So when new children are created in context of referenced contract I need to auto increment and populate that number in each item. It does not matter that there will be same number in field in another new items, because those items will be connected on another contract referenced children page.. Customer is using quick adding of items by entering only names on each row (Input Page List Select Multiple) and click on SAVE. Here is screenshot (it is referenced field with input type Page List Select Multiple): In that moment could be very nice that after click on save (Uložit) for each new item is populated that integer number field with auto generated numbers from 1. Regarding conflict with existing pages it is problem, because every product item which customer create for new contract is unique - so there is always needed to create new and not use existing. So when new item is created it is always needed to be unique. what do you think about it now ? Do you understand now ? Will your hook work ?
  24. Hi. I updated structure in quoted schema from you: ├── Homepage ├── Houses (template: houses) │ ├── Small House (template: house) │ ├── Medium House (template: house) │ ├── Big Mamas House (template: house) │ │ └── ref_floors: (page reference field: "parent=floors, template=floor") --> field with increment from floor template │ │ ├── 1 Basement │ │ ├── 2 1st Floor │ │ ├── 3 2nd Floor │ │ └── 4 3rd Floor │ ├── ... │ └── Super Large House (template: house) ├── Floors (template: floors) --> here in template floor is field "number" (integer) -- > need to increment from 1 for each house page │ ├── 1 Cellar (template: floor) --> format is "number" "name" (not needed in this order) │ ├── 2 Basement (template: floor) │ ├── 3 1st Floor (template: floor) │ ├── 4 2nd Floor (template: floor) │ ├── ... │ └── x Attic (template: floor) └── ... Real structure is with lots of more fields in templates, but for some base schema and functions this is main part... Is that more clear ?
  25. I need to have working some specific structure of data I did not find anywhere on forums yet. For simplicity I will specify what I would like to have working: There is a page with child pages. I could name it for example "houses". All children pages are using same template (house) with page reference field to another page children(floors). Referenced page for example "floors" has children that all are using their same specific template (floor). On this template is page title or name, other fields and integer field of floor number (floor_number). When new child of this page is created I need to have that integer field automatically populated from 1, but only in context of referenced page. So when I create house named house1 and then in editing of house1 I create for example 3 floors I would like to have floor(title of page) 1(integer field), floor 2, floor 3 but only for that house1. Name of floor could be page title or name and it is text ("floor") and number is just integer field (1,2,3). When I add more houses I could have for example have NewHouse (name of page) with basement 1 and floor 2. I could add BigHouse also with basement 1, floor 2 and floor 3 .... etc.. When creating that floors I would like to use quick creating multiple new items which allows input page select multiple - so I just want to input floors on several rows and hit save. In that moment could be nice to have all that new floors automatically numbered from 1 on that integer field (floor_number) I want to use Page Reference field with input Page List Select Multiple. How could this be accomplished ? Is there some good way how to make that integer field to increase automatically but only for specific ref.page ? Thanks very much of any idea or help with this
×
×
  • Create New...