Jump to content

opalepatrick

Members
  • Posts

    193
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    North-West Europe

Recent Profile Visitors

3,544 profile views

opalepatrick's Achievements

Sr. Member

Sr. Member (5/6)

29

Reputation

3

Community Answers

  1. Thank you @MarkE - I spend too little time coding the se days. They are really useful tips, thank you very much
  2. I was attracted to the idea of pulling everything together in a process module as per @bernhard's excellent toots. I liked the idea that they were all in admin and not possible to accidentally publish to the web. But now I have thought about it and following your reply (Thank you) I realise that I should be looking at protecting the templates by user role and using all the tools available to me. I have just gone down the "over-complicating things" road. Wish I hadn't gone down that rabbit hole before the weekend! Thanks once again.
  3. I see old posts saying that repeaters are not the way to go in Custom Process Modules. If that is the case, when using forms (as I am trying to do) how would one tackle things like repeat contact fields where there can be multiple requirements for contact details with different parameters? (Like point of contact, director, etc) or even telephone numbers that have different uses? Just for background I am creating a process module that allows me to create types of financial applications in the admin area (no need to publish any of this, pure admin) that require a lot of personal or company information. Maybe I am thinking about this incorrectly?
  4. 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.
  5. 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.
  6. Thanks @kongondo for the speedy reply. I will have a go at that 🙂
  7. 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
  8. 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
  9. 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.
  10. Thank you very much @wbmnfktr - that worked perfectly and complies with CSP as well.
  11. 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.
  12. 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.
  13. 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.
×
×
  • Create New...