Navigation field - hide if empty

More
8 years 10 months ago #67429 by lipatovroman
Hi!
Is it possible to hide navigation field if there is no any items to navigate?

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

More
8 years 10 months ago #67526 by ggppdk
Hello

we missed this one,
both directions are empty

it should be hidden automatically in this case,
this is simple / easy fix


-- 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
8 years 10 months ago #67527 by ggppdk
Hello

I checked and this is implemented already

If all 3
- Previous item IS empty
- Next item IS empty
- Back to category link is disabled

then it should not display

Maybe you have enabled "back to category" link ?


-- 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
8 years 10 months ago #67529 by ggppdk
Hello

if you replace in the field
Code:
if (!$field->prev && !$field->next && !$use_category_link) return;

with:
Code:
if (!$field->prev && !$field->next && (!$use_category_link || empty($rows[$item->id]->categoryslug))) return;

does it make a difference in your display ?


-- 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
8 years 10 months ago #67534 by lipatovroman

ggppdk wrote: Maybe you have enabled "back to category" link ?






I replaced
Code:
if (!$field->prev && !$field->next && !$use_category_link) return;

with:
Code:
if (!$field->prev && !$field->next && (!$use_category_link || empty($rows[$item->id]->categoryslug))) return;

But field still displays.

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

More
8 years 10 months ago #67537 by micker
i think the good scenario is
if only 1 item : display only back categorie bouton (if actived)
if we are in first item : display only next + back categorie bouton (if actived)
if we are in last item : display only previous + back categorie bouton (if actived)

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
8 years 10 months ago - 8 years 10 months ago #67721 by Woodzy42
I am having trouble getting the article navigation to show - ( next / previous).
How do I enable article navigation within an individual category / all categories.

Are the default settings to show navigation enabled or disabled? Where can I find this panel?

Last edit: 8 years 10 months ago by Woodzy42.

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

More
8 years 10 months ago #67722 by micker
hello create a navigation field and check option in apparence tab

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
8 years 10 months ago #67728 by ggppdk
Hello

there is a miss understanding

the "Article navigation" field show in item view !
It does not in category view

So add the field in the layout that you used to display your 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
8 years 10 months ago #67731 by Woodzy42
I very much appreciate the fast responses.
The multiple options in Flexicontent can be overwhelming at times.

The page navigation is working in what I think is indeed a/the category(ies) (see attachment).
What I want is to have the articles/items in each category, to show a next / previous article/item.
Thank you

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