Sep
16

How to Add a Expandable Tree Menu to ModX CMS

This is a older document i wrote last winter. I reposted it here just incase people were looking for it still. I will also post the update with the yahoo yui tree menu very soon.

Expandable Tree Menu for MODx


 

Well i just started playing with modx a week ago or so and plan on
using it for my personal Web Development/Freelance Site.  Ive always
liked a tree menu for my site nav menu and figured that it would be
easy to add to modx with just a minor change to the wayfinder php file.
Anyway i used the Dynamic Drive simple tree menu to do this.

http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

Visit
the above link and download the Javascript file, the css file and the 3
images. Include the java and css file as you would in the example they
give you, then do the following to display the menu.

Using
this menu system requires a ID to be added to the root UL which i
discovered wayfinder could not do so i modifyed wayfinder to do this. 
Please note i used wayfinder 1.0

Step #1



-> Open Manager->Resources->Snippets->Wayfinder

Add this line under the other lines that look like it

$wf->css[rootID] = isset($rootID)? $rootID: ;

Step #2



-> In your text editor open the wayfinder.php file ( located in assets/snippets/wayfinder/wayfinder.inc.php )

Search for this line ( around line # 189 )

if ($classNames) $useClass = class=" . $classNames . ";

Now directly under it add

            if ($curLevel == 1) {
                 
$useClass .= id=" . $this->css[rootID] . ";              
            }

Step #3



Now your call to Wayfinder will look like this

[!Wayfinder?startId=`0`  &hereClass=“ &rowTpl=“&titleOfLinks=`description`&selfClass=“ &rootID=`treemenu` &outerClass=`treeview` &innerClass=''!]
            
<
script type="text/javascript">
ddtreemenu.createTree("treemenu", true, 5)
</script>

And there you have it a working tree menu.

You can see a sample on my unfinished site at www.earthbeans.org

Sep
16

KDE, Ubuntu and my Toshiba P205-S6237 - Part 2

Well I’ve been using KDE for the last month or so and other then afew small problems, It has been perfect. I feel that KDE or Beryl have crashed alot less then they did with GNOME so that’s a good thing. The desktop itself seems more polished with more options for customization which is good. It does seem abit more of a resource hog then GNOME but it still runs perfect on my Laptop so thats no problem really.

One of the main things that was bugging me when i first installed KDE was my soundcard wasn’t working properly for some reason. I found it was just a quick fix with KMix not having the proper master channel set.

Fix KMix Master Channel

In your KDE taskbar you should see a small speaker which is KMix if not then hit Alt-F2 and type

   kmix

Now that you Found/Opened Kmix, Right click on the icon and Select Master Channel. Change this to PCM.

Now Open Terminal, and copy/paste the following

    kmixctrl -s

This will save your new settings for Kmix to start with next time.

Adding Additional Codex’s for MPlayer

Ubuntu comes with afew free format Codex’s but to enable all the Video/Audio options then we’ll have to get the rest of the codexs
Download your codex’s from

http://www.mplayerhq.hu/design7/news.html

Then just extract the tar file and copy them to your /usr/lib/Win32 directory

  tar -xzf /PathtoFile
  sudo mv /PathtoDirectory/* /usr/lib/Win32/
top
Close
E-mail It