View Full Version : A Menue Question: Can I Expand and Collapse the Submenus?
MikeinSC
03-15-2007, 01:10 PM
Is there a way for me to access the menu code, so that I may be able to expand, as well as collapse the submenus?
Basically, I would initially want to only show just the main menu items on the site. However, if a user clicks on one the menu items, I would want that menu to expand, thus showing the submenus underneath. Likewise, by clicking on that same main menu item a second time, would allow the menu to then collapse altogether. This would leave a much tidier appearance on the site.
Thanks Everyone,
Mike
lwyau
03-15-2007, 01:16 PM
You can copy this module to your template folder:
public_html/pgm-auto_menu.php.
Modify it as you wish and it will override the default process.
MikeinSC
03-15-2007, 03:57 PM
Thanks for the reply, but I am running into an error and I am unsure if it is a permissions issue with my host, or, if I am the one with the problem.
Upon selecting the file from the Public_HTML folder, I attempted to copy the file into the template folder within my site: public_html/mydomainname/template. However, permission was denied.
I then tried changing the permissions of the file, but I received this error:
[a fatal error or timeout occurred while processing this directive]
Is this problem a permissions issue? If so, how should my permissions be set?
Thanks,
Mike
lwyau
03-15-2007, 04:07 PM
Your permission issue is most likely because PHP "owns" the template directory. One easy way to get around this is to copy the entire template folder to a new folder with your own name. Make the new name just a variation of the old name.
You then "own" the new folder and can proceed. Go to sohoadmin > template manager to switch to the new template.
MikeinSC
03-15-2007, 06:26 PM
Okay...so I did the following:
Within the /public_html/mydomainname/ structure, I created a new folder called mvhtemplate. I first took the entire original "template" folder, and all it's contents, and copied it into the mvhtemplate folder. I then was able to move the pgm-auto_menu.php file into the template folder that resided in the mvhtemplate folder. I then went to the Template Manager and tried to find it from the Template dropdown box. However, I was unable to find it.
I then removed all the files that were in the original template folder, and moved them directly out of the template folder and into just the mvhtemplate folder. I then went back to the Template Manager and was still unable to find my template. Will the name of the template be obvious, or should I look in another area instead of the dropdown box?
I think I am getting close, but, not quite there just yet.
Thanks,
Mike
lwyau
03-15-2007, 07:19 PM
No... public_html/mydomainname/template is not the correct location.
All soho templates are stored as folders in public_html/mydomainname/sohoadmin/program/modules/site_tempaltes/pages/ directory.
Each folder in this directory corresponds to the name of the template. Their name looks something like:
AGRICULTURE-FarmSickle_Autumn-None (It appears as "AGRICULTURE > FarmSickle Autumn" template name in the template manager.)
Suppose this is the template your are using and are having permission problem, you should make a copy of this entire folder into a new one and call it, say,
CUSTOM-FarmSickle_Autumn-None
and go from there.
MikeinSC
03-16-2007, 02:08 PM
I just wanted to send thank you you for the quick and responsive answers to my questions. I appreciate it. I was able to find the area of the templates, as well the menu module. Now I just need to learn to modify the menu module in PHP. ;-)
Thanks again,
Mike
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.