ehodul / universities-colleges-schools

0 stars 0 forks source link

Image Field on Article Page & Alt Image Descriptor, H1 Tag Home Page #156

Open ucem opened 7 years ago

ucem commented 7 years ago
  1. I added a new field to the Article Page called "Article Header Image". Was using a Media field before but photos were often distorted. It worked on the sandbox site, (evolve/article/terry-fox-humanitarian-award-program) but I can't get the images to show on the live site. (article/terry-fox-humanitarian-award-program).
  2. Also wondered where would I add the "alternate text" for images. We had it on the old site.
    https://www.drupal.org/documentation/modules/image
  3. We used a tool (cannot remember which one) that showed we do not have a H1 Tag on the home page. How can we add one, although I don't yet know what we want it to say.

thanks

ehodul commented 7 years ago
  1. I added the "Article Header Image" to the "Full Content" display (in manage display), it seems to be displayed OK now.
  2. I change the Widget to Image rather than Media File Selector, the Image widget has an option to enable Alt attribute.
  3. I will look into adding H1 tag on the home page.
ehodul commented 7 years ago

For H1 tag we might do something simple like this: https://www.drupal.org/node/794688

ucem commented 7 years ago

Thanks for completing 1 & 2 so quickly. Will get back to you on H1 tag once we've determined what it should be.

ucem commented 7 years ago

Related to #1, using Header Image, the image does not show up in what I assume is the article view. Tried to research it myself, couldn't figure it out.

screen shot 2016-10-28 at 12 59 10 pm

4 Also noticed that I can no longer go to upload media, I come up with a blank white screen when I select Library, where as before, I didn't get that.

screen shot 2016-10-28 at 1 07 38 pm

screen shot 2016-10-28 at 1 09 37 pm

ehodul commented 7 years ago

In that view, the media field is used (the one at the very bottom of the article content when editing). I can change it to the header image if needed. I am confused now why you created the Article Header Image field. Am I missing something?

I am not sure why is the 'Library' not displayed. I will investigate.

On Fri, Oct 28, 2016 at 1:10 PM, ucem notifications@github.com wrote:

Related to #1 https://github.com/ehodul/universities-colleges-schools/issues/1, using Header Image, the image does not show up in what I assume is the article view. Tried to research it myself, couldn't figure it out.

[image: screen shot 2016-10-28 at 12 59 10 pm] https://cloud.githubusercontent.com/assets/2644526/19820483/5d5c3532-9d0e-11e6-9017-a6011de1f8e9.png

  1. Also noticed that I can no longer go to upload media, I come up with a blank white screen when I select Library, where as before, I didn't get that. [image: screen shot 2016-10-28 at 1 07 38 pm] https://cloud.githubusercontent.com/assets/2644526/19820766/ab9bbd48-9d0f-11e6-8aa5-b12588e00d9a.png

[image: screen shot 2016-10-28 at 1 09 37 pm] https://cloud.githubusercontent.com/assets/2644526/19820795/d0fbf260-9d0f-11e6-8237-c7d8d9b3a7f9.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ehodul/universities-colleges-schools/issues/156#issuecomment-257016478, or mute the thread https://github.com/notifications/unsubscribe-auth/AAiEYm91wCuDp2xU_q0GXJUEiwoitYSCks5q4laegaJpZM4KitRO .

ucem commented 7 years ago

I only created it because some images in the Media Field were very pixelized. I'd rather it remain Media field and remove the "header image" for articles, but I would need to know what size of image I would need to use going forward.

ehodul commented 7 years ago

This size would work: 870x350.

ucem commented 7 years ago

OK Thanks. I will hide the header image from articles. Would it be ok to delete it?

ehodul commented 7 years ago

If we are not going to use it, it would be good to delete it.

ucem commented 7 years ago

Any ideas about why I can't see the library when trying to upload images already in Media database? I checked the drupal help, but media module shows its up-to-date. Also tried clearing cache, but it didn't work.
https://www.drupal.org/node/1889422

Found another site that said it could be a php memory issue??? vhttp://stackoverflow.com/questions/16396512/cant-access-media-library

ehodul commented 7 years ago

Fixed. This was the issue: http://drupal.stackexchange.com/questions/120054/media-7-x-1-library-tab-empty

ucem commented 7 years ago

Thanks again

ucem commented 7 years ago

I think I messed up the image sizing for articles. No matter what image I upload, it doesn't display correctly. (article node 1601, currently not published). I'm also still confused as to what display uses which image size. When viewing the article is it using "default" or "full content" and what should the best image size be used? screen shot 2017-07-12 at 10 42 00 am

ehodul commented 7 years ago

When viewing full Article, it should be using Full content display settings. In this case, the image preset used is 'Blog Large Image' (870px x 353px).