-
1. Re: Images in usermanaged web apps
Liam Dilley Jul 2, 2012 12:40 PM (in response to M. Henriksen)wrap it in a div with class. Create an image. Set the div with width and height and set that as the background image. Do not do the _value on the image tag but remove the img html and just have the tag in the div with _nolink.
-
2. Re: Images in usermanaged web apps
M. Henriksen Jul 2, 2012 4:20 PM (in response to Liam Dilley)But then what if the picture the user are uploding, don't have the same size... Then the backgroundimage will show?
-
3. Re: Images in usermanaged web apps
M. Henriksen Jul 3, 2012 3:19 AM (in response to M. Henriksen)Surely I can't be the only one trying to do this...?? Using a backgrount image in a div og a table doesn't work, unless the image beeing uploded by a user is exactly the same size.
-
4. Re: Images in usermanaged web apps
Liam Dilley Jul 3, 2012 3:38 AM (in response to M. Henriksen)If they are of different size then you make the div with no fixed width and the background image you set be something that sits in the middle of it. Say if it was a light grey background with a body shape of a person if a profile image was not found. The background css would be along the lines of background:transparent url(backgroumdimagehere) 50% 50% no-repeat;
Not hard, very easy Lots of options.
-
-
6. Re: Images in usermanaged web apps
Liam Dilley Jul 3, 2012 5:31 AM (in response to M. Henriksen)that is because your doing the image manually and have no source and thus that or the alt tag depending on the browser being used. That is why if you do as I mentioned with the removal of the image html and use the tag with _nolink instead of _value that will render the BC html, when empty it wont render any image html at all and wont give you that.
-
-
8. Re: Images in usermanaged web apps
Liam Dilley Jul 3, 2012 6:23 AM (in response to M. Henriksen)That tag us a custom image field yes?
_nolink removes the link around it and should render.
-
9. Re: Images in usermanaged web apps
Liam Dilley Jul 3, 2012 6:23 AM (in response to Liam Dilley)Oh wait, this in the detail view? Just do the tag then.
-
10. Re: Images in usermanaged web apps
M. Henriksen Jul 4, 2012 2:34 AM (in response to Liam Dilley)Yes, this is a custom image tag - field name = bilde, file type = image, tag {tag_bilde}.
And yes, it's in the detail view.
I've deleted the _nolink. But the tag still shows like before - only now just {tag_bilde}.<div class="medl_bilde" id="image-erstatter">{tag_bilde}</div>
And - when an image is uploaded by a user, it doesn't show.
-
11. Re: Images in usermanaged web apps
mario_gudelj Jul 4, 2012 5:26 PM (in response to M. Henriksen)Please post the site URL and the web app name and I'll have a look at this for you.
Cheers,
-mario
-
12. Re: Images in usermanaged web apps
Liam Dilley Jul 4, 2012 7:08 PM (in response to M. Henriksen)You correctly specified on the web app that users can upload files and you have chosen the the folder etc?
-
13. Re: Images in usermanaged web apps
M. Henriksen Jul 5, 2012 2:47 AM (in response to Liam Dilley)Yes.
I've checked it with the other code, and it worked just fine.
-
14. Re: Images in usermanaged web apps
M. Henriksen Jul 5, 2012 3:14 AM (in response to mario_gudelj)http://nkt-ny.businesscatalyst.com/medlemmer.htm
This is still a test site!If you chech the 3 testmembers that I've posted on this page, you'll find 3 different results for two different codes.
-
15. Re: Images in usermanaged web apps
mario_gudelj Jul 5, 2012 6:16 PM (in response to M. Henriksen)The reason that tag isn't rendering is because you have {tag_bilde} and {tag_bilde_value} in the same layout. If you use one of those the other will not render.
Cheers,
-mario
-
16. Re: Images in usermanaged web apps
M. Henriksen Jul 6, 2012 2:41 AM (in response to mario_gudelj)This is my css code:
#image-erstatter:
{ padding-left: 0px;
background-image: url(/images/medlemsopplastinger/person.png);
background-repeat: no-repeat;
height: 140px;
width: 100px;
background-position: center center;
background:transparent url;But when uploaded the image doesn't extends the div size.
http://www.nettverkskreditt.net/medlems-detaljer/mabel-henriksen-1
When I used the first code it took the right size.
<img alt= "" src="{tag_bilde_value}?Action=thumbnail&;With=100&Height=140" />
-
17. Re: Images in usermanaged web apps
mario_gudelj Jul 8, 2012 7:17 AM (in response to M. Henriksen) -
18. Re: Images in usermanaged web apps
M. Henriksen Jul 8, 2012 7:36 AM (in response to mario_gudelj)I’ve tried so many ways that doesn’t work, so now I’m totally confused!
But I’m still trying, and searching BCguru and Kiyuco for examples.
BCguru had a video-tutorial (http://bcgurus.com/tutorials/let-users-change-the-website-design-with-web-apps) , that addressed this issue, but I’m not able to include / transforme it in to my web-apps.
I guess I just don’t know enough about markup language.
I feel like giving up, but … well, I can’t do that.
This webpage are supposed to be published tomorrow!!
I have some minor layout-issues to take care of, this image thing, and some other web-apps things…
In sitewide search, is it just the web app item’s name that are included?
Fra: mario_gudelj forums@adobe.com
Sendt: 8. juli 2012 16:17
Til: M. Henriksen
Emne: Images in usermanaged web apps
Re: Images in usermanaged web apps
created by mario_gudelj <http://forums.adobe.com/people/mario_gudelj> in Business Catalyst - View the full discussion <http://forums.adobe.com/message/4544724#4544724



