Lost!! Auto nav...default.php...view.php...home.php ??? Help
Permalink
New to Concrete5 but not to web development (Joomla, Wordpress...etc. for years)
However I am not having much success making what I thought to be a simple change to an existing site (I did not develop only occasionally support)http://www.upbc.org . I would like to add a new link to the main navigation. It appears that this site was template was created and the navigation was "hardcoded".
I am NOT sure, but I noticed that the links were created using images and no matter what I do to the site map it has no effect on the look of the template. I have successfully modified the main.css file to include the new link. I can not find the default template file so that I can change the the navigation <ul>. If this is being created dynamically with PHP, can some one tell me within the file structure its being created.
I have looked at the default.php, view.php, homp.php...within the Elements folder, Block folder, and resources folder...nothing.
Please help...I thought that this would take only a few minutes to resolve...Several hours and a few more grey hairs...nothing.
Please help
Also, I have noticed that no matter what I do or permissions I adjust, I can't within concrete5 create a this new page only an external link.
SMH
Thanks in advance
However I am not having much success making what I thought to be a simple change to an existing site (I did not develop only occasionally support)http://www.upbc.org . I would like to add a new link to the main navigation. It appears that this site was template was created and the navigation was "hardcoded".
I am NOT sure, but I noticed that the links were created using images and no matter what I do to the site map it has no effect on the look of the template. I have successfully modified the main.css file to include the new link. I can not find the default template file so that I can change the the navigation <ul>. If this is being created dynamically with PHP, can some one tell me within the file structure its being created.
I have looked at the default.php, view.php, homp.php...within the Elements folder, Block folder, and resources folder...nothing.
Please help...I thought that this would take only a few minutes to resolve...Several hours and a few more grey hairs...nothing.
Please help
Also, I have noticed that no matter what I do or permissions I adjust, I can't within concrete5 create a this new page only an external link.
SMH
Thanks in advance
Thanks for the quick reply JohntheFish
I don't think I am having problems with the cache..sorry for being unclear. I just want to edit this page:
http://www.upbc.org/index.php
When I attempt to edit it within the CMS there aren't any "blocks" to edit. So I assumed that its apart of the themes files. I have check the default.php file I only see reference to $bt = BlockType::getByHandle('autonav'); in the code.
I have check that file...don't see anything to edit. I am sure this thing is hardcoded somewhere...just don't know where.
I am certainly appreciating your help
I don't think I am having problems with the cache..sorry for being unclear. I just want to edit this page:
http://www.upbc.org/index.php
When I attempt to edit it within the CMS there aren't any "blocks" to edit. So I assumed that its apart of the themes files. I have check the default.php file I only see reference to $bt = BlockType::getByHandle('autonav'); in the code.
I have check that file...don't see anything to edit. I am sure this thing is hardcoded somewhere...just don't know where.
I am certainly appreciating your help
<body class="<?php echo $c->getCollectionTypeHandle(); ?><?php echo $canWrite . $edit; ?>"> <div id="page-header-wrap-bgd"> <div id="wrap-bgd" class="wrap"> <div id="header-wrap-bgd"> <div id="header" class="container"> <a href="/" title="The Park Church"><h3 class="logo">The Park Church</h3></a> <div class="search"> <?php /* <form action="#" name="search-form" id="search-form"> <input type="text" name="search-term" value="Search" class="search-text"/> <input type="submit" name="submit" value="Go" class="go-button"/> </form> */ ?> <?php $block = Block::getByName('Header Search'); if ($block && $block->bID) {
Viewing 15 lines of 49 lines. View entire code block.
A possibility with an old site (created pre c5.5 then updated) is that the Header Nav was created within a scrapbook. New versions of c5 will still display scrapbooks, but don't provide any support for managing them.
With all the bespoke classes on the nav items, I am not convinced this is a regular autonav block.
Maybe have a look for bespoke blocks in the root/blocks folder or an override of autonav. Or it could be generated by another navigation block. But even then it could stem from an old scrapbook.
As for the direction your work should be taking, it all depends on how long-term your support needs to be. If you really want to get it into shape, the best solution is usually to re-work the theme to use global areas for site-wide content such as main menus.
If I am right about the scrapbook, for a quick fix to a scrapbook your only option is to use an older version of c5, hack the database entry for that scrapbook, or search the forums for scrapbook to stack conversion code.
With all the bespoke classes on the nav items, I am not convinced this is a regular autonav block.
Maybe have a look for bespoke blocks in the root/blocks folder or an override of autonav. Or it could be generated by another navigation block. But even then it could stem from an old scrapbook.
As for the direction your work should be taking, it all depends on how long-term your support needs to be. If you really want to get it into shape, the best solution is usually to re-work the theme to use global areas for site-wide content such as main menus.
If I am right about the scrapbook, for a quick fix to a scrapbook your only option is to use an older version of c5, hack the database entry for that scrapbook, or search the forums for scrapbook to stack conversion code.
Also check that after making a change you publish/approve the page.
A header nav could be hard coded in the theme's view or deafult.php, in a header element beneath that, or in some other element referenced by it, or if you are on a sidebar page, in a sidebar template.
Maybe rather than the theme itself you need to look for an override of the theme (in root/themes/theme_name), as opposed to the theme package.
Another possibility is that it could be declared as a block in the page type defaults.
A few other possibilities are listed in this howto:
http://www.concrete5.org/documentation/how-tos/designers/show-conte...