Ausgabe URL Artikel-Detail-Bild und in header injezieren

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Sun 17. Mar 2013, 08:45

Wie kann ich die URL des Artikel-Detail-Bildes auslesen (wenn vorhanden) und im Head als Facebook Open Graph Tag injezieren?

Code: Select all

[DETAILBILD-URL-ABSOLUT]
<meta property="og:image" content="{DETAILBILD-URL-ABSOLUT}"/>
[/DETAILBILD-URL-ABSOLUT]
Ich kenne nur den Tag {IMAGE}, welcher aber den gesammten <img> code ausgibt.
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org


User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Sun 17. Mar 2013, 16:06

Danke Oliver. Ich werde das heute oder morgen ausprobieren.
Koennte man nicht das Open-Graph-Skript von flip-flop (http://forum.phpwcms.org/viewtopic.php? ... =+facebook) mit deinem kombinieren und eine phpwcms Core-Loesung daraus machen. Eine, die gleich alle Open Graph Tags abdeckt. Anstatt FE-Renderscripts zusammen zu wuerfeln.

Artikel-Bild fuer og:image
<meta property="og:image" content="ARTIKEL-BILD"/>

Artikel-URL fuer og:url
<meta property="og:url" content="ARTIKEL-URL"/>

Template/Layout-Titel fuer og:site_name
<meta property="og:site_name" content="TEMPLATE/LAYOUT-TITEL"/>

Artikel-Teaser fuer og:description
<meta property="og:description" content="TEASER"/>
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org

User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Sun 17. Mar 2013, 16:23

Bekomme Fehler:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xxxxx/domains/xxxxx.com/public_html/include/inc_front/content.func.inc.php on line 307
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org

User avatar
Oliver Georgi
Site Admin
Posts: 9563
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by Oliver Georgi » Sun 17. Mar 2013, 18:57

Du hast zwar die Variable $template_default['classes'] gesetzt, ist aber kein valides Array bei Dir. Prüfe mal, was bei Dir in der conf.template_default.inc.php steht.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон

User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Sun 17. Mar 2013, 18:59

Code: Select all

<?php
// predefine the default article/content values like space holder images, classes and so on

// simple navigation table defaults
$template_default['nav_table_simple_struct']['width']		= '100%';
$template_default['nav_table_simple_struct']['border']		= '0';
$template_default['nav_table_simple_struct']['cellpadding']	= '0';
$template_default['nav_table_simple_struct']['cellspacing']	= '0';

// row based navigation
$template_default['nav_row']['before']						= '';
$template_default['nav_row']['after']						= '';
$template_default['nav_row']['between']						= ' | ';
$template_default['nav_row']['link_before']					= '';
$template_default['nav_row']['link_after']					= '';
$template_default['nav_row']['link_before_active']			= '<span style="text-decoration:none;font-weight:bold;">';
$template_default['nav_row']['link_after_active']			= '</span>';
$template_default['nav_row']['link_direct_before']			= '';
$template_default['nav_row']['link_direct_after']			= '';
$template_default['nav_row']['link_direct_before_active']	= '';
$template_default['nav_row']['link_direct_after_active']	= '';

// navigation table defaults
$template_default['nav_table_struct']['table_border']			= '0';
$template_default['nav_table_struct']['table_width']			= '100%';
$template_default['nav_table_struct']['table_height']			= '';
$template_default['nav_table_struct']['table_bgcolor']			= '';
$template_default['nav_table_struct']['table_class']			= '';
$template_default['nav_table_struct']['table_cspace']			= '0';
$template_default['nav_table_struct']['table_cpad']				= '0';
//
$template_default['nav_table_struct']['space_width']			= 10;
$template_default['nav_table_struct']['space_left']				= 7;
$template_default['nav_table_struct']['space_right']			= 10;
$template_default['nav_table_struct']['space_celltop']			= 2;
$template_default['nav_table_struct']['space_cellbottom']		= 2;
//
$template_default['nav_table_struct']['cell_width']				= '100%';
$template_default['nav_table_struct']['cell_height']			= '15';
$template_default['nav_table_struct']['cell_class']				= 'nav_table';
//
$template_default['nav_table_struct']['cell_active_width']		= '100%';
$template_default['nav_table_struct']['cell_active_height']		= '15';
$template_default['nav_table_struct']['cell_active_class']		= 'nav_table_active';
//
$template_default['nav_table_struct']['js_over_effects']		= 1;
$template_default['nav_table_struct']['all_nodes_active']		= 1;
//	
$template_default['nav_table_struct']['linkimage_norm']			= '<img src="img/article/nav_link_0.gif" alt="" border="0" />';
$template_default['nav_table_struct']['linkimage_over']			= '<img src="img/article/nav_link_1.gif" alt="" border="0" />';
$template_default['nav_table_struct']['linkimage_active']		= '<img src="img/article/nav_link_2.gif" alt="" border="0" />';
//
$template_default['nav_table_struct']['link_before']			= '';
$template_default['nav_table_struct']['link_after']				= '';
$template_default['nav_table_struct']['link_active_before']		= '';
$template_default['nav_table_struct']['link_active_after']		= '';
//
$template_default['nav_table_struct']['row_norm_bgcolor']		= '#D9DEE3';
$template_default['nav_table_struct']['row_norm_class']			= '';
//	
$template_default['nav_table_struct']['row_over_bgcolor']		= '#D3ED7D'; //#AAB7C1
$template_default['nav_table_struct']['row_active_bgcolor']		= '#FFFFFF';
$template_default['nav_table_struct']['row_active_class']		= '';
//
$template_default['nav_table_struct']['row_space']				= 1;
$template_default['nav_table_struct']['row_space_bgcolor']		= '#4A5966';

/*
 * sublevel layout
 * ===============
 * setup unique style for each node/level
 * ['array_struct'][1] => the number represents level ID
 * so root level is [0] and so on...  
 
$template_default['nav_table_struct']['array_struct'][1]['linkimage_norm']		= '<img src="img/article/nav_link_0.gif" alt="" border="0" />';
$template_default['nav_table_struct']['array_struct'][1]['linkimage_over']		= '<img src="img/article/nav_link_1.gif" alt="" border="0" />';
$template_default['nav_table_struct']['array_struct'][1]['linkimage_active']	= '<img src="img/article/nav_link_2.gif" alt="" border="0" />';

$template_default['nav_table_struct']['array_struct'][1]['link_before']			= '';
$template_default['nav_table_struct']['array_struct'][1]['link_after']			= '';
$template_default['nav_table_struct']['array_struct'][1]['link_active_before']	= '';
$template_default['nav_table_struct']['array_struct'][1]['link_active_after']	= '';

$template_default['nav_table_struct']['array_struct'][1]['row_norm_bgcolor']	= '#FAEAC8';
$template_default['nav_table_struct']['array_struct'][1]['row_norm_class']		= $template_default['nav_table_struct']['row_norm_class'];
$template_default['nav_table_struct']['array_struct'][1]['row_over_bgcolor']	= '#FAEAC8';
$template_default['nav_table_struct']['array_struct'][1]['row_active_bgcolor']	= '#FAEAC8';
$template_default['nav_table_struct']['array_struct'][1]['row_active_class']	= $template_default['nav_table_struct']['row_active_class'];
			
$template_default['nav_table_struct']['array_struct'][1]['space_celltop']		= $template_default['nav_table_struct']['space_celltop'];
$template_default['nav_table_struct']['array_struct'][1]['space_cellbottom']	= $template_default['nav_table_struct']['space_cellbottom'];

$template_default['nav_table_struct']['array_struct'][1]['cell_height']		= $template_default['nav_table_struct']['cell_height'];
$template_default['nav_table_struct']['array_struct'][1]['cell_class']			= 'navLevel1';
$template_default['nav_table_struct']['array_struct'][1]['cell_active_height']	= $template_default['nav_table_struct']['cell_active_height'];
$template_default['nav_table_struct']['array_struct'][1]['cell_active_class']	= 'navLevel1a';
 */


// article listing with summary
$template_default['space_top']				= '';
$template_default['space_bottom']			= '';
$template_default['space_aftertop_text']	= '';
$template_default['space_between_list']		= '';
$template_default['space_between_sum']		= '';
//
$template_default['top_listentry_before']   = '<div class="listEntry">';
$template_default['top_listentry_after']    = '</div>';
$template_default['top_headline_before']    = '<h1>';
$template_default['top_headline_after']     = '</h1>';
$template_default['top_subheadline_before'] = '<h2>';
$template_default['top_subheadline_after']  = '</h2>';
$template_default['top_text_before']        = '<div class="topText">';
$template_default['top_text_after']         = '</div>';
$template_default['top_readmore_before']	= ' ';
$template_default['top_readmore_link']		= 'more&#8230;';
$template_default['top_readmore_after']		= '';
$template_default['top_headline_space']		= '';
$template_default['top_subheadline_space']	= '';
$template_default['top_count']				= 1;
$template_default['article_order']			= 1; // 0 = manual, 2 = creation date, 4 = start date -> + 0 = ASC, + 1 = DESC
$template_default['article_paginate_navi']	= '<div class="paginate paginate-{POS}">{PREV:&laquo;} {NEXT:&raquo;} page #/##, result ###-####, {NAVI:1-3, |<span>|</span>}</div>'; //
$template_default['article_paginate_show']	= 'top bottom rt{RT}'; //where should the navi be shown - possible values: top and/or bottom and/or rt:{RT}
$template_default['article_render_anchor']	= false; // render article jumpID anchor true||false

//
$template_default['list_startimage']		= '<img src="img/article/list_startimage.gif" width="11" height="7" border="0" alt="" />';
$template_default['list_headline_before']   = '<div class="articleListListhead">';
$template_default['list_headline_after']    = '</div>';

// breadcrumb
$template_default['breadcrumb_spacer']		= ' <span class="breadcrumb-spacer">></span> ';
$template_default['breadcrumb_active_prefix'] = '<strong>';
$template_default['breadcrumb_active_suffix'] = '</strong>';

// article default
$template_default['article']['title_before']		= '<h1>';
$template_default['article']['title_after']			= '</h1>';
$template_default['article']['subtitle_before']		= '<h2>';
$template_default['article']['subtitle_after']		= '</h2>';
$template_default['article']['summary_before']		= '<div class="articleSummary">';
$template_default['article']['summary_after']		= '</div>';

$template_default['article']['div_spacer']			= true; //if true or 'div' = <div>..., if false or not set <br><img...>

$template_default['article']['head_after']			= '';

$template_default['article']['content_head_before']		= '<h3>';
$template_default['article']['content_head_after']		= '</h3>';
$template_default['article']['content_subhead_before']	= '<h4>';
$template_default['article']['content_subhead_after']	= '</h4>';

$template_default['article']['text_class']				= 'articleText';
$template_default['article']['code_class']				= 'articleCode';

$template_default['article']['link_email_before']		= '<div class="linkEmail"><img src="img/article/extlink_1.gif" alt="" /><img src="img/leer.gif" width="1" height="11" alt="" />';
$template_default['article']['link_email_after']		= '</div>';

$template_default['article']['bullet_sign']				= '<img src="img/article/bullet_1.gif" alt="" /><img src="img/leer.gif" width="1" height="1" alt="" />';
$template_default['article']['link_sign']				= '<img src="img/article/extlink_1.gif" alt="" /><img src="img/leer.gif" width="1" height="11" alt="" />';
$template_default['article']['back_sign']				= '<img src="img/article/back_link_0.gif" border="0" alt="" />';
$template_default['article']['top_sign']				= '<img src="img/article/top_link_0.gif" border="0" alt="" />';
$template_default['article']['top_sign_before']			= '<div align="right">';
$template_default['article']['top_sign_after']			= '</div>';

$template_default['article']['file_name_cell_class']	= 'v11';
$template_default['article']['file_size_cell_class']	= 'v10';
$template_default['article']['file_size_info_class']	= 'v09';

$template_default['article']['form_align']              = '';

$template_default['article']['link_article_sign']		= '<img src="img/article/intlink_1.gif" alt="" /><img src="img/leer.gif" width="1" height="11" alt="" />';
$template_default['article']['link_article_class']		= 'articleLinkInternal';

$template_default['article']['image_table_class']		= '';
$template_default['article']['image_table_bgcolor']		= '';
$template_default['article']['image_bgcolor']			= '';
$template_default['article']['image_align']				= '';
$template_default['article']['image_valign']			= '';
$template_default['article']['image_border']			= 0;
$template_default['article']['image_class']				= "image_td";
$template_default['article']['image_imgclass']			= "image_img";
$template_default['article']['image_caption_class']		= "image_caption";
$template_default['article']['image_caption_bgcolor']	= '';
$template_default['article']['image_caption_valign']	= '';
$template_default['article']['image_caption_align']		= 'center';
$template_default['article']['image_caption_before']	= '';
$template_default['article']['image_caption_after']		= '';
$template_default['article']['image_div']				= true;

$template_default['article']['image_default_width']		= '200';
$template_default['article']['image_default_height']	= '200';

$template_default['article']['imagelist_table_class']		= 'images-table';
$template_default['article']['imagelist_table_bgcolor']		= '';
$template_default['article']['imagelist_spacerrow_class']	= 'images-spacerow';
$template_default['article']['imagelist_bgcolor']			= '';
$template_default['article']['imagelist_align']				= '';
$template_default['article']['imagelist_valign']			= '';
$template_default['article']['imagelist_border']			= 0;
$template_default['article']['imagelist_class']				= 'images-td';
$template_default['article']['imagelist_imgclass']			= 'images-img';
$template_default['article']['imagelist_caption_class']		= 'images-caption';
$template_default['article']['imagelist_caption_bgcolor']	= '';
$template_default['article']['imagelist_caption_valign']	= '';
$template_default['article']['imagelist_caption_align']		= '';
$template_default['article']['imagelist_caption_before']	= '';
$template_default['article']['imagelist_caption_after']		= '';

$template_default['article']['imagelist_default_width']		= 100;
$template_default['article']['imagelist_default_height']	= 100;

$template_default['imagegallery_default_width']				= 200;
$template_default['imagegallery_default_height']			= 175;
$template_default['imagegallery_default_space']				= 3;
$template_default['imagegallery_default_column']			= 2;


$template_default['article']['keyword_before']          = '<span class="keywords">';
$template_default['article']['keyword_after']           = '</span>';
$template_default['article']['newsletter_error']		= 'Please check email address!';

// date and time formatting
$template_default['date']['language']		= 'EN';         // DE=German, IT=Italian, FR=French
$template_default['date']['long']			= 'l, j. F Y';  // (Monday, 1. October 2003)
$template_default['date']['medium']			= 'D, j. M y';  // (Mon, 1. Oct 03)
$template_default['date']['short']			= 'Y/m/d';      // (2003/12/25)
$template_default['date']['article']		= 'Y/m/d';      // (2003/12/25)
$template_default['time']['long']			= 'H:i:s';      // 15:25:45
$template_default['time']['short']			= 'H:i';        // 15:25

// rss image
$template_default['rss']['image']	= '<img src="img/article/rss_valid.gif" width="64" height="13" border="0" alt="Valid RSS" />';

// related articles based on keywords
$template_default['related']['before']			= '<div class="related">';
$template_default['related']['after']			= '</div>';
$template_default['related']['link_before']		= '<p>';
$template_default['related']['link_after']		= "</p>";
$template_default['related']['link_symbol']		= '';
$template_default['related']['link_target']		= '';
$template_default['related']['link_length']		= 0; //if 0 no limit
$template_default['related']['cut_title_add']	= '&#8230;';
$template_default['related']['sort_by']			= '';

// new articles
$template_default['news']['before']			= '<div class="news">';
$template_default['news']['after']			= '</div>';
$template_default['news']['link_before']	= '<p>';
$template_default['news']['link_after']		= '</p>';
$template_default['news']['link_symbol']	= '';
$template_default['news']['link_target']	= '';
$template_default['news']['link_length']	= 0; //if 0 no limit
$template_default['news']['cut_title_add']	= '&#8230;';
$template_default['news']['date_language']	= 'EN'; // DE=German, IT=Italian, FR=French, ES = Spanish, DA = Danish, NO = Norwegian
$template_default['news']['date_format']	= 'Y/m/d'; //if empty -> no Date
$template_default['news']['date_before']	= '<span class="datelink">';
$template_default['news']['date_after']		= ' - </span>';
$template_default['news']['sort_by']		= 'cdate'; // 'cdate' = Creation date, or 'udate' = update date, ldate = start date, kdate = end date

// ecards
$template_default['article']['ecard_table_class']		= "image_table";
$template_default['article']['ecard_table_bgcolor']		= '';
$template_default['article']['ecard_bgcolor']			= '';
$template_default['article']['ecard_align']				= '';
$template_default['article']['ecard_valign']			= '';
$template_default['article']['ecard_border']			= 0;
$template_default['article']['ecard_imgclass']			= '';
$template_default['article']['ecard_class']				= 'image_td';
$template_default['article']['ecard_caption_class']		= 'image_caption';
$template_default['article']['ecard_caption_bgcolor']	= '';
$template_default['article']['ecard_caption_valign']	= '';
$template_default['article']['ecard_caption_align']		= 'center';
$template_default['article']['ecard_caption_before']	= '';
$template_default['article']['ecard_caption_after']		= '';
$template_default['article']['ecard_chooser_css']		= 'style="margin:3px 0 3px 0;"';
$template_default['article']['ecard_chooser_text']		= 'style="font-weight:bold;"';

// this is used to inject <body> Tag by attribute "id" and/or "class"
// if value is empty '' body tag will not be injected, otherwise it will use
// current category "valueID"
$template_default['body']['id'] = '';
$template_default['body']['class'] = '';

// target URL for login form - this is where the user is redirected to
$template_default['login_form_url'] = PHPWCMS_URL;

// some texts are cut by default and if cutted the missing part is 
// shorten by "..." - that sign is defined here - default "&#8230;"
$template_default['ellipse_sign'] = '&#8230;';

// some more default classes
$template_default['classes'] = array(
	'link-top'				=> 'link-top',
	'link-internal'			=> 'link-internal',
	'link-external'			=> 'link-external',
	'link-rss'				=> 'link-rss',
	'link-back'				=> 'link-back',
	'link-anchor'			=> 'link-anchor',
	'link-email'			=> 'link-email',
	'link-bookmark'			=> 'link-bookmark',
	'link-rss'				=> 'link-rss',
	'spaceholder'			=> 'spaceholder',
	'spaceholder-cp-after'	=> 'spaceAfterCP',
	'spaceholder-cp-before'	=> 'spaceBeforeCP',
	'img-list-right'		=> 'img-list-right',
	'search-nextprev'		=> 'search-nextprev',
	'search-result'			=> 'search-result',
	'search-result-item'	=> 'search-result-item',
	'article-list-paginate'	=> 'article-list-paginate',
	'tab-container'			=> 'tab-container',
	'tab-navigation'		=> 'tab-navigation',
	'tab-first'				=> 'tab-first',
	'tab-last'				=> 'tab-last',
	'tab-content'			=> 'tab-content',
	'tab-container-clear'	=> 'tab-container-clear',
	'tab-item'				=> 'tab-item',
	'navlist-sub_ul_true'	=> 'sub_ul_true',
	'navlist-sub_ul'		=> 'sub_ul',
	'navlist-sub_no'		=> 'sub_no',
	'navlist-sub_first'		=> 'sub_first',
	'navlist-sub_last'		=> 'sub_last',
	'navlist-sub_parent'	=> 'sub_parent',
	'navlist-asub_no'		=> 'asub_no',
	'navlist-asub_first'	=> 'asub_first',
	'navlist-asub_last'		=> 'asub_last',
	'navlist-navLevel'		=> 'navLevel-',
	'breadcrumb-active'		=> 'active',
	'cp-anchor'				=> 'cpidClass'
);


?>
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org

User avatar
Oliver Georgi
Site Admin
Posts: 9563
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by Oliver Georgi » Sun 17. Mar 2013, 19:49

das sieht erst mal i.O. aus. Allerdings erklärt sich das Verhalten dann nicht. Ich kann den Fehler nicht nachvollziehen. Steht auch nicht im Zusammenhang mit meiner heutigen Änderung.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон

User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Tue 19. Mar 2013, 08:50

Nach kompletter Neuinstallation des neusten Releases ist der Fehler verschwunden. Allerdings funktioniert das OpenGraph Script nicht so richtig.

Wenn kein Artikelbild definiert, Ausgabe wie erwartet:
<meta property="og:image" content="http://example.com/default-image.jpg" />

Wenn kein Artikelbild definiert, Ausgabe der Basis-URL ohne Bild:
<meta property="og:image" content="http://www.meine_url.com/" />

:?:
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org

User avatar
Oliver Georgi
Site Admin
Posts: 9563
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by Oliver Georgi » Tue 19. Mar 2013, 13:41

bei keinem Bild liegt es an Dir, dort was Alternatives zu hinterlegen oder eben kein Bild auszuliefern und Facebook eines von der Seite zu nehmen. Einfach den ELSE teil wegnehmen.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон

User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Wed 20. Mar 2013, 13:38

Ja schon, aber wenn doch ein Artikelbild definiert ist, sollte auch das Artikelbild im OpenGraph-Tag eingebunden werden. Wird es bei mir aber nicht.
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org

User avatar
update
Moderator
Posts: 6394
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by update » Sat 20. Dec 2014, 21:45

muss ich mal aufwärmen:
Beim Einsatz des sozial-Moduls wird mir bei einem Artikel ohne Detailbild beim "Teilen > FB" immer dieses blaue phpwcms-Logo-Bild angeboten. Keine Ahnung, woher das kommt.
Weiß vielleicht jemand mehr?
It's mostly all about webdesign, logo design, new and old pages refresh, print BUT slowly switching to be supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.

User avatar
santscho
Posts: 1368
Joined: Mon 2. Apr 2007, 08:56
Location: Singapore
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by santscho » Sun 21. Dec 2014, 00:11

Template/img/opengraph-default.png

Ersetzen mit 500x500 px Bild
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org

User avatar
update
Moderator
Posts: 6394
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by update » Sun 21. Dec 2014, 08:16

Danke für die Rückmeldung. :)
Hab's ersetzt, Cache geleert, Browser neu gestartet. Nada. Sind die 500x500 obligatorisch oder optional? Die Originale sind 250x250?
("Nada" bezieht sich nur für die eine Seite, die kein Artikeldetailbild hat. Die mit Detailbild nehmen das Detailbild, wie es sein soll)
It's mostly all about webdesign, logo design, new and old pages refresh, print BUT slowly switching to be supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.

User avatar
update
Moderator
Posts: 6394
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by update » Sun 21. Dec 2014, 08:51

So, jetzt habe ich das mal mit einem 500x500 großen Bild ersetzt, aber immer noch wird das blaue default-Bild genommen. Ist das jetzt ein Cache-Problem?
EDIT: scheint mit dem Cache nix zu tun zu haben...
It's mostly all about webdesign, logo design, new and old pages refresh, print BUT slowly switching to be supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.

User avatar
Oliver Georgi
Site Admin
Posts: 9563
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Ausgabe URL Artikel-Detail-Bild und in header injezieren

Post by Oliver Georgi » Sun 21. Dec 2014, 09:17

Facebook fragt das Bild nicht wieder ab, wenn es einmal geladen wurde.
http://stackoverflow.com/questions/5776 ... es#tab-top
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон

Post Reply