Jump to content

opalepatrick

Members
  • Posts

    233
  • Joined

  • Last visited

Everything posted by opalepatrick

  1. I am working on my first Process Module. I am creating forms. Fairly straightforward. However, I really can't work out how to create multiple fieldsets? $fieldset = $this->modules->get('InputfieldFieldset'); $fieldset->label = 'Customer Source'; $field = $this->modules->get('InputfieldPage'); $field->inputfield = 'InputfieldSelect'; $field->findPagesSelector = 'parent_id=1449, include=hidden'; $field->labelFieldName = 'yff-lead'; $field->name = 'yfflead'; $field->columnWidth = 16; $fieldset->add($field); $field = $this->modules->get('InputfieldPage'); $field->inputfield = 'InputfieldSelect'; $field->findPagesSelector = 'parent_id=1452, include=hidden'; $field->labelFieldName = 'customer-type'; $field->name = 'customertype'; $field->columnWidth = 16; $fieldset->add($field); //Rinse and Repeat $fieldset->label = 'Contacts'; $field = $this->modules->get('InputfieldPage'); $field->inputfield = 'InputfieldSelect'; $field->findPagesSelector = 'parent_id=1538, include=hidden'; $field->labelFieldName = 'salutation'; $field->name = 'salutation'; $field->columnWidth = 16; $fieldset->add($field); I can create the first fieldset (Customer Source) but then get into trouble as the second fieldset overwrites the first. I understand why, but trying to use the open and close fieldset routine has flummoxed me. Any help appreciated.
  2. I may be getting my brain in a twist. I am just creating a first process module to handle quotations. These have pretty big old data capture forms for finance quotes that can require a lot of info about people inc. private individuals, company directors, shareholders. The transactions can be personal or business. I have no use case at the moment that would require a contact to login and do anything (as it would all be entered manually) so my initial thought was just build a load of contacts with their details etc., they will all be in the admin area with users that have permission to edit create etc. The only thing that is bugging me is that I may be duplicating stuff that would be better handled by the users/roles setup built in to pw. Is there any sense in combining users and contacts with the possibility that some time in the future I may need contacts to login to maybe complete an application process for instance? The reason I was shying away from using the user setup was the need to set passwords and usernames, etc. The more I think about it, the more I think it might be better to tackle the future use as a separate application when I need it. (The one that came into my head might be for marketing follow-ups where people may want to unsubscribe, etc) Any help unscrambling my brains would be appreciated. I just don't want to go down a rabbit hole.
  3. Thanks @kongondo for the speedy reply. I will have a go at that ?
  4. Hey there, I have had an error with this for a while. I am using pw 3.0.123 and have uninstalled, cleared cache and reinstalled and still get this: count(): Parameter must be an array or an object that implements Countable on line 341 Any ideas? Appreciated
  5. Thanks for that @zoeck - I didn't pick that up even with a google site search! However, that seems to be more about either/or situations. I am trying to order by date desc with date_modified if it exists otherwise use date. Might be done in mysql with ORDER BY COALESCE(date_modified, date) I am re-reading just to be sure
  6. Hi, trying to order pages by modified date, date. I can do 'sort=-date_modified, sort=-date' but that will always put the modified date first regardless of actual date order. I just want to coalesce the two fields and sort. Any ideas would be appreciated.
  7. Thank you very much @wbmnfktr - that worked perfectly and complies with CSP as well.
  8. I have pages with a masthead image that is loaded to a background using inline styles. They are dynamic depending on the page. The problem is that with CSP I can't use inline styles, therefore I lose the ability to load the background image dynamically as we can't use php in the css file where you would normally move the inline style to. I am checking flexbox at the moment, and have looked at a div with the image covering the whole visible area on a different z-index level, but that is ugly and doesn't work consistently... The reason that I need it as a background is because I have content (text) over. Any ideas appreciated.
  9. Thank you both, I have now got something to work with. @dragan it is my own custom PW module that I wanted to access output from Formbuilder. I just couldn't work out a method. I will go and do some more work.
  10. Is it possible to access a modules output from within another module. I am trying to access Formbuilder output in a function for a sales admin module that I am building. Any how-to's or pointers appreciated.
  11. Thank you Macrura and Robin S - I have finally got it working after trying both methods (and a few others) - in the end, it was a rookie error in that I needed to logout and back into admin to make the changes to the latest legacy pw version. Then it worked as per Robin S - which is where I started ?
  12. Hi there, this was addressed way back in I am not able to do this either. It is in a legacy site. I updated to the latest wire version 2.8.62, tried the ideas in the other post, but still cannot get markdown to behave in this field. Any ideas as to how this can be done?
  13. Thanks very much everybody. Several ways to skin the cat there. Thank you once again.
  14. Thank you both. Yes 'financial stuff' wasn't very eloquent or illuminating but you got the gist of it ? - Essentially it would be the structure of a shop without billing or prices, just the ability to choose items and then dump them in a basket and add quantities or delete items then email back the info and confirm to the client. Thank you very much kongondo for your detailed explanation. Much appreciated.
  15. Hi, I am trying to work out the best way to make something like a shopping basket without all the financial stuff. Basically, choose products/items, add to 'basket', view basket, send enquiry. Pre-processwire I did this with sessions etc. Thinking as I have already constructed the catalogue and individual product pages, I should be able to move on from there. Can't get it straight in my head so any guidance would be appreciated.
  16. Actually, it was the #2 @kongondo thank you. I need to read up on the multi-instance feature
  17. Thanks elabx. I am just trying to get my head around centrally updating umpteen subdomains whilst allowing some update in each of those subdomain by the regional user.
  18. Hi there, I am looking at creating a lot (between 25 & 120 over time) of sub-domains that are for regions of a parent company. Most of the content I want to be able to populate at the central admin once, however, I would like to give the local site owners the chance to create content for some areas themselves. I have seen Soma's multisite module but wonder if this is appropriate for my use, or if there are other ideas? Appreciate any comments.
  19. That was the answer Robin S. I had added a list-style: none - where did that come from? ;-) Thanks a lot!
  20. Hi all. I am getting a problem with markdown numbered lists. The syntax is easy but it not producing at all on my site. It just ignore 1. 2. etc. Not adding list numbers or indents. Tried the two modules Markdown/Parsedown extra and Parsedown Extra Plugin with same results. I am, on v3.0.62. Any help ideas appreciated.
  21. Thanks a lot Zeka. That will get me going!
  22. Hi there, just looking for ideas for an IP restricted login page for employees on site? Where to start? Is the IP restricted idea best? Just basically want to make sure employees are in the building when they sign in. Thanks for any help.
×
×
  • Create New...