Calendar Page %edit_link% link using what Simple Edit Layout?


(Nic Hubbard) #1

I like the idea behind the Calendar Page's %edit_link% keyword as it won't show unless the user has permissions. Simple without and added work for checking permissions.

 

But, I can't figure out what Simple Edit Layout it is using, or if any. It doesn't seem to be using one from the Layouts screen or from the Layout Manager. Please tell me it isn't using a hard coded layout...

 

v5.0.1.1


(Bart Banda) #2

Yea I can replicate in 5.0.4.1, looks like it's not picking up any of the custom layouts, but it is when you go to _edit on it as expected. I'll try and get one of the devs to check out if it's a bug or intended functionality.


(Edison Wang) #3

I can confirm currently that keyword would print a special link that would lead user to a "event edit" view of the calendar page, which basically just prints out the original details screen of the event asset in the calendar page. You can not customise the editing interface, it's just the same editing interface in backend.

 

I think it's a legacy feature and it isn't ideal anymore.  we have Edit+ and customisable simple edit interface now, it's much more flexible to use /_edit link of the asset instead, so it should just pop up a new window with the /_edit url of the event asset.

We can either introduce a new keyword which prints a /_edit link of the event (which is safer for backwards compatibility), or we can just change the code for that same keyword to print new link.

 

I'm leaning towards latter, i think it should be fine we just make that change for Matrix 5.1.


(Nic Hubbard) #4

Thanks, good to know. Was just trying to use this option as a work around for another bug that I posted here about Layouts.


(Bart Banda) #5

Opened up a roadmap idea at https://squizmap.squiz.net/matrix/5738