Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADDING IMAGE TO EACH SLIDE IN FEATURE PROPERTY EDITOR #1

Open
aguiarconsulting opened this issue Dec 5, 2014 · 1 comment
Open

Comments

@aguiarconsulting
Copy link

First of all let me start off by saying that KalikoCMS is spectacular!

Just wondering how i can add the image property class or the file property class to custom property type editors like the one used in (featurepropertyeditor.ascx). I noticed that for textbox fields you just reference the fieldname.text value but how would I do that for the uploaded image or file?

Regards,

Juan

@fschultz
Copy link
Contributor

I've totally missed this. There seems to been something wrong with the issue notification setup :(

As of release 1.1.0 the easiest way to add an image or any other property type to your own custom property type is by using CompositeProperty. For a sample on how to implement ?CompositeProperty see: http://kaliko.com/blog/new-in-kaliko-cms-1.1.0/

To add an image property to the sample is done by just adding an ImageProperty and an attribute (just like on page types):

    [ImageProperty("Feature image", Width = 320, Height = 180)]
    public virtual ImageProperty FeatureImage { get; set; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants