Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

Wie SEO Kategorie URL mit Customize-Freitextfeld umschreiben?

$
0
0

Hallo zusammen,

mit folgender Methode lege ich in einem Plugin ein Freitextfeld an:

	private function createArticlesSupplierCategoryAttribute()
	{
		/** @var CrudService $service */
		$service = $this->container->get('shopware_attribute.crud_service');
		$service->update('s_categories_attributes', 'custom_categories_permalink',
			TypeMapping::TYPE_STRING, [
				'label' => 'Kategorie-Permalink',
				'helpText' => '',
				'position' => 0,
				'translatable' => true,
				'displayInBackend' => true,
			]);
	}

 

Leider werden die neu hinterlegten URLs aus dem Freitextfeld, nach einem SEO-Index-Neuaufbau und dem Cache löschen, mit folgendem Snippet nicht übernommen:

{if $sCategory.attribute.custom_categories_permalink}{$sCategory.attribute.custom_categories_permalink}{else}{sCategoryPath categoryID=$sCategory.id}{/if}/

 

Vielleicht hat von euch jemand eine Lösung?

 

Vielen Dank und beste Grüße
Michael


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>