Copied to clipboard

Flag this post as spam?

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


  • Prachi Vyas 10 posts 110 karma points
    May 09, 2019 @ 11:22
    Prachi Vyas
    0

    How to display data in front end

    Hello,

    I have created fields in document type page and insert data in my content but please help me out for display those data in my front end website. enter image description here

  • Marc-André 63 posts 279 karma points
    May 09, 2019 @ 11:52
    Marc-André
    0

    Hello,

    It depends of your data type. Which one is it?

  • Prachi Vyas 10 posts 110 karma points
    May 09, 2019 @ 11:58
    Prachi Vyas
    0

    Thank You for your answer, But I am stuck in display list of data in my card. Please help me for its looping

  • Marc-André 63 posts 279 karma points
    May 09, 2019 @ 12:00
    Marc-André
    0

    If your field is a "Repeatable textstring", try this :

    @{
        if (Model.HasValue("FeaturedVehucles")){
            <ul>
                @foreach(var item in Model.FeaturedVehucles) {
                    <li>@item</li>
                }
            </ul>
        }
    }
    
  • Prachi Vyas 10 posts 110 karma points
    May 09, 2019 @ 12:49
    Prachi Vyas
    0

    Hi but In my project FeaturedVehucles is not created. How would I create it please help me.

  • Marc-André 63 posts 279 karma points
    May 09, 2019 @ 13:00
    Marc-André
    0

    I don't understand your needs very well.

    You got a document type with a field of type "repeatable textstring" named "FeaturedVehicles" ?

  • Prachi Vyas 10 posts 110 karma points
    May 10, 2019 @ 04:21
    Prachi Vyas
    0

    Hello,

    I want to create multiple cards with using List of data for that I need to bind my data in that one card using loop so please help me that how can I apply model recursively.

Please Sign in or register to post replies

Write your reply to:

Draft