Quote from: nuan88 at Aug 12, 2018, 01:40 PM
LK: I am a bit unsure of the relationship between MIGXTV and the issue that Bob mentioned. Does MIGX help or not help with this issue? Does it help a bit or a lot?
There is no relationship - It doesn't help. TVs are never really a good idea to search and filter resources by. A repeating MIGXTV with a heading for the attribute and an input box for the attribute value is probably just an easier way to go (as you suggested in your post) when it comes to importing with importx.
The preferred way would be to extend the resource object or create custom db tables and write your own import script to map the data.
■ email: email@example.com | ■ website: https://alienbuild.uk
The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk
about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
it sounds like it could be done by templating, but then that's also troublesome
maybe one tv to determine the appropriate attributes for a given session makes the most sense here, or even possibly broken up into groups
Some interesting ideas - especially the 'one tv' approach. I think in my particular circumstances, where the most products on one page is around 20, TVs shouldn't be a problem. I'm going to do a sample of the largest category first, bite the bullet and see what happens.
That's interesting BobRay - thank you. It also brings up more questions!
Using ClassExtender, is it possible to bind sets of resource fields to templates to create what Magento calls, an 'attribute set'? (so I'm not binding all 75 fields to every resource)
Will the extra resource fields be available to Importx?
I don't know how Magento uses attribute sets, but I think you could add add an extra field called attribute_set and fill it in directly on the Create/Edit Resource panel. You could also omit it, put the value in a TV, and populate the field with a plugin when the resource is saved.
It would take some custom code to search for and display the records with a particular attribute set value.
[update] On second thought, the getExtResources snippet might do that for you.
Thank you Bob - I'll do some experimenting and report back.