-
Posts
2,780 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Macrura
-
Yes - good find, that was the model i used for setting up the range filtering.. $.fn.dataTable.ext.search.push( function( settings, data, dataIndex ) { var distance = parseInt( $('#search_distance').val(), 10 ); var distmax = parseFloat( data[3] ) || 0; // use data for the distance column if( isNaN( distance ) || distance <= distmax ) { return true; } return false; } ); and i'm using the ion rangeslider, which after testing a few different ones seemed to work best
-
They are actually not using anything other than the stock Foxycart admin; Though i did setup Orderdesk and it looks great, but i don't think they ever used it. @BernhardB - thanks for checking it out! The filter is really dead simple.. 1.) jQuery Datatable with custom filters, using PW page IDs as data attributes on the cells, e.g. data-filter="1234" 2.) when you change any of the filters, there is an onchange trigger to redraw the table with the filter; 3.) change some numerical inputs to the sliders 4.) empty divs above the table, one for each filter type, and those are populated at the same time when the filters change
-
Quick note about this site, it's just been re-launched as a 'V2' after an additional 90 hrs of work on it... http://ohmspeaker.com/ mostly a lot of refactoring of code, finding better, more efficient ways of doing things, both in frontend and admin...I had about 2 years of good reading–the forum–between the initial launch and when the refactor started... Thanks to pro modules like Table and Lister Pro, the management interface is fast, and easy for the company management to maintain. With 4 separate product lines to manage (Speakers, Legacy Products, B-Stock and Home Theater), Lister pro has streamlined this–the agile ajax interface is truly unparalleled amongst ecommercce systems for adding and editing hundreds of products. The news system has been expanded and enhanced with xml feeds, category/tag/archive filters, author profile, and other enhancements. The product search was converted from a server side search to a completely Javascript based filter, using html5 pushstate, and graphical sliders. The category overview pages filter the products as opposed to being separate pages, reducing page loads. Product pages are more intuitive, with better veneer picker, and other javascript enhancements.
-
Forklift in combination with Sublime Text is pretty unbeatable for simple FTP and text editing. Also, I wouldn't rule out Coda, which is basically a text editor with most of the features of Transmit, all in 1 app..
-
No more create new page from page field after upgrade 2.6.13
Macrura replied to BFD Calendar's topic in General Support
@BFD Calendar - sounds like a possible bug; perhaps best course is to report it as an issue on github. -
yeah - that's the other piece of the puzzle... !
- 6 replies
-
- vanity url
- landing pages
-
(and 1 more)
Tagged with:
-
No more create new page from page field after upgrade 2.6.13
Macrura replied to BFD Calendar's topic in General Support
what happens if you re-create that same field as a copy on the same template - does it also not work? Are there any errors in the console? -
as long as the page URL is /page-title they should crawl that; you could also use a hook to make those pages live off the root as is explained in the CMS critic case study. that would take care of the URLs, because then the system would always rewrite those landing page URLS to the root versions i use this for landing pages: wire()->addHookBefore('Page::path', function($event) { $page = $event->object; if($page->template == 'landing-page') { // ensure that pages with template 'landing-page' live off the root $event->replace = true; $event->return = "/$page->name/"; } }); in the landing page itself i put this: // if someone tries to access this page at it's real location in the page tree, redirect to the fake URL: if(!$input->urlSegment1) { $session->redirect($page->url); }
- 6 replies
-
- vanity url
- landing pages
-
(and 1 more)
Tagged with:
-
you could do it multistage with add-> e.g. start with simple selectors of things that will match and then incrementally add more; or you could foreach through them and do more advanced checking on each item, but this will be pretty slow; or see if OR groups would work: $tmp = $pages->find("template=booking,bookingStartDate>=$frontStartDate,(bookingStartDate<=$frontEndDate, bookingEndDate<=$frontEndDate),bookingEndDate>=$frontStartDate"); https://processwire.com/api/selectors/#or-groups
-
it depends on if you are rendering the page off the root or redirecting; for a landing page you may as well render it using the URL segments technique; and you can manipulate your canonical URL to show the off-root URL
- 6 replies
-
- vanity url
- landing pages
-
(and 1 more)
Tagged with:
-
No more create new page from page field after upgrade 2.6.13
Macrura replied to BFD Calendar's topic in General Support
Any chance the new pages are being created, but unpublished? I had that same issue on '.12, and to fix it i think i had to reset the family settings; -
great! will be really nice for things like invoices, sensitive, or copyright/rights managed data in files
-
Getting all fields in a list or array from a page.
Macrura replied to Harmster's topic in API & Templates
@tekno, can you explain more about what you want to do? there are several ways to get a list of unique values, but depends on how the fields are setup and how your search form needs to reference them. -
yeah i was thinking this practically on the same day you posted this, would be truly epic!
-
not sure, i've never seen siteurl as a parameter, and i don't see that in the cheatsheet; also don't you need to reference the $item->url? <section id="technology"> <h1><?php echo __('services-and-technologies'); ?></h1> <h2><?php echo __('services-and-technologies-heading'); ?>.</h2> <ul class="centering-block"> <?php foreach($page->services as $item) { echo "<li> <h3>$item->title</h3> <p>$item->textContent</p> <a href='$item->url'> <p>$item->title</p> </a> </li>"; } ?> </ul> </section>
-
or even show_in_slide= (?)
-
ProcessWire Site Header and Footer Used in WordPress Blog
Macrura replied to quickjeff's topic in API & Templates
guess i'm the someone else.. after just having built several blogs with PW, i do wonder why anyone would willingly use that awful WP interface, and the annoying media manager, not to mention things like featured image etc.. i guess for power bloggers, WP probably has some advantages, but most of my clients just need a simple blog that they can edit quickly and easily..- 25 replies
-
- 3
-
-
- caching
- header include
-
(and 1 more)
Tagged with:
-
you may be able to use $config class for your custom site variables;
-
you have to figure out how the markup outputs each panel and then loop in such a way to create your panels; this will assume at least a pretty good knowledge of HTML and use a code editor like Sublime text so you can see matching divs
-
@quickjeff - have you considered making a sitemap manually - then you would have api control over what it spits out: http://processwire.com/talk/topic/3846-how-do-i-create-a-sitemapxml/
-
Removing PageTable item without deleting page
Macrura replied to EvanFreyer's topic in Getting Started
it's a good question - i thought there was (maybe i'm imagining it) some setting where you could tell it what to do with trashed items, e.g. trashed items are deleted, or left there; ran into a situation yesterday where we wanted to move a child item from one parent to another, but even moving it just allowed it to be on 2 page tables, because the 1st page table remembered the id, and didn't account for the fact that the item was no longer a child of the page table.. ended up being easiest to trash the page and then move it out of the trash to the new parent; but i could see there being a need in future to be able to elegantly move pagetable items around without too much hacking... -
haven't tested this but i'm thinking of adding the settings to the $config class so they are available inside functions and wireInclude, wireRender.. would just need to change the loop to this i think: foreach($settings_lines as $settings_row) { $settings_pair = explode('|', $settings_row); $config->{trim($settings_pair[0])} = trim($settings_pair[1]); } or foreach($settings_table as $row) { $config->{$row->setting} = $row->value; }
-
@jlahijani - thanks for this, i should add your technique to my settings tutorial.. how do you do settings, e.g. table, text field, regular fields, etc.. https://processwire.com/talk/topic/8373-use-delimited-texarea-table-or-yaml-for-settings/?hl=settings **just set this up and it works great! (i was using a custom admin page before for this and doing a session redirect..)
- 21 replies
-
- admin
- admin theme
-
(and 1 more)
Tagged with:
-
you would need to: 1.) allow the form to accept GET params (in the form setting) 2.) Use a select field for the class, or a text field 3.) make your link to the form that references the page ID of the class, like: /registration/intro-to-computers/?class=1298 (page select) or url encode the title if using a text field /registration/intro-to-computers/?name=Intro%20to%20Computers%22 and you probably would want to sanitize the input, though i think FB sanitizes input by default?