Hey @spatsurastellarsoft,
thanks for reaching out!
FacetWP and Simply Static don’t work together (I contacted them a while ago) because they need ajax to process the results (which isn’t available on a static website).
I haven’t found a plugin that handles that well on a static website right now, but I’m happy to update the post once something is available!
Best regards,
Patrick
Hello @patrickposner
Thank you for the response)), yes I am now developing a custom solution that will help generate additional data in JSON file which is generated for search through Fuse.js as the data that is there is not enough for the formation of posts or filtering, for additional data I use this filter in the plugin PRO “ssp_search_index_item”, so that there can be collected in JSON file all that is needed to render posts and filter them. I would like to ask you to add some more hooks to the plugin, for example I couldn’t find suitable hook to generate my JSON file before everything will be collected in .zip archive, in this function “wp-content\plugins\simply-static\src\tasks\class-ss-create-zip-archive.php”
Here is a hook that is called after the creation of
do_action(‘s_zip_file_created’, $zip_archive );
But it would be cool to have a hook before making an archive after all links are processed and as arguments path to “working directory” with a folder and files would be passed there in parameters, so there could be a hook for it, because I haven’t found it either…
So now I’m redefining in Static site JS which is responsible for processing when clicking on FacedWP elements
https://prnt.sc/rctrRpcmj6RP
https://prnt.sc/q2n0ICImzmJu
https://prnt.sc/SOQha8EnLRVS
Hey @spatsurastellarsoft,
thanks for your reply! Using the filter ssp_search_index_item to extend the results is the perfect way to handle that!
Hooks:
Recommendations for new hooks are always appreciated! However, there is a hook used by the Fuse.js integration itself that may already work for you. It’s called ss_finished_fetching_pages.
It’s executed after fetching all pages/files but before the ZIP file is created. It’s used in Simply Static Pro to add the config files (also the JSON file) before finishing the process.
Best regards,
Patrick
Yes, I found this hook “ss_finished_fetching_pages” but the problem is that it does not pass the parameters of a folder (temporary), the path to which the generated files before packaging in .zip or copying to another location (if another folder is selected), through that hook I can not generate our JSON file, as there is no path of the working directory and temporary folder
https://prnt.sc/TbDdgUxNUQjd
Hello @patrickposner
So can you please help me with this question ?, i need hook that provide to me ability create file before those all files will be packed to *.zip