Back button in Category view, when filtering retuns no items

More
12 years 11 months 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
12 years 11 months 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 review. Thanks!

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

More
12 years 11 months 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
12 years 11 months 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 review. Thanks!

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

More
12 years 11 months 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
12 years 11 months 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 review. Thanks!

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

More
12 years 11 months ago #34573 by brandonking
I am loading xhtml, not html5.
I even tried with html5 by adding same codes but not showing.

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

More
12 years 11 months ago #34574 by ggppdk
Then you have a custom template that it is not calling this common file,
(in built-in template various files are just wrapper files for calling the common code in files in folder: tmpl_common)

so go inside your custom template and edit 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 review. Thanks!

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

More
12 years 11 months ago #34576 by brandonking
You mean that if I create custom template(blog or presentation), tmpl_common file won't be loaded?

If so, once you update this feature(or even other features) in tmpl_common file, do I have to recreate all my custom template that I created?

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

More
12 years 11 months ago #34577 by ggppdk
No no,

if you create copy of a these templates the category.php will load , just meant if you have an old template (prior to r1560 or something) that did not have the common template code moved into tmpl_common folder.

NOTE , at some point we will add multiple configurations per same template , to avoid duplicating template files , only because a different field setup is needed


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

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