Add image field or featured image to CGBlog?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am

Add image field or featured image to CGBlog?

Post by pwg »

Hi, and thanks for any help.

I've installed and in a very basic sense, set up CGBlog on a site.

However the client reposts most articles URL's to their Facebook site, and wants FB to automatically grab an image file for the blog article.

How would I do this?

Even an author avatar would be good.

I tried adding a content block to the blog article page, but soon became very lost.

Thanks again for any help.



Cms Version: 1.11.6

Installed Modules:

CMSMailer: 5.2.1
FileManager: 1.4.3
MenuManager: 1.8.5
ModuleManager: 1.5.5
News: 2.12.12
CGSimpleSmarty: 1.6.1
Search: 1.7.8
ThemeManager: 1.1.8
TinyMCE: 2.9.12
FormBuilder: 0.7.3
simpletagging: 0.2.1
RSS: 1.1
CGBlog: 1.9.12
Comments: 1.9.2
Album: 0.9.3
CGExtensions: 1.32.6
CGFeedMaker: 1.0.17
Play: 1.0.3
DewPlayer: 0.2.1
avplayer: 1.0
FLVPlayer: 1.0.3
Twitter: 0.0.6
Backup: 0.5
CMSPrinting: 1.0.4
MicroTiny: 1.2.5
MetaMax: 1.9.9.1
SEOTools2: 1.2
CGSmartImage: 1.10.9

Config Information:

php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 50000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.3.17
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 64M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 50M
upload_max_filesize: 50M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.63
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Add image field or featured image to CGBlog?

Post by Gregor »

In the Dutch part of the forum there are quite some posts to be found regarding this topic. After a long struggle I finally decided to use an rss-feed and send the feed to RSS Graffity (Facebook App). This works :)

Rolf has written a very good article on how to create an rss feed using cgblog.

If you search the forum you'll sure find a lot of information to help you out.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Add image field or featured image to CGBlog?

Post by Rolf »

Try something like

Code: Select all

<meta property="og:title" content="Your title" />
<meta property="og:image" content="http://www.domain.com/uploads/images/some-image.jpg" />

Code: Select all

<meta property="og:title" content="{$your_title_string}" />
<meta property="og:image" content="{$your_image_string}" />
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am

Re: Add image field or featured image to CGBlog?

Post by pwg »

Many thanks for the help.

Rolf, I added the code you supplied to my meta tag fields, but am I supposed to do anything else with it?

I'm at a bit of a loss as to how to make it work

Apologies if this is a very stupid question. I'm full of them...

Cheers,

Paul
Post Reply

Return to “Modules/Add-Ons”