We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15003
    • 85 Posts
    I am new to MODx and would like some help understanding how things work.

    Here’s my scenario:
    I am using a jquery ui accordion in a side column
    One of the panels is "account details"

    Goal:
    When a user is logged in I would like the account details to show. When there is no user logged in I don’t want that panel showing at all.

    What I thought:
    I thought I would be able to use PHx, but I’m so new I’m having a hard time visualizing how everything works together. After going through the forum I believe that the code below set’s me on the right track, but I still have some questions.

    [*phx:mo=`myWebgroup`:then=`[*acct-details*]`:else=`[*blank*]`*]



    • When I installed phx the last bit of instructions was:
      On the Configuration tab -> Plugin configuration enter:
    &phxdebug=Log events;int;0 &phxmaxpass=Max. Passes;int;50

      I didn’t see a "Plugin configuration" field on the "Configuration tab"

      [list]
    • Does phx actually know what `myWebgroup` is? I was thinking I would need to define this, but didn’t know where or how to go about it.
    • I was originally thinking that "acct-details" would be a chunk, but I see that PHx doesn’t support chunk tags. So I guess a placeholder would be the next best option, but I don’t know how to go about creating a custom one.

    I would love an overview of how this should logically take place, but any help or reference links would be greatly appreciated.

    Jules[/list]
      • 11325
      • 8 Posts
      The "plug-in configuration is available from the resources tab.

      Resources > Manage Resources > Plugins > Edit > Configuration.

      I’ve never used phx, so am unable to offer more help than that, sorry!
        --------------------
        If its not broken, I just haven't gotten to it yet.
        ------------------------------------------------------
        Capitalisation is the ONLY difference between
        "I had to help my uncle Jack off a horse.." and "I had to help my uncle jack off a horse.."
        Remember children, check your grammar carefully! smiley
        ------------------------------------------------------
        If vegetable oil is made from vegetables, and olive oil is made from olives, then wtf is baby oil made from??!

        ------------------------------------------------------
        • 15003
        • 85 Posts
        Thank you GreyedDesign

        I was in the configuration under tools on the top tabs --totally off base. Thanks for the redirection!

        Jules
          • 11325
          • 8 Posts
          You’re welcome. Glad I could help smiley
            --------------------
            If its not broken, I just haven't gotten to it yet.
            ------------------------------------------------------
            Capitalisation is the ONLY difference between
            "I had to help my uncle Jack off a horse.." and "I had to help my uncle jack off a horse.."
            Remember children, check your grammar carefully! smiley
            ------------------------------------------------------
            If vegetable oil is made from vegetables, and olive oil is made from olives, then wtf is baby oil made from??!

            ------------------------------------------------------