How do include the same autonav in both default.php and view.php of a theme?
Permalink
Hi again everyone. It's Grasshopper Carlos with another round of questions :).
I have two files.
default.php and view.php both inside /themes/my_theme/directory. Normal pages are rendered through default.php and single pages (and I guess various other things) through view.php. All well and good (with a lot of help understanding this on another thread).
But now I find that the following code inside each of these two files doesn't quite refer to the same block.
Changes made to the Left Sidebar block inside default.php (which is defined in that file using the code above) are not reflected in the Left Sidebar block as defined inside view.php and changes made to the Autonav block defined inside view.php are not incorporated into the Autonav in the home page (for example).
Aside from having to keep two files which define the look and feel of my site in sync (default.php and view.php) I find I must now also keep two blocks in those two files in sync also.
Is there not a way to use the same block (in this case Autonav) in both default.php and view.php?
Carlos
I have two files.
default.php and view.php both inside /themes/my_theme/directory. Normal pages are rendered through default.php and single pages (and I guess various other things) through view.php. All well and good (with a lot of help understanding this on another thread).
But now I find that the following code inside each of these two files doesn't quite refer to the same block.
<?php $a = new Area('Left Sidebar'); $a->display($c); ?>
Changes made to the Left Sidebar block inside default.php (which is defined in that file using the code above) are not reflected in the Left Sidebar block as defined inside view.php and changes made to the Autonav block defined inside view.php are not incorporated into the Autonav in the home page (for example).
Aside from having to keep two files which define the look and feel of my site in sync (default.php and view.php) I find I must now also keep two blocks in those two files in sync also.
Is there not a way to use the same block (in this case Autonav) in both default.php and view.php?
Carlos