andante

you need to version the relationship

rista

By versioning relationship you mean like

  1. private static $many_many = [
  2. 'Categories' => [
  3. 'through' => 'ProductCategory',
  4. 'from' => 'Product',
  5. 'to' => 'Category',
  6. ],
  7. ];
rista

but what about has_one for example? Imagine I have a product that have one category. At the time I created a product category was football for example. After a year I decide I need different football categories not only one, so indoor football, outdoor footbal, indoor futsal, outdoor futsal etc...

rista

I they rename category football to indoor football for example

rista

what will I get if I call $product->Category() as category name, football or indoor football?

rista

I'm pretty sure it will be indoor football while I still want to see just football.

rista

Hello, I want to add versioning to my project. It have a lot of objects and lots of relations between them (has_one, has_many, many_many and belogns_many_many). I'm using helper methods from SS to get all those relations as well. Problem that I have now is that using those relation methods I will always (or not) get the latest verison of an object. I want to mention that I won't use staging but only versioning. So how can I, calling a relation method, get version of an object that was used when saving it but not the latest one? (it's hard to explain...)

LiamC

How to I stop urls having /home all the time? 🙂

jkersu

Only 1 way to find out, Ill give the suggestions another go. Thanks!

kinglozzer
  1. (function($) {
  2. var $mirrorField = $('.whatever');
  3. $mirrorField.on('change', function() {
  4. $(this).closest('.display-logic-master').entwine('ss').notify();
  5. });
  6. })(jQuery);
_might_ work
kinglozzer

You could try creating a separate JS file for just your display-logic stuff, that doesn’t run through your compilation process/import jQuery and instead assumes window.jQuery is available

kinglozzer

If you look in your network tab, it’s probably loading jQuery as well as the jQuery that’s bundled into your compiled JS

kinglozzer

Yeah display-logic on the frontend is problematic to say the least…

nightjarnz

I'm sure there are more recent and modern libraries that you could use with npm :)

nightjarnz

this display logic module is designed to work in the CMS.