Add link rel to head of Magento [closed] - magento

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there a quick and clean way to add a rel link in the head section of Magento.
Examples would include home,index,next,prev,canonical.
I'd like to be able to do this from either a helper, block, template.
See this for more information
http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html

You should search in magento core code, for example the one that handles REL canonical tags : class Mage_Catalog_Block_Category_View :
In a block for example :
$headBlock = $this->getLayout()->getBlock('head');
$headBlock->addLinkRel('canonical', $category->getUrl());
but you can do that wherever you can access a loaded layout.

Related

Making Activity.Property available in context [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Using the Activity.Properties to send custom property info to the Bot. I can see that the values in the MessageController, once it passed to the dialgue then the Context.Activity doesnt contain Properties property. Any idea ?
https://docs.botframework.com/en-us/csharp/builder/sdkreference/dc/d2f/class_microsoft_1_1_bot_1_1_connector_1_1_activity.html#a0b5aff513cb633353c8f6766a214a4cb
Simply downcasting like below should solve this problem for you.
Activity a = (Activity) context.Activity;

language SEO optimization of URL's in MVC 3/4 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm doing an website which has multiple languages like Danish, English and German.
But what is the correct way to format the url for the different languages.
Is it like so:
English = http://www.mysite.dk/myController/Hepper (Without an /en/ in
the url)
or
English = http://www.mysite.dk/en/myController/Hepper (with the /en/)
Having the language in the URL is best in terms of SEO. Of course if there's a default language you might omit it. For example:
http://www.mysite.dk/myController/Hepper (English)
http://www.mysite.dk/fr/myController/Hepper (French)
http://www.mysite.dk/de/myController/Hepper (German)
...

Does Magento cache third party modules? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Does Magento cache third party folder and files?
I have some WordPress blogs in the Magento root folder, will Magento attempt to cache them?
If it is possible how can I achieve it ?
No.
Magentos caching is object based, not folder based.
To see how Magento implemented its major caches see the classes:
Mage_Core_Model_Config // CONFIG
Mage_Core_Model_Layout_Update // LAYOUT_GENERAL_CACHE_TAG
Mage_Core_Block_Abstract // BLOCK_HTML
Mage_Core_Model_Translate // TRANSLATE
Mage_Core_Model_Resource_Db_Collection_Abstract // COLLECTION_DATA
Mage_Eav_Model_Entity_Attribute // EAV_ATTRIBUTE
Enterprise_PageCache_Model_Processor // FPC
No, as it's not part of Magento.
its odd that we need to type at least 30 chars to say "no, it will not cache them"

Links contains #, would it affect SEO? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
If i have such links in my site (i am using mvcsitemap):
http://mysite.com/coollink
http://mysite.com/coollink#contanttab1
http://mysite.com/coollink#contenttab2
If i want to submit site map to google for example, should i use the links with # in mysite XML sitemap? or better not to use them in sitemap XML?
Because in such case there would be 3 links to the same resource as i understand and it is not so good for SEO? could some one correct me if i am wrong.
As far as I know so far, hashes will be ignored by most of the search engines and they have no use for SEO. It is user more for internal page navigation or some sort of JavaScript actions.

Response Content Types [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
What are the response content types for .docx, .xlsx, .pptx, .zip etc. ? Can you give me a list of all content types ?
They're all here: http://www.iana.org/assignments/media-types/
I don't think there is any definititve list in existance, nor is there likely to ever be, of all content types because as soon as someone creates a new file format there's theoretically a new content type. Rightly, or wrongly, I've seen the following document types associated with .docx:
application/docx
application/msword
application/vnd.ms-word.document
Here you can find some: Internet media types

Resources