Jump to content

Peter Knight

Members
  • Posts

    1,474
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Peter Knight

  1. I hadn't manually set any. Would it be a manual redirect specified somewhere in the admin or a module or more likely a NGINX directive?
  2. Finally figured this out after finding this post I needed a trailing slash at the end of my action URL <form method="post" action="../download-confirmation/" target="_parent"> The form still worked and directed to the correct page so that didn't help.
  3. Personally, I like that idea Client wouldn't like this as a solution but as a short term fix it'll work for some of my more personal projects.
  4. They shift things around wayyyy too much. Makes it hard too, to rely on their APIs which they are ruthless too about shutting down or forcing everyone to upgrade.
  5. Peter Knight

    Google GitHub

    Might be of interest to some. Article about Googles version of GitHub
  6. There's no way to temporarily pause a users login access. You can uncheck their roles and hit save. If you have many roles, you have to remember what they had access to if you need to re-admit them. Would it be useful to have a "pause access" checkbox for a user ? Also, on the User Overview a new column titled "Status" could be nice. Gives an overview of wether someone is paused, activated etc Edit - I think I can configure Lister to display a users status
  7. Yep it's a form created by Form Builder (the PW module). Starts with <form id="FormBuilder_document-download" class=" FormBuilderFrameworkFoundation InputfieldFormWidths InputfieldFormNoHeights InputfieldForm" name="document-download" method="post" action="./" data-colspacing="0"> Ends with a closing form tag too.
  8. Around the receiving Php? I didn't realise I needed one but hadn't done this before. Will try that, thanks.
  9. Just a typo in my example. The code I'm using is accurate
  10. I get it. Once I have a page ID, I can make a connection between and selected PDF and it's page. So if I have a form (using FormBuilder) and a PageSelect field outputting an array of checboxes called "select_your_case_studies[]" <div class="InputfieldContent "> <div class="InputfieldCheckboxes"> <ul class="InputfieldCheckboxesStacked"> <li><label><input type="checkbox" name="select_you_case_studies[]" id="Inputfield_select_you_case_studies_1412" value="1412"><span class="pw-no-select">Condé Nast</span></label></li> <li><label><input type="checkbox" name="select_you_case_studies[]" id="Inputfield_select_you_case_studies_1413" value="1413"><span class="pw-no-select">Charles Stanley</span></label></li> <li><label><input type="checkbox" name="select_you_case_studies[]" id="Inputfield_select_you_case_studies_1414" value="1414"><span class="pw-no-select">Global Logistics Firm</span></label></li> </ul><input type="hidden" class="findPagesSelector" data-label="title" value="template=a-document, Document_Type=Case Study"> </div></div> Would I use the following to echo the selected check boxes? $value = $input->post['select_your_case_studies']; I'm unsure as to why nothing is outputting on my confirmation page.
  11. I actually had this error a few times and seemed to solve it by renaming the file. I used underscores instead of dashes and that seemed to work. Are you sure it's an image size issue rather than a naming convention?
  12. What I'd like to do is dynamically display them. IE Although I have a dedicated page listing all available PDFs with links to them, I'd like to display just the PDFs which had checkboxes ticked. Possibly I can pass a CSS class to the PDFs not selected to hide those on the page etc
  13. Hi guys Probably more a general Dev question so I'm posting it here. I have a Document Request form form. Apart from basic fields for name, email, phone etc, I also list 10 PDF titles and a checkbox for each. The form itself is created using an online form service. I'd like to display a download link on the confirmation page corresponding to each checkbox ticked. AM I correct in thinking this is the realm of URL parameters and combined with some PW selector? If it's any help, each PDF is actually a page in PW with a template called "document-detail". Just looking for broad tips right now while at planning stage.
  14. A native PW system would be great and a great showcase too. Having used Trello in the past for MODX I wasn't convinced it brought any value. Actually - I just tried to login to the MODX Trello account and it's been closed.
  15. Hey @rot Module sounds interesting. Any further progress?
  16. Possibly not but I've found there are less mistakes. The extra 0000.5 seconds it takes are worth it. Less mistakes and less support calls.
  17. Hi Nurkka I found this quite difficult initially too. Primarily because I was expecting PW to behave like another CMS I use. If the parent pages doesn't have any restrictions set in the Access/Family tabs then I find it's much easier to go to Settings and the Parent options. Some might argue that it's slightly more work but I've found it's also more accurate. Would that work for you?
  18. Hi guys. Just a query - nothing relevant on Google. I have about 400 blog posts which need tagging and categorising. I already have a list of about 5 known words I need tagged and applied to each post via pageselect field. IE cat, dog, fish Is it possible to somehow scan my 400 posts body field for these cat, dog, fish words, and then auto-tag them? Just a query at the moment.
  19. Ok, I understand the logic so thanks for clarifying. I still think my Map Overview page possibly has a different setting as it's pulling in points not from it's own PageTable children (it doesn't have any) but from all other pages with PageTable children. So it's more like this (without any working urls <?php $items = $pages->find("template=update-location, pt_map!='', sort=title"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'pt_map', array( 'height' => '500px', 'useHoverBox' => true ) ); ?> Anyway, thanks for all the help. much appreciated. What I've done for the moment is to add a manual session redirect on my pagetable child page templates. <?php $session->redirect($page->parent->url); ?> It's probably not great for SEO reasons but it'll help me press ahead for the moment.
  20. Yes, I updated my post. I didn't want to create another post and monopolise the thread I don't really follow your instructions but that's me wrapping my head around this and not your instructions. basically, I didn't realise that url below could be the name of a field on my PageTable page. 'markerLinkField' => 'url' Based on this, you saying I can create a field called url and somewhow reference the parent page address in that? And by the way, the map I am referring to would be a map displaying ALL pins right across the site and not just pins associated with a single page.
  21. Typically a pin on a map will link to the source PW page. However, I have a Map which pulls in locations and those locations are child-pages generated via PageTable. In this case, I want the pin to link to each pins parent url instead of itself. I've discovered an option in Ryans module which seems to control the links attached to the pins I'm not sure how to apply it to the following <?php $items = $pages->find("template=update-location, pt_map!='', sort=title"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'pt_map', array( 'height' => '500px', 'markerLinkField' => 'url')); ?> I've tried these but obviously messing up my syntax or understanding of its workings <?php $link-to-parent = page->parent->url; //create a variable and then pass that to the markerlinkField $items = $pages->find("template=update-location, pt_map!='', sort=title"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'pt_map', array( 'height' => '500px', 'markerLinkField' => ' . {$link-to-parent} .')); //call my variable here ?> <?php $items = $pages->find("template=update-location, pt_map!='', sort=title"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'pt_map', array( 'height' => '500px', 'markerLinkField' => 'url->parent')); //try adding a reference to the parent ?> Can anyone point me in the right direction?
  22. I think this is from hitting Publish on a PageTable page but then not hitting Save on the same. Or something like this.
  23. Pages are being automatically created as children of the parent page.
  24. Thanks Bernhard. That does indeed look cleaner. Im not sure why but this method doesn't always show my most recent pin. Whereas the longer code will. When I look at my parent page and scroll to the PageTable field, I have a notice saying: Once I check the box beside the missing page, the pin will show on a map using your code.
  25. Got it. I needed to do this <?php // outputs multiple pointers from pagetable maps(pt_map) $items = $page->children("pt_map!='',"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'pt_map'); ?>
×
×
  • Create New...