Page 1 of 1

few random question

Posted: Wed Feb 21, 2007 3:29 am
by Hockey
1) Can I use a smarty config file to store a path and reference that path inside templates and CSS files?

2) I have a list composed of various graphical buttons. These buttons will change depending on the page selected (eventually - previous question should answer whther it's possible) but for now I will use the same 7 button images. My problem is, I want those buttons to reflect which page is currently selected, so can I create a Smarty include which queries the pages and using a GET var determine which image to show (ie: If AboutUs is selected I would need to use a different image source, etc)

Also, how can I check if a parent page is selected, that way if AboutUs has several children, the AboutUs img stays hilighted???

Otherwise, everything is looking pretty sharp so far...

Look forward to hearing back from ya :)

Edit: Shoot, forgot a question regarding SEO URL's

I imagine this is possible and I will poke around the other topics to see what I can find, but here is my dilema:

I have a Flash clip which when clicked jumps to: www.domain.com/subfolder

Can I create pages and use mod_rewrite to emulate that exact foldername? Does CMSMS just virtualize pages and ignore actual folders?

Re: few random question

Posted: Wed Feb 21, 2007 7:49 am
by tsw
Hockey wrote: 1) Can I use a smarty config file to store a path and reference that path inside templates and CSS files?
not really. as css files arent run through smarty processor it wont be of any use
Hockey wrote: 2) I have a list composed of various graphical buttons. These buttons will change depending on the page selected (eventually - previous question should answer whther it's possible) but for now I will use the same 7 button images. My problem is, I want those buttons to reflect which page is currently selected, so can I create a Smarty include which queries the pages and using a GET var determine which image to show (ie: If AboutUs is selected I would need to use a different image source, etc)

Also, how can I check if a parent page is selected, that way if AboutUs has several children, the AboutUs img stays hilighted???
take a look at article

http://themes.cmsmadesimple.org/Image_menu.html

and menu template named cssmenu.

cssmenu has css classes for activeparent, haschildren and few others that come handy when creating interesting menus.

Hockey wrote: Edit: Shoot, forgot a question regarding SEO URL's

I imagine this is possible and I will poke around the other topics to see what I can find, but here is my dilema:

I have a Flash clip which when clicked jumps to: www.domain.com/subfolder

Can I create pages and use mod_rewrite to emulate that exact foldername? Does CMSMS just virtualize pages and ignore actual folders?
assuming you are using a linux host and apache as a webserver:

1) copy htaccess.txt from doc folder to cmsms root and rename it to .htaccess
2) in config.php enable assume_mod_rewrite
3) in config.php use '/' as page_extension
4) optional if you want to have domain.tld/parent/parent/page style urls enable use_hierarchy in config.php
5) then create a page and set its alias to the one you want

hope this helps