Createing RelatedLinksEditor form Macro parameter "IMacroGuiRendering"
Hi
i have the following code thats a clone of the relatedLinksDataEditor
i need to get this working with a macro parameter, whats working now is adding items to the list like in related links data editor but when i reopen the macro in rte the values is loaded but then if i add a new item to the list my old entries dissapear...
also the page picker wont reset after i added one item to the list.
it outputs this in console: Uncaught ReferenceError: pagePickerPushCollection_clear is not defined /umbraco/plugins/tinymce3/insertMacro.aspx?editor=trueurl&umbPageId=1188&umbVersionId=80056b55-a7db-4242-a4d0-1b54e71dff81 (1):1
/// <summary>
/// Allows for the extraction of the link ID for the selected node of the
/// PagePicker (aka content picker) class for integration of the PagePicker
/// in another datatype.
/// This class replaces the database linkup that normally holds the data and
/// stores the data locally in memory and allows for easy access to the
/// data (after the IDataEditor has performed a save()).
/// This class was not designed for, but might work equally well for other datatypes.
/// </summary>
public class PagePickerDataExtractor : IData
{
private object _value;
public PagePickerDataExtractor() { }
public PagePickerDataExtractor(object o)
{
Value = o;
}
#region IData Members
public void Delete()
{
throw new NotImplementedException();
}
public void MakeNew(int PropertyId)
{
throw new NotImplementedException();
}
public int PropertyId
{
set { throw new NotImplementedException(); }
}
public System.Xml.XmlNode ToXMl(System.Xml.XmlDocument d)
{
throw new NotImplementedException();
}
public object Value
{
get
{
return _value;
}
set
{
_value = value;
}
}
#endregion
}
Createing RelatedLinksEditor form Macro parameter "IMacroGuiRendering"
Hi
i have the following code thats a clone of the relatedLinksDataEditor
i need to get this working with a macro parameter, whats working now is adding items to the list like in related links data editor but when i reopen the macro in rte the values is loaded but then if i add a new item to the list my old entries dissapear...
also the page picker wont reset after i added one item to the list.
it outputs this in console:
Uncaught ReferenceError: pagePickerPushCollection_clear is not defined /umbraco/plugins/tinymce3/insertMacro.aspx?editor=trueurl&umbPageId=1188&umbVersionId=80056b55-a7db-4242-a4d0-1b54e71dff81 (1):1
I have now discoveded that i have to make my own table in the database to make this work way?
well as i see properties that exist on a page is saved in the databse but not macors -.-
so when i try to save my related link data it do work when its in a rte but not in a macro container...
and the Value proeprty will get nulled when i do a edit on the type way is that?
way wont the IMacroRender... save Value...
Edit:
Anyone know way Value wont save on edit ?
I have now fixed this. the value field was used the wrong way... Update here: http://our.umbraco.org/forum/developers/extending-umbraco/36417-Custom-related-links-macro-parameter-type-not-loading-in-Macro-Container-but-Works-in-Ritch-Text-Editor
is working on a reply...