Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    May 03, 2013 @ 14:51
    Fuji Kusaka
    0

    Multiple TextString with Media Section

    Hi Guys,

    I have a multilingual Website where i would like to add a Multiple Text String to the upload file in the media section.

    So either the nodeName of the upload file is being displayed or the Text String entered. 

    Having set up the Multiple Text String to a maximum of 2 i would like to display the first value in a raw and the other one in another raw depending on the language set up.

    Can someone explain  how do i get the first value of the multiple text string ?

    This aint working for me  

    @fileName.value[0].InnerText 
    @fileName.value[1].InnerText


    @foreach(dynamic files in pressFldr){
    if(!String.IsNullOrEmpty(@files.umbracoFile)){
    var bytes = Convert.ToInt64(@files.umbracoBytes);

    var x =((Math.Round(Convert.ToDecimal(@bytes)/1024,1)).ToString() + "KB");
    var y = ((Math.Round(Convert.ToDecimal(@bytes)/1048576,1)).ToString() + "MB");

    var fileName = @files.fileTitle;

    if(files.HasValue("fileTitle")){
    @fileName
    }

Please Sign in or register to post replies

Write your reply to:

Draft