Images

Posted by Community Admin on 03-Aug-2018 11:02

Images

All Replies

Posted by Community Admin on 17-Jan-2011 00:00
Hi,

I'm trying to set a background image to my masterpage.
The code is as followed:

</fieldset>
    </form>
    <img alt="EGZ" src="App_Data/Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg"
        class="background" />
</body>
</html>

I'm not able to get a background image? Where should I store images? Maybe not in the App_Data?

Greetings,
Daniel
Posted by Community Admin on 17-Jan-2011 00:00
Hello Daniel,

You can refer your images in the stylesheet. Create a stylesheet in Global folder ( this will register it automatically); Then create an Image folder on the same level as Global folder.

Regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Posted by Community Admin on 17-Jan-2011 00:00
Okay. I worked with an ASP control:

</fieldset>
    <asp:Image ID="background" CssClass="background" runat="server" ImageUrl="~/Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg" />
    </form>
</body>
</html>

But if I want a default <IMG> tag outside the <FORM> tag, what would be the URL? (since I can't use the '~' then...)

Regards,
Daniel
Posted by Community Admin on 17-Jan-2011 00:00
Hello Daniel,

You should try with /Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg or Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg. If you are running in the context of a Sitefinity website the link should be resolved.

All the best,
Radoslav Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
This thread is closed