Navigation field - hide if empty

More
7 years 7 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
7 years 6 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...

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

More
7 years 6 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...

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

More
7 years 6 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...

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

More
7 years 6 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
7 years 6 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.235 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