some little issues

Permalink
hi all,

first congratulations for this killer piece of software. i've already started to play with the template integration and it's a breeze. usually i make use of drupal for big projects involving social features, but when it comes to a medium project, sometimes drupal it's too big... and C5 fits perfectly! I really like the php5 MVC implementation, and the framework structure, very neat and clean, it reminds me CodeIgniter at some point (being C5 a framework as much as a CMS system...this is crack!)

Some little issues:

- when setting up a Navigation Menu, let's say I got these pages under my homepage: contact, about, products, services

so Nav Menu will create a menu like this:

-contact
-products
-services
-about

But I would like also to add a 'home' link to it, so the user can go back to the Home Page right from the nav menu...is it any way to achieve this behaviour right from the Dashboard, apart from the programatic solution (I haven't started yet to dig into the C5 classes and modules)

- Other things..I'm getting problems with the 'pretty url' activation. I got my Apache running with the mod_rewrite module (in fact it's working ok with my drupal installations with clean urls). But I cannot make it work at all with c5. I used that .htaccess file but it doesn't seem to work. My links for the site are changed and appear now without index.php, but they don't work on the navigator. I had to revert the behaviour by changing the 'config' table from phpmyadmin.

Thanks!

 
ScottC replied on at Permalink Reply
ScottC
Less Code
Nov 09, 2008 at 9:26 AM
You create the new folder:
/blocks/autonav
and then just copy the /concrete/blocks/autonav/view.php to your new /blocks/autonav folder, basically you only have to override the file you want to change, not the whole block.

If you wanted to retain the original functionality of the block as well as your new functionally you could create a new template:
make the folder:
/blocks/autonav/templates/custom_nav.php

taken from this post:

http://www.concrete5.org/community/forums/customizing_c5/menu_lists...

Why not just make a tweak to the controller in a new nav block that returns a cID = 1 with your homepage (or index page) with a <li> of home, or maybe you can do this in the view even more easily and exclude your index from your nav since it will always look for cID of 1 for the index?

I am not 100% on reading php, I am coming from a background in C# and asp.net so don't throw me under the bridge :)