How to insert REL ALTERNATE ?

More
10 years 8 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
10 years 8 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
10 years 8 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
10 years 8 months ago - 10 years 8 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 review. Thanks!
Last edit: 10 years 8 months ago by ggppdk.

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

More
10 years 8 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
10 years 7 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 review. Thanks!

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

More
10 years 7 months ago #56643 by flodariege
Hello,

For now, the user lands on the desktop version, on which there is a button link pointing toward the mobile version.
It would be a lot better if it could be automatic (the browser detects the screen size and serve the right version upon this criteria), but sincerely, I really don't know how to perform this.
At least, I would like the source code to indicat the right canonical URL, but I still wonder where I am supposed to insert the PHP above...

Thank you.

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

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

More
10 years 7 months ago #56644 by ggppdk
Hello

if your content is a FLEXIcontent item , then you can use 2 FLEXIcontent item layouts (template) for every content type
- 1 item layout (of a FLEXIcontent template) for desktop
- 1 item layout (of a FLEXIcontent template) for mobile (you can choose if "Tablets" will be servered the desktop or the mobile layout)

- Go to FLEXIcontent component parameters (configuration button)
and enable mobile layouts
- then go edit the content type (in backend "Types") and you can select a different layout for mobile users
- then go edit the item layout (FLEXIcontent template) that you selected and add your fields or also edit and customize the HTML
item.php
item_html5.php


-- 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 review. Thanks!

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

More
10 years 7 months ago #56680 by flodariege
Oh, OK, thank you. Maybe it will be useful for some other time, but not for this one:
All my items are Flexicontent items, but for those pages, the trouble is coming from a gallery.
The layout has to be different depending on screen size. So I cannot change it just by changing the FC template.
(I use sigplus gallery)
That's why I was looking for the rel alternate tag (plus, if possible, a way to direct automaticaly the user to the right url depending on his display size, but I feel this is going to be a bit difficult for me)

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

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

More
10 years 7 months ago #56682 by ggppdk
Hello

-- about add REL alternate you can do like i said above,

-- but about showing 2 different items depending on the user's browser / device
how do you do it ?
are you using some extension ?
i mean if it is different visitor language Joomla will switch to the associated translation item, and add an appropriate REL


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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