c# - Ektron Library images not displaying; filepath not found -



c# - Ektron Library images not displaying; filepath not found -

i have bunch of images stored in library in ektron. i'm trying display these images on 1 of webpages in slideshow. here's have:

public partial class webassets_usercontrols_uxslideshow : system.web.ui.usercontrol { public list<string> images { get; set; } protected void page_load(object sender, eventargs e) { list<librarydata> libraryimagelist = getlibrarydatalist(1); var imagelist = (from im in libraryimagelist im.foldername == "alumni" select im).tolist(); var imageurls = imagelist.select(image => image.filename).tolist(); slideshowrepeater.datasource = imageurls; slideshowrepeater.databind(); } private list<librarydata> getlibrarydatalist(int librarytypeid) { librarymanager librarymanager = new librarymanager(apiaccessmode.loggedinuser); librarycriteria criteria = new librarycriteria(libraryproperty.id, ekenumeration.orderbydirection.descending); criteria.addfilter(libraryproperty.typeid, criteriafilteroperator.equalto, librarytypeid); // criteria.addfilter(librarydata.foldername, criteriafilteroperator.equalto, libraryfoldername); list<librarydata> librarydatalist = librarymanager.getlist(criteria); homecoming librarydatalist; } }

and html...

<div id="slideshowimages" class="flexslider"> <ul class="slides"> <asp:repeater id="slideshowrepeater" runat="server"> <itemtemplate> <li> <img alt="alumni events" src="<%# container.dataitem %>" height="240" width="632" /> </li> </itemtemplate> </asp:repeater> </ul> </div>

the image urls i'm pulling aren't working though. paths aren't found. paths images looks this:

/uploadedimages/alumni/001.jpg

i figure reason they're not displaying because don't have uploadedimages folder in project, rather folder located in ektron, don't know alter create images display.

ektron assumes images local default.

you'll either have modify path absolute, provided ektron instance public, e.g. http://www.example.com/uploadedimages/alumni/001.jpg

or:

if ektron install not public, in 3-tier deployment, have 3 options:

have application create webrequest deed proxy serve files ektron installation client. move files ektron application using tool robocopy or xcopy. promote files ektron server project via ektron extension (aka strategy). in documentation, expand , search within page librarystrategy. use network share or virtual directory within iis allow application behave if files local project though still hosted within ektron.

c# image path folder ektron

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -