Need some help with some jamroom variables

Eddy
Eddy
@eddy
8 years ago
479 posts
I need some of the jamroom variables for a twitter card and Facebook o:g meta tags.

Posted this on a different forum this morning and didn't get any replies, please let me know if paid support can get me some help with this. I don't just want a priority reply stating that it can't be done, I need a solution, help here in the forums has been getting harder and harder to get, so please let me know.

Attached is a twitter card, please let me know if I can get some help with it, via paid or free forum support.

Thank you

Eddy
zip
twittercard.zip  •  272B


updated by @eddy: 04/17/16 10:37:16AM
derrickhand300
@derrickhand300
8 years ago
1,353 posts
Are you wanting to add this into the header of a page?
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="" />
<meta name="twitter:creator" content="" >
<meta name="twitter:domain" content="" >
<meta name="twitter:image" content="" />
<meta name="twitter:title" content="" />
<meta name="twitter:description" content="" />

I do it on a per page basis for FB using the following
<!-- Facebook OG -->
    <meta id="ogtitle" property="og:title" content=""/>  
    <meta id="ogdescription" property="og:description" content=""/>
    <meta id="ogimage" property="og:image" content=""/>
    <meta id="ogurl" property="og:url" content=""/>

To do this you will need to install the EDIT HEADER module...(
Eddy
Eddy
@eddy
8 years ago
479 posts
Thank you @derickhand300, but what would the jamroom variables be for the "image, title and decriptions" tags? I want the meta tags to fill in everything as each page is different.

I want this to promote artist/song/video pages, every artist page has a different image, description. title, just like every song page etc.

Eddy
updated by @eddy: 01/13/16 01:14:02PM
Eddy
Eddy
@eddy
8 years ago
479 posts
Here is an example code for the twitter image card.

	<meta content='summary' name='twitter:card'/>
        <meta content='@QumbrSay' name='twitter:site'/>
        <meta content='@smqumberrizvi' name='twitter:creator'/>
        <meta expr:content='data:blog.pageName' name='twitter:title'/>
        <meta expr:content='data:blog.metaDescription' name='twitter:description'/>
        <meta expr:content='data:post.firstImageUrl' name='twitter:image:src'/>
        <meta expr:content='data:blog.homepageUrl' name='twitter:domain'/>

I don't know if this will work or not, but will play around with it.

Eddy
derrickhand300
@derrickhand300
8 years ago
1,353 posts
You would need to add the debug to the template to gather the variables-I have noticed they change somewhat in each of the jamroom templates
Eddy
Eddy
@eddy
8 years ago
479 posts
Ok.

I'm not very good with this stuff, I have the "meta tag manager" module installed, is this what you meant when you said I need this installed to in order to add the twitter/facebook meta tags to a page? I am only going to add this to my main page, please let me know.

Thank you

Eddy
derrickhand300
@derrickhand300
8 years ago
1,353 posts
You can use the meta tag manager but there is another module somewhere-- ( maybe JR folks will chime in) that allows you to add meta tags to the head section of each page
If you are using site Builder go to the sitebuilder button and click it
SITE BUILDER>PAGE CONFIG>PAGE SETTINGS... then add the code in the page header area in the attached screenshot
Capture.JPG.jpg
Capture.JPG.jpg  •  55KB

Eddy
Eddy
@eddy
8 years ago
479 posts
No, I don't have site builder.

The only way to do this is with site builder?

Thanks again, really appreciate the help.
michael
@michael
8 years ago
7,715 posts
Eddy:
Thank you @derickhand300, but what would the jamroom variables be for the "image, title and decriptions" tags? I want the meta tags to fill in everything as each page is different.

I want this to promote artist/song/video pages, every artist page has a different image, description. title, just like every song page etc.

Eddy

Your best bet would be to use the ShareThis module's facebook template which is already outputting the variables needed to the headers for the item detail pages.

For pages that are not 'item detail' pages (item detail pages are the page on the profile where the file is shown by itself, the main page for that item), then its harder.

Because a page is built:
* include the header (which is where you want to add information)
* include the body (which is where you infomation is requested)
* include the row template (which is where you infomation is shown)
* include the footer

The information that you're thinking about putting out there for twitter isn't there yet.

@derrickhand300 has a custom module that allows you to write the headers manually for any page which works for these types of pages because the info is added in later.
Eddy
Eddy
@eddy
8 years ago
479 posts
Thank you @michael, and without that custom mod, it's not possible to add this code

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="" />
<meta name="twitter:creator" content="" >
<meta name="twitter:domain" content="" >
<meta name="twitter:image" content="" />
<meta name="twitter:title" content="" />
<meta name="twitter:description" content="" />

to a single page?

I wanted to add this to my index and signup pages only.

Eddy
updated by @eddy: 01/13/16 05:39:59PM
derrickhand300
@derrickhand300
8 years ago
1,353 posts
@michael
Sorry- I thought that module had been released a few months back
I UNDERSTAND in a big way how important it is to have content from our sites that's shared to social media to display properly on THAT social media page AND for it to display PROPERLY when someone shares it from that social media page...wish I could be more help because its terribly frustrating when you create great content- then use social media as the primary means of driving traffic to your site- then find out when you shared the content its not displayed in a way that will create traffic back to my site.
updated by @derrickhand300: 01/15/16 08:06:21AM
michael
@michael
8 years ago
7,715 posts
The share buttons are setup to only show on the details page. The details page is setup to show the meta info, so there should be no problem from any of those pages. When you customize the site to show the share buttons from other pages the next step in the customization is to add the share meta stuff if you want that too.

Unless someone has done it and has the code to share and is willing to share it, then the request for help becomes a request to do it, then tell me how its done.
michael
@michael
8 years ago
7,715 posts
This code will work in the skins meta.tpl page just above the closure of the head tag:

    <!-- its the signup page -->
{if $_post._uri == '/user/signup'}
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:site" content="" />
    <meta name="twitter:creator" content="" >
    <meta name="twitter:domain" content="" >
    <meta name="twitter:image" content="" />
    <meta name="twitter:title" content="" />
    <meta name="twitter:description" content="" />
{/if}

    <!-- its the index page -->
{if isset($current_url) && $current_url == $_conf.jrCore_base_url}
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:site" content="" />
    <meta name="twitter:creator" content="" >
    <meta name="twitter:domain" content="" >
    <meta name="twitter:image" content="" />
    <meta name="twitter:title" content="" />
    <meta name="twitter:description" content="" />
{/if}
    
derrickhand300
@derrickhand300
8 years ago
1,353 posts
NICE!

Tags