Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Manager, Parser & the Core
  • PHx
  •  
  • <
  • 1
  • 2
  • 3
  • ...
  • 21
  • 22
  • >
  • Support/Comments for PHx#

  • 4195
    398
    Armand Pondman
    MODx Coding Team
    :: Jot :: PHx

    bS Reply #1, 5 years, 4 months ago

    Reply
    • Link to this post#1
    PHx (Placeholders Xtended) will add the capability of output modifiers when using placeholders, template variables and settings tags. It also supports nested tags.

    * Latest Version: http://modxcms.com/PHx-1006.html * PHx Demo: http://projects.zerobarrier.nl/modx/ * Documentation: http://wiki.modxcms.com/index.php/PHx (wiki) * Technical Doc: http://wiki.modxcms.com/index.php/PHx#Technical_Documentation (explaining how PHx works )

    To Do:
    - Bringing you more documentation.
    - Implementation of more common used filters/modifiers.

    Feature Requests:
    Use this forum to post any comments about this addition or any questions you have regarding its use.


  • 26435
    1,193
    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
    All of the above... in no specific order.

    I send pointless little messages

    ScottyDelicious Reply #2, 5 years, 4 months ago

    Reply
    • Link to this post#2
    this is a quote from the download page:
    4) Create a new snippet in the manager called "PHx" and copy/paste the contents

    Is it supposed to read 4) Create a new plugin.... ?

    great software you have been putting out bS (Jot... and now PHx!). you have been a buSy coder lately.

    -sD-


  • 4195
    398
    Armand Pondman
    MODx Coding Team
    :: Jot :: PHx

    bS Reply #3, 5 years, 4 months ago

    Reply
    • Link to this post#3
    don't ya hate those copy/paste bugs


  • 6726
    7,075
    - Former MODx evangelist
    .: COO - Commerce Guys - Community Driven Innovation :.


    MODx est l'outil id

    davidm Reply #4, 5 years, 4 months ago

    Reply
    • Link to this post#4
    Waow, now this is really a great addition !

    The ifempty and date modifiers will make my life easier I love the easy syntax to use them too


  • 33337
    3,899
    - MODX Special Forces
    Share and explore websites made in MODx by Zaigham's Web | Tweet @zaigham | Resource Center


    MODx Current | MODx on Git! | BUGS! | RTFM (Read the Fully awesome Manuals)

    Zaigham (aka zi) Reply #5, 5 years, 4 months ago

    Reply
    • Link to this post#5
    Wow! Thats great
    Thanks for the nice Plugin bS!

    best regards.

    zi


  • 31037
    357

    Uncle68 Reply #6, 5 years, 4 months ago

    Reply
    • Link to this post#6
    Could I use this for formating placeholders in Ditto? I want to remove
    from articles when using [+summary+] in my template for Ditto. I tried to do it by [+summary:strip+] but it doesn't work.

    Maybe I'm totally misunderstanding what to use PHx for, I'm kind of a newbie
    I first pasted the Plugin code starting/ending with <?php ?> when creating the PlugIn, that removed my text completely. After looking into the existing plugins I saw that <?php ?> probably shouldn't be there, so I removed it. But now I instead only get an empty page saying "Array".

    Btw, install instructions included in file still says create a snippet


  • 18397
    3,250
    Documentation TRAC (Bugtracker) Forum How to get help
    User Wiki Credits SVN Server Ditto HQ
    Stable Download Development Download

    MARKSVIRTUALDESK Reply #7, 5 years, 4 months ago

    Reply
    • Link to this post#7
    No, you can't use PHx with Ditto as it parses its placeholders before sending them to MODx. However, I do plan on incorperating PHx functionality into Ditto in the future.


  • 31037
    357

    Uncle68 Reply #8, 5 years, 4 months ago

    Reply
    • Link to this post#8
    Okej, sounds perfect! PHx is great, and Ditto will be even better when it supports PHx.

    I'll find another way to get rid of line feeds in the Ditto summary, I'll try to find anything in the Ditto thread... or maybe that can't be made with Ditto, if so I wait until Ditto works with PHx .

    Thanks for the reply


  • 4195
    398
    Armand Pondman
    MODx Coding Team
    :: Jot :: PHx

    bS Reply #9, 5 years, 4 months ago

    Reply
    • Link to this post#9
    @Mark, you can include the chunkie.class.inc.php (available in Jot) in Ditto.
    Chunkie is an API I created to simplify all the template logic and it uses the PHx parser.
    I will release Chunkie with documentation somewhere these days.


  • 4195
    398
    Armand Pondman
    MODx Coding Team
    :: Jot :: PHx

    bS Reply #10, 5 years, 4 months ago

    Reply
    • Link to this post#10
    Quick bug fix for version 1.0.2

    in phx.parser.class.inc.php, line 55:
    replace:
    $input = $modx->documentObject[$input];


    with
    $input = $modx->documentObject[str_replace("#","",$input)];


  • <
  • 1
  • 2
  • 3
  • ...
  • 21
  • 22
  • >



Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Aikdo, Alterscape, Dimmy, Lizard, MARKSVIRTUALDESK, MEGU, Mar, Marschant, Mazso, Mitch, Perrine, Scott Andrew, ScottyDelicious, TobyL, Uncle68, YankeeDeuce, aour, apatkar, bS, banzai, boblin, charliez, cleveley, davidm, doze, edipo, feary, gcruz, grunt_lord, heliotrope, laurentc, legatissima, myan24, ncrossland, netProphET, pixelchutes, rethrash, tjalve, yentsun, zaigham

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Work at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy