Spec Sheets Test (file system)
This page is a demo of getting all the spec sheets from the file system directly. It does not require the WP-Filebase plugin to be activated. This demo has been shelved because a better way has been discovered using a shortcode to list files by category that can be used in the Block Editor just like we use the WP-Filebase shortcode now to display spec sheets by category.
List of all Spec Sheets – (unordered, ungrouped). Direct from file system of website. Scans 4 levels into the “wp-content/uploads/filebase” folder. Category relationships are stored in database entries in the “wp_wpfb_files” table. Should be able to get the categories and related files and paths from the database, but they are not Posts. Custom table.
- This page found 409 total files
- WP-Filebase reports 410 total files (so we are only missing one)
“wp_wpfb_files” table (partial list of fields)
- file_id (INT)
- file_name
- file_path i.e.: ( /wp-content/uploads/filebase/bath_accessories/soma-bath/3400.pdf )
- file_category (INT)
- file_category_name
RED = missing, GREEN = included portion
Notes:
- list_files() – used to list files, sets a transient called “files_transient” which is used as the input to the $files foreach loop. slight performance boost.
453
Skyline-Single-Hole-Faucet-Spec-Sheet-R1.pdf
Skyline-Faucet-8-inch-Spec-Sheet.pdf
Skyline-Faucet-4-inch-Spec-Sheet.pdf
San-Francisco-Kitchen-Faucet-R1.pdf
San-Francisco-Roman-Tub-Faucet.pdf
SF-Faucet-8-inch-Spec-Sheet.pdf
San-Francisco-Single-Hole-Faucet-Spec-Sheet.pdf
SF-Faucet-4-inch-Spec-Sheet.pdf
Santa-Cruz-Kitchen-Faucet-R1.pdf
Santa-Cruz-Faucet-4-Inch-Spec-Sheet.pdf
Santa-Cruz-Single-Hole-Faucet-Spec-Sheet.pdf
Santa-Cruz-Roman-Tub-Faucet.pdf
Santa-Cruz-Faucet-8-inch-Spec-Sheet.pdf
Stinson-Single-Hole-Faucet-Spec-Sheet-R1.pdf
Stinson-Beach-Faucet-8-inch-Spec-Sheet.pdf
Stinson-Beach-4inch-Faucet-R1.pdf
Stinson-Beach-Roman-Tub-Faucet.pdf
Stinson-Beach-Kitchen-Faucet-R1.pdf
ED-Trim-Lever-Storeroom-rev1.pdf
ED-Trim-Lever-Passage-rev1.pdf
UL-Low-Profile-Deadbolt-Spec-Sheet-R2.pdf
Door-Closer-100-Spec-Sheet-rev1.pdf
Door-Closer-300-Spec-Sheet-rev1.pdf
Door-Closer-400-Spec-Sheet.pdf
Door-Closer-200-Spec-Sheet.pdf
Oval-Rod-and-Accessories-Spec-Sheet-rev1.pdf
Southlake-Bath-Spec-Sheet-SN.pdf
Southlake-Bath-Spec-Sheet-CH.pdf
Southlake-Bath-Spec-Sheet-BLK.pdf
Park Presidio Bath Spec Sheet SN.pdf
Park Presidio Bath Spec Sheet CH.pdf
Park-Presidio-Bath-Spec-Sheet-SB.pdf
Park Presidio Bath Spec Sheet DB.pdf
Park-Presidio-Bath-Spec-Sheet-BLK.pdf
Baker-Beach-Bath-Spec-Sheet-DB.pdf
Baker-Beach-Bath-Spec-Sheet-SN.pdf
Baker-Beach-Bath-Spec-Sheet-CH.pdf
Union-Sq-Bath-Spec-Sheet-CH.pdf
Union-Sq-Bath-Spec-Sheet-SN.pdf
Union-Sq-Bath-Spec-Sheet-DB.pdf
Union-Sq-Bath-Spec-Sheet-DB.pdf
Santa-Cruz-Bath-Spec-Sheet-DB.pdf
Santa-Cruz-Bath-Spec-Sheet-SB.pdf
Santa-Cruz-Bath-Spec-Sheet-BLK.pdf
Santa-Cruz-Bath-Spec-Sheet-SN.pdf
Santa-Cruz-Bath-Spec-Sheet-CH.pdf
Forest-Hill-Bath-Spec-Sheet-BLK.pdf
Forest-Hill-Bath-Spec-Sheet-CH.pdf
Forest-Hill-Bath-Spec-Sheet-SN.pdf
Palo-Alto-Bath-Spec-Sheet-SN.pdf
Palo-Alto-Bath-Spec-Sheet-BLK.pdf
Palo-Alto-Bath-Spec-Sheet-CH.pdf
Sea-Cliff-Bath-Spec-Sheet-DB.pdf
Sea-Cliff-Bath-Spec-Sheet-SN.pdf
Sea-Cliff-Bath-Spec-Sheet-CH.pdf
Miraloma-Bath-5100-Antique-Nickel.pdf
Miraloma-Bath-7100-Polished-Brass.pdf
Boardwalk-Bath-Spec-Sheet-DB.pdf
Boardwalk-Bath-Spec-Sheet-BLK.pdf
Boardwalk-Bath-Spec-Sheet-CH.pdf
Boardwalk-Bath-Spec-Sheet-SN.pdf
Westlake-Bath-Spec-Sheet-BLK.pdf
Westlake-Bath-Spec-Sheet-SN.pdf
Westlake-Bath-Spec-Sheet-CH.pdf
Lombard-Bath-Spec-Sheet-DB.pdf
Lombard-Bath-Spec-Sheet-CH.pdf
Lombard-Bath-Spec-Sheet-SN.pdf
Menlo-Park-Bath-Spec-Sheet-SN.pdf
Menlo-Park-Bath-Spec-Sheet-CH.pdf
Menlo-Park-Bath-Spec-Sheet-BLK.pdf
Skyline-Bath-Spec-Sheet-BLK.pdf
Shelf-Bracket-for-Oval-Rod-Spec-Sheet.pdf
Stinson-Beach-Shower-Set-R2.pdf
Park-Presidio-Lockset-Commecial-grade-DB.pdf
Park-Presidio-G2-Lever-BLK.pdf
Skyline-Deadbolt-Spec-Sheet-R.pdf
Tiburon-Deadbolt-Spec-Sheet-R.pdf
Buena-Vista-Lever-Spec-Sheet-SN-R1.pdf
Buena-Vista-Lever-Spec-Sheet-DB-R1.pdf
Miraloma-Knob-Spec-Sheet-DB-.pdf
Miraloma-Knob-Spec-Sheet-CH.pdf
Miraloma-Knob-Spec-Sheet-SN.pdf
Miraloma-Knob-Spec-Sheet-BLK.pdf
San-Francisco-Spec-Sheet-DB.pdf
San-Francisco-Spec-Sheet-CH.pdf
San-Francisco-Spec-Sheet-SN.pdf
San-Francisco-Spec-Sheet-BLK.pdf
West Portal Commercial Lockset SN.pdf
Soma-Lever-Push-Button-Privacy-SN.pdf
Soma-Lever-Push-Button-Privacy-DB.pdf
Candlestick-Park-Lever-DB-rev1.pdf
Candlestick-Park-Lever-Push-Button-Privacy-DB.pdf
Candlestick-Park-Lever-Push-Button-Privacy-SN.pdf
Diamond-Heights-Lockset-Dark-Bronze.pdf
Stinson-Beach-Spec-Sheet-SN.pdf
Stinson-Beach-Spec-Sheet-SB.pdf
Stinson-Beach-Spec-Sheet-CH.pdf
Stinson-Beach-Spec-Sheet-DB.pdf
Stinson-Beach-Spec-Sheet-BLK-6.pdf
Low-Profile-Deadbolt-Spec-Sheet.pdf
Electronic-Deadbolt-Rev-3-21.pdf
Tiburon-Deadbolt-Spec-Sheet-R.pdf
Low-Profile-Deadbolt-Spec-Sheet_2.pdf
Baker-Beach-Spec-Sheet-BLK.pdf
LandE28099s-End-lockset-1200-dull-chrome.pdf
Dolores-Park-Handleset-Spec-Sheet.pdf
Belvedere-Spec-Sheet-BLK-R2.pdf
Belvedere-Spec-Sheet-CH-R2.pdf
Belvedere-Spec-Sheet-SN-R2.pdf
Mill-Valley-Spec-Sheets-DB.pdf
Mill-Valley-Spec-Sheets-BLK-8.pdf
Mill-Valley-Spec-Sheets-CH.pdf
Mill-Valley-Spec-Sheets-SN.pdf
Treasure-Island-Spec-Sheet.pdf
Buena Vista Lockset - Chrome.pdf
Buena Vista Lockset - Dark Bronze.pdf
Buena Vista Lockset - Satin Nickel.pdf
Rockway-Beach-Spec-Sheet-BLK.pdf
Rockway-Beach-Spec-Sheet-SN.pdf
Rockway-Beach-Spec-Sheet-CH.pdf
Rockway-Beach-Spec-Sheet-DB.pdf
Round-Bore-Pocket-Door-Locks-2-14-2019.pdf
Round-Bore-Pocket-Door-Locks-spec-older-sheet.pdf
Exit-Device-400-Vertical-Fire-ED-460-rev3-21.pdf
Exit-Device-300-Vertical-ED-360-rev3-21.pdf
Exit-Device-300-RIM-ED-336-Rev3-21.pdf
Exit-Device-400-RIM-Fire-ED-436-rev3-21.pdf
Fishermen's Wharf Lever DB.pdf
Fishermen's Wharf Lever SN.pdf
Fishermen's Wharf Lever CH.pdf
UL-Fishermans-Wharf-Locks-20.pdf
Tiburon-Bath-Spec-Sheet-SB.pdf
Tiburon-Bath-Spec-Sheet-BLK.pdf
Santa-Cruz-Cabinet-Pull-CH.pdf
Santa-Cruz-Cabinet-Pull-BLK.pdf
Santa-Cruz-Cabinet-Pull-DB.pdf
Santa-Cruz-Cabinet-Pull-SN.pdf
Skyline-Bar-Pull-Spec-Sheet-CH.pdf
Skyline-Bar-Pull-Spec-Sheet-BLK.pdf
Skyline-Bar-Pull-Spec-Sheet-DB.pdf
Skyline-Bar-Pull-Spec-Sheet-SN.pdf
Handrail-brackets-Spec-Sheet.pdf
Nob-Hill-Bath-Spec-Sheet-CH.pdf
Nob-Hill-Bath-Spec-Sheet-DB.pdf
Nob-Hill-Bath-Spec-Sheet-SN.pdf