How to insert REL ALTERNATE ?

More
9 years 10 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
9 years 10 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...

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

More
9 years 10 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
9 years 10 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...

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

More
9 years 10 months ago #56683 by ggppdk
Hello

please see my answer above

also why are you using Joomla 3.3.6 with FC v2.0
both are outdated


-- 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.353 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