Automatic redirect from the article view to flexi item view

More
10 years 9 months ago #45732 by b2z
There is no excluded categories in the plugin. I will update FC and then will provide you access to the site. Will do it later today.

Thank you for your patience!

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

More
10 years 9 months ago #45761 by ggppdk
Hello

i tested and redirection is working

e.g.

Under menu item:
Блоги

i create the menu item:
Test com_content article menu item

and it was correctly rendered by FLEXIcontent item view instead of Joomla article view,

-- you can see it by viewing the HTML source
(e.g. you can see the CSS classes that the container has:)
<article itemtype=" schema.org/Article " itemscope="" class="item fcitems fcitem251 fctype1 fcmaincat12">
...
</article>

and also by adding extra fields to the item layout of the FLEXIcontent template that this type of item uses (It's FLEXIcontent type is "Материал" and it using your custom FLEXIcontent template "jmb-blog")

Regards


-- 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
10 years 9 months ago #45764 by b2z
So correct me if I am wrong - redirect works only when there is a menu item associated with the article?

What I thought about automatic redirect is when I open old link, for example domain/category-alias/id-article, it is automatically redirected to domain/category-alias/item/id-article. The idea was not to lose old links.

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

More
10 years 9 months ago #45767 by ggppdk
Hello

yes it works

and the (SEF on not SEF) links do not have to change

the redirection is done while deciding component

The JRouter object is update to have:

- option=com_flexicontent
- view=item
instead of
- option=com_content
- view=article

this is done transparently without a URL redirection so your URL existing com_content URLs remain the same inside the browser address bar, the browser is not instructed to do a redirection

by checking your views can you not see the FLEXIcontent fields that you add to the templates ?

Regards


-- 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
10 years 9 months ago #45772 by b2z
Hmm... That is strange, but it does not work. For example try to open any link on my test website without word item in the address. You will be redirected to the index.php page, but it should open article.

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

More
10 years 9 months ago #45780 by ggppdk
Hello

so these are com_content article links ?

-- please PM me with such link examples,

-- if these are these menu items, then give the menu item id so that i can find them in backend

also maybe give a link to a page that contains such links

Regards


-- 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.345 seconds
Save
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