Dribbles

This is where the button should appear

Dribbles

Think I'm stuck on something pretty simple. I setup a custom CMS Action to duplicate an Event page, which works fine. However, this action is not present when editing this page via Model Admin. Anyone know how to enable it there?

Dribbles

For reference this is where the button should appear

null

Narrator: this is not pretty simple 😞

Admonish

@Dribbles Did you have a look at this Question on Stack Overflow?

Admonish

https://stackoverflow.com/questions/54251162/silverstripe-4-0-4-getcmsactions-not-working-as-expected-on-dataobject

Show 1 attachment(s)
Stack Overflow  
Silverstripe 4.0.4 - getCMSActions not working as expected on dataobject

I am trying to add a copy dataobject button next to the save and delete button on a dataobject but "getCMSActions" does not seem to work. I have followed the tutorials on the following pages: ht...

Hide attachment content
Dribbles

Thanks @Admonish, a friend pointed me towards the same implementation in the above example as well. The button is rendering now, which is great! Thanks for the suggestion


Show less replies
Dribbles

ResourcesPage is a custom page that hasn't been namespaced as of yet, currently upgrading from SS3 to SS4. That option is definitely present in the ClassName enum

Dribbles

Hey guys, bit of a weird issue I'm trying to sort out. I have a ResourcesPage with a Many Many relation to a FileCategory, but the query to retrieve these categories is different from every other ManyMany I have

  1. SELECT DISTINCT CASE WHEN "SiteTree"."ClassName" IN ('ResourcesPage') THEN "ResourcesPage_FileCategories"."Sort" WHEN "FileCategory"."ClassName" IN ('FileCategory') THEN "FileCategory"."Sort" ELSE NULL END AS "Sort", "FileCategory"."ClassName", "FileCategory"."LastEdited", "FileCategory"."Created", "FileCategory"."Title", "FileCategory"."URLSegment", "FileCategory"."ID",

The above is what $this->FileCategories->sql() returns. The SiteTree.Classname at the start breaks it immediately. Any ideas as to why it performs like that, and not like

  1. SELECT DISTINCT "Page_Slides"."Sort", "Slide"."ClassName", "Slide"."LastEdited", "Slide"."Created", "Slide"."Title", "Slide"."Content", "Slide"."LinkID", "Slide"."ImageID", "Slide"."ID",

Feel like I've missed something obvious, but I can't quite place it

Dribbles

Darn ☹️ Might just have to setup a method of editing the sort number and updating the following items

Dribbles

Got a question regarding GridFieldOrderableRows from Symbiotes GridFieldExtensions module. The current gridfield has a limit of 10 items per page, with 30 items total. Is it possible to move items between each page of the gridfield without manually editing the sort number?

Dribbles

When this process finishes I'll back everything up and try it again after remapping to get the response

Dribbles

I'm in the middle of it now so I can't recheck the messages just yet, but it would state that no files required upgrading and then end

Dribbles

I tried the remapping approach earlier, but doing so prevents the migration from happening at all unfortunately

Dribbles

Hey all, been migrating a number of sites from SS3 to 4 over the past couple weeks. Just started a new one, this time in 4.4.1, and the file migration task has thrown hundreds of error messages. File assets/Uploads/filename.png could not be migrated due to an error. This problem likely existed before the migration began. Error: Object is of class 'File' which doesn't exist - you need to change the ClassName before you can write it Changing all instances of File to the new class name before the migration just prevents the process entirely, so I'm not sure what I'm missing