I've created my own custom experience button
to edit some responsive images for a logo in my header and I added the button to the rendering
. It works as expected and I am not having any problems with it.
However, I would like to move the button to an edit frame using Glass Mapper's BeginEditFrame
so that the content manager can just click on some placeholder text to access the custom button.
I'm trying to use the edit frame with this signature - BeginEditFrame
(string buttons, string dataSource, string title).
My code is as follows:
using (BeginEditFrame("{CDA69877-442C-47CC-87D3-E1D2BF61E5B8}", "{6F455DBC-29FE-40FC-9803-0A738677EC04}", "Logo Images"))
{
<p>Click here to edit the logo.</p>
}
The first Guid represents the ID of my custom button. The second Guid represents the datasource item containing my logo images.
I also tried using the filepaths instead of Guids but got the same results.
In case it helps, my button is found at /sitecore/content/Applications/WebEdit/Custom Experience Buttons/Responsive Images
And my datasource item is at /sitecore/content/siteroot/Data/Headers/Header
I don't get any errors with this code, but the edit frame that pops up does not have anything useful. I've pasted it below.
Am I correct in using my custom button
filepath/Guid
for the buttons parameter? (Edit: I just figured this part out. I needed to use thefilepath/Guid
for the folder containing the buttons and not the filepath/Guid for the button item itself.)And is the
datasource
item that holds the logos in question the datasource parameter that the method signature is asking for?