How to write Localization string to get image from custom table

Pritam Gupta asked on November 19, 2016 13:48

I made one custom webpart here i m displaying the map. when i click on marker than the information of that particular location come in pop-up and all data come from custom table. i get all the details but i am not able to retrieve image.so can u please tell me that how can i solve this issue. The below code i written in Localization.

<div class="row addresloc">
            <div class="col-md-4 col-sm-4 map-img">
              <img style="width:100%;" src="location_map_img">

{0}

{1}

{2}

Directions

            </div>
            </div>
            <div class="row">
                <div class="col-md-5 col-sm-5 contact">
                <h4>Contact</h4>
                    <p>Monday-Friday {3}</p>
                    <p>Saturday: {3}</p>
                    <p>Sunday: Closed</p>
                </div>
                <div class="col-md-7 col-sm-7 features">
                    <h4>Features</h4>
                    <p>24H Drive Up & Lobby:{4}</p>
                    <p>Coin Machine:{5}</p>
                    <p>Notary Service:{6}</p>
                </div>
            </div>

Recent Answers


Pritam Gupta answered on November 19, 2016 13:52

Image Text

0 votesVote for this answer Mark as a Correct answer

Pritam Gupta answered on November 19, 2016 13:54

Image Text

It will be look like this image

Thanks

0 votesVote for this answer Mark as a Correct answer

Andy T answered on November 21, 2016 09:52

In C# you can use: ResHelper.GetString("localization_string_key")
In K# macro you can use: {$ localization_string_key $}

1 votesVote for this answer Mark as a Correct answer

Amit Srivastava answered on November 21, 2016 12:29 (last edited on November 21, 2016 12:30)

According to your requirement just use K# macro.

Like {$ Resource_string $}

and create resource string from Localization Application of kentico.

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.