Navigation

Permalink
is there anyway to get this navigation on the left side of the site ...

http://crcc.turnpostadmin.com/index.php/contact_us/...

to look like this navigation on the left side of the site...(example site static html)

http://dev.turnpostadmin.com/crcc/aboutus.php...

I've tried for quite awhile now and can't figure it out... the guiding principals should be indented like the ones on the example page

bryanlewis
 
bryanlewis replied on at Permalink Reply
bryanlewis
I'd imagine its just a css issue that I need help with but I'm not for certain
ScottC replied on at Permalink Reply
ScottC
that is a single image that uses css sprite sort of technique with the actual text being indented -9999px.

The actual best way i would think to do it (to be able to extend the nav later) is to make these thin horizontal slices that are added to the ul by doing a getattribute on the collection/page type.

I would also probably screw around with just getting the text looking good through css and use one image that has it's position changed on hover or active.

Few options really. If turnpost is looking for a part-time concrete5 guy let me know :)
bryanlewis replied on at Permalink Reply
bryanlewis
what type of page type attribute should i use the image one? or the text box? I'm not good at these things yet.
bryanlewis replied on at Permalink Reply
bryanlewis
I tried with the image attribute and it throws a huge php error. and the text box doesn't show the image for every ul... I'm not for sure how to do this
ScottC replied on at Permalink Reply
ScottC
not the image you would expect.

so if you do a print_r on the variable you will see a big array with a bunch of values. The way we did this with 5.2.1 was with importing the libraryfile controller and passing in the file object then getting the relative path and things like that. This code changed slightly with 5.3 since the library file (last I checked) redirected over to the file and file version models.

So since the attribute is a file object, you should be able to get the image to show up by loading up the fileversion model: $gg Loader::model('file_version') method called on the file object which is your collection attribute.

using getRelativePath() gives you a string path to the most recent version of the file object you are using as a page attribute. $fileobjectattribute is the attribute you load using $c->getAttribute('key');