This is where the button should appear
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?
For reference this is where the button should appear
Narrator: this is not pretty simple 😞
I mean, it used to be in CMS3
@Dribbles Did you have a look at this Question on Stack Overflow?
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
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
@Dribbles Glad to hear that you got it working
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
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
- 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
- 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
Darn ☹️ Might just have to setup a method of editing the sort number and updating the following items
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?
When this process finishes I'll back everything up and try it again after remapping to get the response
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
I tried the remapping approach earlier, but doing so prevents the migration from happening at all unfortunately
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