How to insert REL ALTERNATE ?

More
9 years 10 months ago #56605 by flodariege
Hello,
I am looking for the way to get the meta rel alternate in some few items I had to create to display nicely my picture galleries on smartphones.
Where am I supposed to look, under FlexiContent, to insert this tag?
Thank you for your help;)

Bonjour,
J'ai quelques liens dans mon site qui sont des duplicate content inévitables, consistant à afficher proprement sur un smartphone mes galeries d'image.
J'aimerais pouvoir insérer une balise link rel="alternate", mais j'ai beau chercher, pas moyen de trouver comment procéder pour obtenir ce résultat ?
Merci d'avance pour votre coup de main ;)

Joomla 3.3.6 FlexiContent 2.0

Dare to dream, believe the unbelievable, never take no for an answer

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #56606 by micker
tu veus l'intégrer où ?
dans la config global de flexi tu as l'option url cannonical

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #56610 by flodariege
Bonjour,

J'ai 2 pages identiques (galerie photos) dont seule la mise ne page diffère (la version alternative est pour les petits écrans de smartphone)
Du coup, j'aimerais que Google sache qu'une page alternative existe + qu'il ne considère pas cela comme du duplicate content.
Mes pages ont bien toutes une rel canonical, mais par exemple tu vois pour cette page 'alternative', j'aimerais pouvoir changer le contenu de cette balise. Actuellement elle dit que l'url canonique est... sa propre url. Je ne sais pas comment changer ça.
Et pour la balise 'alternate', j'aimerais que la page originale puisse dire aux moteurs "hey les gars, il y a une version alternative plus adaptée aux mobiles, elle est là : URL alternate).

Pardon si je ne suis pas claire, je suis loin d'être une pro ;)

Voici les URL concernées (supprimer les espaces de part et d'autres de rouchenergies.fr)
URL de la page originale = http://www. rouchenergies.fr /photos-realisations/isolation.html
URL de la page alternative = http://www. rouchenergies.fr /galerie-realisations/version-mobile-galerie-photos-isolation.html

Dare to dream, believe the unbelievable, never take no for an answer

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago - 9 years 10 months ago #56615 by ggppdk
Both pages should have the same
rel="canonical"

You can add this to the desktop version
(inside some PHP file)
Code:
// Link to alternate page for small screens $href = '/galerie-realisations/version-mobile-galerie-photos-isolation.html'; // Attributes to add, below we only have 1, the 'media' $attribs = array('media' => 'only screen and (max-width: 800px)'); // Add the alternate link to the document JFactory::getDocument()->addHeadLink( $href, 'alternate', 'rel', $attribs );


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #56625 by flodariege
Thnak you. Not sure to know how to do this, but I will do my homework and try to find the way.
Thank you for your help.

Dare to dream, believe the unbelievable, never take no for an answer

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #56629 by ggppdk
Hello

let's talk about it,

e.g.
you want to serve
- 2 different FLEXIContent items (= Joomla articles )
1 will be served to desktop users and 1 to mobile users or to users with smaller screens

how are you serving to different items ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.337 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save