cerberus22 Posted February 28, 2009 Share Posted February 28, 2009 Hi All,I cannot get the Block Exceptions to work with the cms pages created in the admin section (under tools), it works fine with all the other pages.any ideas ?All the best,Cerberus22 Link to comment Share on other sites More sharing options...
cerberus22 Posted March 7, 2009 Author Share Posted March 7, 2009 Hi all,I have found a way to use the Exceptions with the cms pages, in the modules exceptions box add cms.php this will work on all cms pages ( I have friendly urls switched on)All the best,Cerberus22 Link to comment Share on other sites More sharing options...
ChurchPath Posted March 13, 2009 Share Posted March 13, 2009 Hi,I need to resolve this problem.If I go into admin and select a block - for example - the Info block - and in the exceptions field I type in 'cms.php.This will not allow the Info block to appear when a cms page is called.That's fine.....But what if I have a specific cms page - example : friendly url - 8-history - and a I don't want the Info block to appear on that page?But I do want it to appear on other cms pages.Question:what can I put in the exceptions field in the Info block to stop the Info block appearing when the cms page called 8-history is called?Hope that makes sense guys?ChurchPath. Link to comment Share on other sites More sharing options...
cerberus22 Posted March 27, 2009 Author Share Posted March 27, 2009 Hi ChurchPath,Did you find a way to solve it ?, so far I have had no luck and still cannot find a cure.All the best,Cerberus22 Link to comment Share on other sites More sharing options...
kleinermann Posted June 8, 2010 Share Posted June 8, 2010 Hi there,Did you find a solution for this problem? It would be awesome to be able to prevent certain blocks from displaying on certain cms pages. Regards,honorfield Link to comment Share on other sites More sharing options...
rocky Posted June 9, 2010 Share Posted June 9, 2010 Topic movedI don't think that is possible with the exceptions feature. I think the only solution is to edit the TPL files of the blocks and add the following to the top: {if $page_name == 'cms' AND $smarty.get.id_cms != 1} and the following to the bottom: {/if} This will hide the block on CMS page 1 only. Link to comment Share on other sites More sharing options...
DDelgado Posted June 9, 2010 Share Posted June 9, 2010 First of all sorry for my English, you can get filter by independent cms pages if we make a brief change in /classes/module.php, where it says (line 413)foreach ($exceptions as $exception) if ($fileindex == $exception['file_name']) $Show = false; replaces itforeach ($exceptions as $exception) { if ($fileindex == $exception['file_name']) $Show = false; if ($fileindex == 'cms.php' And $show) { if ($fileindex .'?'.$_SERVER ['QUERY_STRING'] == $exception['file_name']) $Show = false; } }and the exceptions we as a file name cms.php?id_cms=8 Link to comment Share on other sites More sharing options...
jaimeweb Posted September 6, 2010 Share Posted September 6, 2010 Hi, ive got the SotEW's Adds - V0.4 mod. It adds content to headers, footers, and columns...however i dont want the content to show on the contact cms page. How can i do this? Ive tried both ways shown above. Link to comment Share on other sites More sharing options...
Vivek Presta Shop Posted May 4, 2012 Share Posted May 4, 2012 First of all sorry for my English, you can get filter by independent cms pages if we make a brief change in /classes/module.php, where it says (line 413) foreach ($exceptions as $exception) if ($fileindex == $exception['file_name']) $Show = false; replaces it foreach ($exceptions as $exception) { if ($fileindex == $exception['file_name']) $Show = false; if ($fileindex == 'cms.php' And $show) { if ($fileindex .'?'.$_SERVER ['QUERY_STRING'] == $exception['file_name']) $Show = false; } } and the exceptions we as a file name cms.php?id_cms=8 I want the same thing done for categories... could you please explain it briefly Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now