ACF field Groups not showing on wp-admin - advanced-custom-fields

I have a website where only 9 out of 25 fields groups are visible on the wp-admin. There is a folder (in theme folder) with all of them in JSON format. I would like to remove this folder and move all of the fields to wp-admin.

Related

Import Folder of Documents into Container field via script

Im running Filemaker Server 19 and FileMaker 19 client
I have an app that manages Document Templates, ie Word documents
Each Document Template master record contains information about that template, plus connects to a Document Samples table that contains one Word document (the template) and one PDF document (an output of the template file when used , a bit like mail merge).
We've recently had an update to the system I support (not a Filemaker system) and many hundreds of the Word templates have been updated. If I have to do one or two in a session it's pretty simple to drag the latest version of each template to the Container field; but recently I've been having to do 10s/100s of Document updates very quickly to get them into our system. I've put copies of all the Word documents into a folder on my Mac. They all have a unique name and a unique template id in the format of 1234doctemplate01. So, the 1234 equates to my Document template ID in my database and the filename is also mirrored in a 'Template Name' field in the database.
So, my question is how to build a Script to go through the database one record at a time and, for each, to check the Mac folder and see if there's matching document name and, if there is, to paste/copy it into the appropriate Container field
Can anyone advise, please? Further detail available if this isn't too clear
I would do something slightly different:
Import all the files in the folder into a new table (see https://help.claris.com/en/pro-help/content/importing-folder.html) and create a relationship between this table and your existing table, based on matching template ID or name.
Then you can loop over the records in either table and if a match is found, replace the data in the existing container. Or perhaps you could make this a permanent structure, where the file is stored in a related record.
Doing it the way you have proposed would be awkward using only Filemaker's built-in tools (and outright impossible if the folder is not somewhere within the Documents folder). It might be somewhat easier if you use a plugin (e.g. BaseElements) to read the folder's contents.
You can use base element plugin to select multiple files in a folder with
BE_FileSelectDialog
or check if a file exist with
BE_FileExists
and then looping over the list to insert every file into a container via
set field ["your_container" ; BE_FileImport ( $file )]

automatically open a group of files in Sublime Text 2

Is there a way to open a group of files automatically in Sublime Text 2? These files are stored in different folders. From online posts and videos it looks like Projects within Sublime Text are for specifying which folders to include/exclude in a project, which is different than wanting to open a group of specific files.

How to open a doc or pdf document from Odoo website?

How can we open a word document or pdf file by clicking on any link in Odoo? What are the steps need to be done?
1) Install module Document Management System (document).
2) Create directory (knowledge menu unit) or use existing one. Attach to this category required file (button "Attachments" above the form)
3) Since it was downloaded, it would generate an url. To access it: mouse right click on downloaded file - save url
4) Add the url to the website. Pressing it will download the file (publically available).
Note : Above Functionlity Work on odoo 8.
Document Management System module Remove in odoo 9 community and enterprice so this all file store in ir.attachment model.
So. Programatically, it is pretty much the same. The module 'document' allows to attach files to any object, including product.product (or product.template). So you have to find it:
attachment_ids = self.env['ir.attachment'].search([('res_model','=','product.product'),('res_id','=',product.id)]).
Where product.id - is id of needed product. E.g. you can store attachment_ids in product.product class as one2many field. After that you can get an url of any attachment. For example, for binary files:
for attach in attachment_ids:
url = 'https://yourcompany.com'+'/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id='+str(attach.id)
This url may be easily added to the website product site, using foreach in product.attachment_ids

How to Store Image in a Directory File & Keeping Path in Database

I'm trying to create a program that retrieve image in directory folder that when i select records in datagridview the records display & the image restore in the directory folder will also display in the form.

How can I retrieve the the current CSHTML file for more intelligent view selection?

Suppose I have a partial view "_Navbar.cshtml" in my Views/Shared folder that's referenced in a layout page... so it gets embedded on every page.
Now, suppose I have a view with the same name existing in my Views/ControllerX/Partial folder, which is a navigation bar specific to that view.
In this case, views in other controllers find the Shared partial view file fine. However, when I run a view in ControllerX, the _Navbar.cshtml file in Views/ControllerX/Partial ends up usurping/overriding the one in Shared/Views.
So I was wondering if there's a way to prefer a view based on the currently executing cshtml file. For example, if "Partial" is called from a cshtml file in the Shared folder, then it should prefer other partial views in that same folder over ones in more specific controller view locations.
In short, is there a way to rig the view engine so that rather than having a static search path order, it's contextual and looks for files in the same folder as the executing cshtml file first?