1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Article Page - Set Cover Image

Discussion in 'AMS Closed Suggestions' started by Bob, Jun 4, 2020.

Tags:
  1. Bob

    Bob Developer Staff Member

    With XF 2.2 taking longer than expected, I am going to move some of the features I've implemented for AMS 2.2 into AMS 2.1.x (starting with AMS 2.1.13).

    As per title, you can now set one of the image attachments that have been uploaded to an Article Page as a Cover Image for an Article Page.

    The Article Page Cover Image is used mainly for Sharing Services (like Twitter, Facebook, etc). It will also be used for the thumbnail icon for things like Search results, Page Embeds etc. Its DESIGN is 99.9% for Social Sharing so that when you share a article page to twitter, it will use the PAGE Cover Image (if there is one) instead of the Article Cover Image. Fall back uses the Article Cover Image or in the case of no Article Cover Image, it will use a Category Image if one is available.

    Some misc screenshots... .

    The first one shows you that there will be a "Set cover image" link when there are any image attachments uploaded to a page and the viewing user has permission to set cover image (which is piggybacked off of the canEdit() permission check).

    Selection_999(148).png

    Setting a page cover image is the same as setting an article cover image. It will display any image attachments that have been uploaded to the Page.

    Selection_999(149).png

    When a page has a cover image, it will use that to display on various pages that display "page" content (like search results).

    Here are 3 search results. The first 2 results are article pages and they are displaying a page cover image. The 3rd result is the actual article, so you can see that the page cover images are different than the article's cover image (and are different from each other).

    Selection_999(147).png

    Here I am setting a different cover image for the page in the 1st result...

    Selection_999(150).png

    And if I do the search again, its now using the new cover image upload_2020-6-4_8-47-46.gif

    Selection_999(151).png
     
    McAtze likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.