Jump to content

Search the Community

Showing results for tags 'PageTable'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 44 results

  1. Hi folks, I've been using the PageTableExtended recently to create some dynamic/curated sections on my site which is working really well, functionality wise, but the admin layout in the CMS is a little odd to work with. I have attached a screenshot of how one of my setups currently looks. You'll see it's hard to know what 'flexible-content-block' is an image, or text, or embeddable media etc. What would be really useful is to see the 'page' title on this screen. I have attached a screenshot with an idea. So, is something like my proposal currently possible, and if not, could it be added to a feature list? Wordpress's ACF flexible content area use this type of setup and it's a lot easier to maintain and organise. Especially for clients/users. Or, is there a way which I can fork this and build this layout for others to use if they find it useful? Thanks, R
  2. Sometimes I had to reset/ delete parent_id in settings of a PageTable field to force items be placed as children of the page being edited. I did this always by manipulating the database. Other way is to delete the field and create a new one. Both ways are not very comfortable. Is there a better way? Am I missing something? Would be nice to have this option from the field settings.
  3. PW: 2.7.3 User role: superuser I have a page with a PageTable field. The field worked just fine, but suddenly when I re-order items in the PageTable on that page via drag and drop and hit save, the re-ordering doesn’t get saved and the old item order appears. Very odd … The PageTable on all other pages with the same template work properly. I tried to clone the problematic page, and tried to reproduce the problem, but I couldn’t on the cloned page! it works. I then deleted the original problematic page, and renamed the clone page to match the name of the original one (the cloned page had, of course, the "-1" suffix in the page name). After the renaming, the problem came back! So apparently my ProcessWire installation has a problem with the name of the problematic page (which is "/ueber-uns/" and "/about-us/" [it’s a multi-lingual setup], by the way, so nothing fancy). I have no idea, how I can fix this issue, and I’m pretty nervous because the editors can’t change the appearance of the page due to this issue.
  4. I am trying to add information about users of my website to a pageTable field called 'user_notes', which I added to the 'user' template. The parent of the pageField pages is a user, so every user can have child pages with a 'note' template. Adding new notes to this pageTable works great when I'm logged in as the superuser, but when I try to do this logged in as a 'planner' user, the child pages are created but they are not added to the pageTable array. I'm not sure why, as I've been looking at every involved permission setting and I just can't seem to find out what might be going wrong. Here are some details: I have created a user role called 'planner'. It has all the 'page-edit' (sub)permissions. I have a pageTable field called 'user_notes'. The pageTable 'user_notes' creates pages under a 'user' with a 'note' template. The 'planner' role has all permissions to edit/create pages using this 'note' template.
  5. Is there a way to filter a pagearray you get from the pagetable? As I know something like this wouldn't work because you can't filter pagetable i think? Is there probably an alternative how i coud get this to work: //get all dates of the current acitivty Page from the pagetable where date_from is bigger or equal to today. $filteredPagetable = $page->activity_create_date($selector[e.g "date_from>=today, sort=date_from"]); //check filtered pagetable array & get the latest date from the first item in array. $dateFrom = (count($filteredPagetable)) ? $filteredPagetable->first->date_from : "";
  6. I have a template file that receives some form data that I save to a pageTable field. I use the pageTable to add notes to user profiles, so every user can have child pages containing a note and a date. Here's what I use: $notes = $input->post->textarea('notes'); // Passed via javascript. $customerId = $input->post->int('id'); $customer = $users->get($customerId); $newNote = new Page; $newNote->template = 'user-notes'; $newNote->parent = $customer; $newNote->of(false); // turn off output formatting before setting values $newNote->save(); $newNote->title = 'user note'; $newNote->notes_date = date('Y-m-d H:i:s'); $newNote->notes = $notes; $newNote->save(); // So far so good, but this bit does not work: $customer->user_notes->add($newNote); $customer->of(false); $customer->save('user_notes'); // Just as an example, this part DOES work: $customer->gender = 2; $customer->save('gender'); The child page is created but it is not added to the user's 'user_notes' pageTable. If I place this code in my admin module, it works as expected. Any ideas what could be going wrong? Edit: fixed it by switching these lines around: $customer->of(false); $customer->user_notes->add($newNote); Now it works as expected. Strange it works in the other order on another page, but there you go.
  7. Hello, I am building a modular layout via PageTables. Are PageTables nestable? E.g. i am using a content field (PageTable) where I insert a template called test. If I use a PageTable in this test template, will everything work? If this doesn't work, is there an alternative for this?
  8. Is it possible to hide available templates that i use in my PageTable from my clients? Let me explain... I'm setting up a PageTable to allow my client to select blocks of content to build out their web pages (see attached pic). In order for me to really give them the flexibility they need I added a new template called Magic. the magic template only holds one field - it's a drop down menu that allows them to cast spells (functions) such as 'Render staff list'. This allows the client to build pages such as... Header Image Text Magic - render staff list Header Text ... I would prefer that the client did not have access to the Magic block. Is it possible to hide the Magic template/button from my clients? Perhaps with permissions? I can see using the Hanna Code module as workaround, but i'm curious just the same. Any insight would be appreciated.
  9. it turns out that if you create a PageTable field and assign only one (1) template you get a 'add new' button. it does NOT use the label from that template. but when you assign two (2) or more templates the system will use the template labels to lable the buttons. i feel it should use the template label for the button even if one template is assigned. this topic came up in the general support area, here.
  10. Is it possible to change the label of the 'Add New' button that appears with the PageTable field? Please see attached. I see folks have different labels for these buttons. How is this achieved? Furthermore i see that some developers have multiple 'Add New' buttons with their PageTable implementation - as if setting up a feature very similar to a 'Matrix' found in Craft CMS - where each block of content gets its own 'Add New' button. How is this achieved? Is this only possible with the PageTable Extended module? I'm not really interested in styling the Admin page to mimic the frontend. I just want to custom-label those buttons and find out more about the multiple button setup. Please advise.
  11. I am using the following code: $new_pt = new Page(); $new_pt->parent = "/opt/"; $new_pt->template = "pt_template"; $new_pt->name = uniqid('pt-', true); $new_pt->title = "Title ".time(); if ( $new_pt->save()) { $page->of(false); $page->pt_field->add($new_pt); $page->save(); } and it turns out I inserted 2 pages, and I can not know where the problem. I'm using 2.6.1 PW Could give me a help, where my error. thanks
  12. Finally got round to trying PageTable tonight and really liking it so far. A tiny thing I notice is that although the rows are sortable, there's no Sort Handle icon at the beginning of each row. Is this an error in my setup or simply how things are right now? For example, here's a Repeater field with multiple, sortable rows. Notice the drag icon. And here's an example of a PageTable rows (no icon)
  13. Hi, I have setup a new blank site with PW 2.6.0 stable version. I have created a template that has two fields, the Title and a PageTable. The PageTable 's template contains besides the title a single Pagefield with radios plus three other fields (text or integer) that should only be shown if the right option from the Pagefield is selected. This works fine and as expected! But the values entered into the fields do not get stored in the DB! If I strip the showOnlyIf condition, the values get stored as expected! With the SHowOnlyIf condition, the data isn't stored when opening the page from the PageTable-field in a modal window, nor when selecting the page from the pagetree and open it directly for editing. ?? Is this expected behave or do I miss something?
  14. Hi, Working on a festival site which has artists pages and area pages. On the artist page you can associate area pages with that particular artist by way of a PageTable field. On the line up page you can then filter the artists by area. As shown below: <select name="area" onchange="this.form.submit()"> <option value="">All Areas</option> <?php foreach($pages->find("template=area_page") as $a) { $select = $a->name == $input->get->area ? " selected=\"selected\"" : ""; echo "<option$select value=\"{$a->name}\">{$a->title}</option>"; } ?> </select> All working fine but I'd like to be able to only show the areas that actually have artists associated with them. ie. currently some areas are empty so shouldn't appear in the dropdown. I'm sure there must be an easy way to check if the areas have artists but I can't think how to do it. Any help would be hugely appreciated as always.
  15. I recently created an ecommerce website, iBuildMacs, that I built with ProcessWire. Given that there's been quite a bit activity on combining ecommerce with ProcessWire, I feel many people would be interested in the approach I took. Feel free to visit it at: http://ibuildmacs.com/ The requirements for this site were: a computer configurator, much like the Apple website; example product page here cart checkout payment methods: paypal or check/cash shipping methods: the cost of shipping is based on a fixed cost that is related to the country being shipped. no live quotes The requirements did NOT include: tax rules inventory management coupons, gift certificates different product types: simple products, variable products, digital/downloadable products, etc. user accounts, address management a fancy ajax driven checkout So, I had a bit of flexibility for this site given the specific feature set. I then thought about how I wanted to develop the site. The options I considered included: WooCommerce: I've built several intricate websites with WooCommerce, the most recent being caviar.com. It was good fit that website, but for iBuildMacs, which has less requirements and a very unique product configurator, which WooCommerce could do but with a tremendous amount of overrides and working backward, I decided this wouldn't but the right fit. Plus, I'm trying to become as WordPress-free as possible. FoxyCart: A ProcessWire favorite, however I wanted to challenge myself a little bit with this site, and also keep things under one roof. Magento, Shopify, (insert some specific heavy or cloud-based ecommerce system you like): No. Overkill and making a product configurator would be a pain. After considering my options, I felt just rolling it entirely with ProcessWire and programming the catalog, payment methods, shipping methods and checkout tailored to the site's specific needs was the way to go. This would definitely reduce the time and headache needed in bending anyone of the above systems I mentioned to behave exactly the way I wanted it to. Products This was one of the complicated parts of the website, but ProcessWire, with its infintely flexible custom fields, made this a breeze. I have a product template (product.php). It has some general fields like Title, Body, Image and Base Price. It also has a PageTable field called Features. These features are child pages of the product and use feature template (feature.php), so the Features PageTable field just grabs its data from there. Then, the feature template has some general fields like Title, Body, Image and PageTable field called Feature Options. These feature options are child pages of the feature template using the feature option template (feature_option.php). So, what I ended up having is a 3 level deep structure, with two nested PageTable fields. Here's a video of what it looks like, which is quite slick is very easy to manage: https://vid.me/kjDW Cart When a user adds a configured product to their cart, it must be stored somehow and I thought of a variety of ways to do this. Ultimately, I decided that cart data is handled as a page (using the order.php template) undernearth /orders/. This order.php template has a page name that is based on the session id of the user, so it'll remain unique and not cause a conflict with other people's carts (as well as obscure from people trying to guess it's url, which is used for the order confirmation page). One of the fields in this order.php template is called "products_ordered", which utilizes the Table fieldtype (a Profields table). Video: https://vid.me/MIRl Checkout The checkout is a straight forward form with the basic questions. However, the shipping section is where it gets tricky. The requirements for this site were that each computer has a fixed shipping price depending on the method being used to ship. The shipping methods available to a customer are dependent on their country. I think WooCommerce could manage rules like that, but directly coding it wasn't that difficult. I create an array that stored the 2 payment methods, and another array that stored the 6 total shipping methods. I also have an array for all the countries. I then wrote some JavaScript that managed the relationships between the country chosen and the shipping methods available for the chosen country. When choosing a method, it will update the Shipping cost line item on the car to the right. Just basic JavaScript going on here. All nice and on one page. When the submit button is pressed, it will run through some logic and validate all the data and save it to the same page that stored the cart data. An order confirmation email is sent to the customer, and one is also sent to the admin (SwiftMailer). If Check/Cash was chosen, the user is then simply forwarded to the order confirmation page, which is at /orders/whatever-their-page-name-was-saved-as/. The email they are sent also has a link referencing this page. If PayPal was chosen, a URI is built and the user is taken to PayPal complete payment with PayPal Payments Standard using the Cart Upload command. Documentation here. After they complete Payment on PayPal, they are then taken to the order confirmation page as described previously. Video: https://vid.me/hwfB I will eventually be using ListerPro for a nicer admin orders list display and build a few custom actions to allow administrators to quickly send general emails from the system (like, when the order is shipped). Modules Used Admin Template Columns: http://modules.processwire.com/modules/admin-template-columns/ Markup Simple Navigation: http://modules.processwire.com/modules/markup-simple-navigation/ Maintenance Mode: http://modules.processwire.com/modules/maintenance-mode/ Batcher: http://modules.processwire.com/modules/process-batcher/ Form Builder (for the contact form only): https://processwire.com/talk/store/category/2-form-builder/ Swift Mailer: http://modules.processwire.com/modules/wire-mail-swift-mailer/ PageTable field type ProFields Table: https://processwire.com/talk/store/category/7-profields/ ListerPro (eventually): https://processwire.com/talk/store/category/9-listerpro/ Enjoy!
  16. Hi, I'm currently experimenting with using the excellent new PageTable field and have been unable to find an answer to this problem. When editing a page using the PageTable field, I am able to manually drag'n'drop the child pages created by the field. However when I save this doesn't seem to have any effect on the children that the PageTable field created in the admin PageList tree. I've tried setting the template with the PageTable field to sort children by 'manual drag n drop' and also tried setting it to sort children by the PageTable field but nothing seems to have an effect. TL;DR I can't get he manual sort order of pages created with PageTable field to be reflected in the sort order of the admin PageList tree. (The order in the admin PageList) (The order in the PageTable field) Thanks for any help with this!
  17. I am having problems deleting pages used by a PageTable and PageTableExtended field Processwire version : 2.5.8 dev Modifications : I have installed Language support for Fields and Page Names. This issue affects the PageTable and PageTableExtended modules - they are both slightly different but maybe connected somehow. That could be because of the whole interconnectedness of everything or because they have almost the same name. With the PageTable I am storing the PageTable pages in a hidden folder called "Videos". If I delete one of these pages outside of where the PageTable is being used (i.e. from the "Videos" folder) the following happens : If I am logged in as root admin, the deleted PageTable page is greyed out, I can open the page and edit, but there is a message that : This page is in the Trash And there is no way from this dialog to restore the page (of course you can go manually to the trash and restore it). If I am logged in as an editor (with reduced permissions but including "page-delete") - the deleted PageTable page is greyed out, but when I try to edit the page, there is an error message. Module ProcessPageEdit failed init - You don't have access to edit No page found And it is not possible to edit the page. With the PageTableExtended I am storing the PageTableExtended pages in a hidden folder called "Content Blocks". If I delete one of these pages outside of where the PageTable is being used (i.e. from the "Content Blocks" folder). When logged in as root admin and also as an editor (with reduced permissions but including "page-delete") I get the following error when trying to edit the page where the PageTableExtended is being used. Page '/en/trash/1743_content-block-36/' is not currently viewable. The only way to allow them to edit the page again, is to go into the trash and restore the deleted content block back to it's original location (the "Content Blocks" folder). Thanks for any help!
  18. Hi Folks, I am trying to setup a scorecard for a page for a golf course listing. Each course has different "Tees" i.e. Mens, Ladies - but also different tee colours like "Blue" or "Black" for championship, "White" for "Mens", "Green" for mens / non compeition and "Red" for ladies. This is fairly common but some courses might use gold, silver bronze as their colours. Each Tee Box has the following data: Distance Par Index Men's boxes for par and index will typically always be Blue / Black and White - green is included for distance, and ladies tend to just have the one tee box. I am trying to get my head around how to setup a field for this / approach it so I have the flexibility to do: Hole Number (fixed 1-8) Tees - Tee Colour - Tee Distance - Tee Par - Tee Index I could probably figure some way to make "Hole" repeatable then the user has to enter repeatable rows under for each "Tee" however it's a bit messy and lot of repetition - it would be far better if there was a way to firstly define the courses "Tees (Colours)" then auto present 18 rows fields for the associated colours Par, Distance and Index. I hope that makes sense and hope someone can guide me on an approach. Thanks in advance.
  19. Hi, I am currently converting some Repeater fields to PageTable fields because of better performance and the highly usable UI. All is working fine except that is see the Page ID in in the table while the fields is configured to view the Title. Here I can enter the data just fine: The PageTable field is built on the same fields as the repeater field above, but the table only shows the ID while the repeater show the title. How can I change the viewing of the ID to the title? Or is this currently not possible yet?
  • Create New...