Back button in Category view, when filtering retuns no items

More
11 years 1 month ago #34565 by brandonking
Hello,

Would you be able to add a BACK button to previous page when no result found in Category Filtering?

Regards,
Brandon

EDIT: If I click category where no item exists, I get same notice page as above. Please add BACK button if no items exists/found.

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

More
11 years 1 month ago #34567 by ggppdk
Yes this is needed ..
in file
flexi_component_folder/tmpl_common/category.php

Just after
Code:
<!-- BOF item list display --> <?php echo $this->loadTemplate('items'); ?> <!-- BOF item list display -->

I ll add something like (with language string)
Code:
<?php if (empty($this->items)) echo 'Please click [url=JavaScript:window.history.back();]here[/url] to return previous page'; ?>


-- 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
11 years 1 month ago #34568 by brandonking
I am not sure why but this code is not working. I will wait for FC 2.0.1.

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

More
11 years 1 month ago #34569 by ggppdk
You can test with this file:
[attachment=0:3mtk4beh]<!-- ia0 -->category.zip<!-- ia0 -->[/attachment:3mtk4beh]


-- 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...
Attachments:

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

More
11 years 1 month ago #34570 by brandonking
I have tried your code but not working. Even removed IF statement, still No luck. I have cleaned cache and browser as well. :?

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

More
11 years 1 month ago #34571 by ggppdk
If you remove the if and since there is no outer if, but still it does not work,

then the answer is really simple is really simple

this file is never executed, maybe your current category is set to load

category_html5.php

and not

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

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