We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4095
    • 372 Posts
    Ok, getting my head around MODx and the site is starting to take shape, damn I had being a newbie smiley

    I have few more questions, sorry guys:

    1. FCKedtior that is bundled with MODx 3.1 used to give me the advanced tool bar. However I changed it to standard at some stage to see the difference and now I can’t get the Advanced bar back.

    I have it set in the System Config but it still shows the standard toolbar. I know its not a cache issue as I have emptied the cache on the server and on the browsers (FF and IE). If I alter the fckconfig.js file and add print and spell check to the standard tool bar, they show up so I know the browser is getting the changes.

    Is there anything I am missing here?

    Moved: to Bug Tracker


    2. When I first used spell checker (set to IEspell) in IE and even tried FF I got an error message and not the link to the download (see attached error message)
    Moved: to Bug Tracker

    3. Tried to change it to ASPELL spellchecker and followed the instructions on the FCKeditor site http://fckeditor.wikiwikiweb.de/Developer’s_Guide/Configuration/Spell_Checker and then on SourceForge as I am running it in Windows server (but using Apache) http://sourceforge.net/docman/display_doc.php?docid=19473&group_id=86602 but get stumped at the following section as I can’t find that file.

    You’ll need to modify the spellchecker.php source, near line 7 to this:

    $aspell_prog = ’"C:\Program Files\Aspell\bin\aspell.exe"’;

    Has anyone got this to work on MODx?

    4. Is there anyway to use icons with Menubuilder? This is probably more a wish list item, but I would like to use icons in the menu. Best solutions to be able to add them when you create a new folder, link or document.

    However in the mean time is there anyway to do it? Thought about CSS but problem is as the menu changes so will the postions. If I could get around that, how can I assign an icon based on the menu item, eg a folder, document, link etc ?
    SORTED: Using ListMenuX and applying CSS.

    Sorry for being a pain smiley
      [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
      Admin Sandbox Login: sandbox Password: castle
    • 1. we’ll have to look into
      2. & 3. I personally have never tried these, anyone?
      4. I use a menu builder that creates the menu as a ul with each item being an li -- this gives me incredible flexibility in being able to style the elements via CSS. There are quite a few list menu snippets on etomite, as well as ListMenuX (see http://vertexworks.com/forums/index.php?topic=361.0) in these forums. You could also just customize the MenuBuilder snippet to place images in your links as appropriate.
        • 4095
        • 372 Posts
        Quote from: OpenGeek at Aug 02, 2005, 10:54 PM

        4. I use a menu builder that creates the menu as a ul with each item being an li -- this gives me incredible flexibility in being able to style the elements via CSS. There are quite a few list menu snippets on etomite, as well as ListMenuX (see http://vertexworks.com/forums/index.php?topic=361.0) in these forums. You could also just customize the MenuBuilder snippet to place images in your links as appropriate.

        Cheers, I decided to bite the bullet and am using ListMenuX now, and now that I figured out some styling, its seems way better smiley

        One issue I have, is that it shows up non published pages / folders as well, I’’m guessing there is a way to prevent this?

        Also where do I change the "tool tip" on the menu? I want to use LONGTITLE rather than DESCRIPTION. The two references I saw to DESCRIPTION didn’t seem to be the right things.

        $menu .= "<li$sLiClass><a$sActiveLinkClass href='[~".$child['id']."~]' title='".$child['longtitle']."'>".$child['pagetitle']."</a>";
        } 



        Cheers.
          [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
          Admin Sandbox Login: sandbox Password: castle
        • Hmmm, it should not be showing unpublished items. I’ll look into the version I posted and get back to you this afternoon. I use this in many places where I have hidden (i.e. unpublished) documents without revealing them though.

          The tooltips are the title tag in the links that are built, so that change you made below should fix the tooltip for the current page link; similar code just a little further down will change it for the rest of the page links. Make sure if your pages are cached that you refresh the site or save changes to the page and refresh that pages cache, to see changes to the menu.
            • 4095
            • 372 Posts
            Sorry dude, my mistake, it was published sad

            I was tired and mixed it up with not in menu.. duh.

            How can I easily hide something from the Menu? I want to hide all the documents in one folder (news rticles) and hide one folder which just contains a page where people are sent after doing a search. Sorted through trial and error, use the Repository smiley

            As for the code to change the tooltip, I’m using the code below, but get no tooltip at all, my guess is that ’longtitle’ is not correct.

            // If child is current document, add activeLink class
            if ($child['id']==$modx->documentIdentifier)
            { 
            $menu .= "<li$sLiClass><a$sActiveLinkClass href='[~".$child['id']."~]' title='".$child['longtitle']."'>".$child['pagetitle']."</a>";
            } 
            else 
            {
            $menu .= "<li$sLiClass><a href='[~".$child['id']."~]' title='".$child['longtitle']."'>".$child['pagetitle']."</a>";
            }



            cheers.
              [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
              Admin Sandbox Login: sandbox Password: castle
            • It’s never a problem. The Show in Menu option is brand new in TP 3.x and we are working on an updated menu building snippet to be included in the next release, that will, among other things, allow configuration of the columns used to populate the link text, tooltips, etc.

              As for the title and tooltips not being populated, are you sure you have values in the longtitle fields for the documents in the menu? If you do, and it’s still not working, check the generated source and see if the title attributes have values that just aren’t showing up as tooltips. If there are values in the title attributes, it might be a rendering issue with the browser you are using to test this?
                • 4095
                • 372 Posts
                hmmmm
                The long title is News Articles and yet the source code shows title=’’", this ocours in both IE6 and FF 1.0.6

                Is the code below correct? It should be ’longtitle’ ?

                $menu .= "<li$sLiClass><a$sActiveLinkClass href='[~".$child['id']."~]' title='".$child['longtitle']."'>".$child['pagetitle']."</a>";
                } 
                else 
                {
                $menu .= "<li$sLiClass><a href='[~".$child['id']."~]' title='".$child['longtitle']."'>".$child['pagetitle']."</a>";
                }


                Thanks for your time one this smiley
                  [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
                  Admin Sandbox Login: sandbox Password: castle
                • That code is correct; however, in order to retrieve the longtitle column in the results being processed here, you’ll need to change this code:

                  $modx->getActiveChildren($id);


                  to

                  $modx->getActiveChildren($id, "menuindex", "ASC", "id, pagetitle, description, parent, alias, menutitle, longtitle");


                  This is because the default value for the $fields parameter in the getActiveChildren() API function does not include the longtitle field.

                  Let me know if you need any more help.
                    • 4095
                    • 372 Posts
                    That soreted the sucker out, so much to learn smiley


                    Thanks.
                      [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
                      Admin Sandbox Login: sandbox Password: castle
                    • Jason,

                      Should we log the default returns of getActiveChildren in the bugtracker as a featrure enhancement for the next Tech Preview?
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me