[r1422] Change fc-template views within the same menu-item

More
13 years 6 months ago #27468 by mcmurdok
One thing that I just noticed:
If I use a filter on a category-view with an URL-setted template (clayout) then javascript of the filter doesn't pass this manually setted category-template through.

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

More
13 years 6 months ago #27480 by ggppdk
Yes , i ll update the template to use this variable too in the URL

You can update your templates now:
in all of your templates , edit category_items.php and
1. replace:
Code:
var matches = element.name.match(/(filter[.]*|letter)/);
with:
Code:
var matches = element.name.match(/(filter[.]*|letter|clayout)/);
2. Just after <form action=...
add these lines:
Code:
<?php if ( JRequest::getVar('clayout') == $this->params->get('clayout', 'blog') ) :?> <input type="hidden" name="clayout" value="<?php echo JRequest::getVar('clayout'); ?>" /> <?php endif; ?>


-- 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
13 years 6 months ago #27509 by ggppdk
Please consider leaving a review about FLEXIcontent at JED (Joomla! Extensions Directory)


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