1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to 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.

Resolved Question about Title and meta

Discussion in 'AMS Support' started by Robert9, Nov 2, 2019.

  1. Robert9

    Robert9 Member AMS Showcase Sportsbook

    Is is a question, not a critique:

    Why you have a meta description, but no title?

    Sometimes my texts needs something like

    YOU ARE RED!

    as title.

    But for my master of clicks i would go down on my knees and write a sentence with 65 chars and the hope to make it in the best possible way for the right clicks.
     
  2. Bob

    Bob Developer Staff Member

    Personal Preference to follow Core XF Standards (Threads, Resources, Media etc), all of them use the TITLE of the content as the Meta Title (and OG: Title).

    This can be customized pretty easy tho (if you know what you are doing). You'd just need to add an additional field to the article table 'meta_title' to store the meta title, then you'd edit the article_view template and then add some code to set a var for $metaTitle (so that it would set either the meta title if one existed or set the actual title of the article (the code on how to do that is already there as I am doing that already for the description).

    I have no plans to add a 'meta_title', so its something you'll need to pursue on your own.
     
  3. Robert9

    Robert9 Member AMS Showcase Sportsbook

    Ok, so this is the standard. Then i should ask XF why it is like it is. :)
    Thank you.
     
  4. Robert9

    Robert9 Member AMS Showcase Sportsbook

    As usual the custom fields are there (left joined) at the detail pages, but not in the list views, is this correct?
    Then the meta could be done also with a custom field here.
     
  5. Bob

    Bob Developer Staff Member

    Custom Article Fields DATA is exposed everywhere the Article Entity is exposed, so yes, Custom Article Fields data is exposed with the Article Entity for each article on listing pages.

    As for the display of custom article fields on LISTING pages (AMS Index, AMS Category pages etc), that is OPTIONAL on a per custom field basis.

    On the Custom Article Field ADD and EDIT forms, there is a General option section. This section contains an option that allows you to display the custom field on LISTING pages (as circled below).

    Selection_919.png


    And here you can see on AMS Index (with List View Layout type), the Custom Article Field "Fav colors" is displayed for any articles that have that custom article field set.

    Selection_920.png

    Here you can see it on Grid View layout.....

    Selection_921.png


    Here you can see it on Article View layout...

    Selection_922.png
     
  6. Robert9

    Robert9 Member AMS Showcase Sportsbook

    Cool! You did it!
    Just for die nod stupid, is this a good idea on a larger site to leftjoin in thread view?

    But i will do a small add-on now, just to know that i can do it.
    If you want i will send it later as an homage to your grandness of being father of all this here.
    (And i have not searched for the used words in my sentence, if they don't exist, please fill them with love and light and happiness)
     
    Bob 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.