Dec 04, 2008, 12:56 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1] 2 3 ... 15   Go Down
  Print  
Author Topic: Support/Comments for PHx  (Read 44689 times)
0 Members and 1 Guest are viewing this topic.
bS
Coding Team
*
Posts: 398



WWW
« on: Sep 28, 2006, 07:40 PM »

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.
« Last Edit: Nov 28, 2006, 06:38 PM by bS » Logged

Armand Pondman
MODx Coding Team
:: Jot :: PHx
Dr. Scotty Delicious
Coding Team
*
Posts: 1,172


Dr. of Fine Pirate Arts


WWW
« Reply #1 on: Sep 28, 2006, 10:22 PM »

this is a quote from the download page:
Quote
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-
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.
bS
Coding Team
*
Posts: 398



WWW
« Reply #2 on: Sep 29, 2006, 12:54 AM »

don't ya hate those copy/paste bugs  Wink 
Logged

Armand Pondman
MODx Coding Team
:: Jot :: PHx
davidm
Marketing & Design Team
*
Posts: 6,777


The best way to predict the future is to invent it


WWW
« Reply #3 on: Sep 30, 2006, 11:45 PM »

Waow, now this is really a great addition !

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

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
zi
MODx Special Forces /
Administrator
*
Posts: 3,014


May Peace Be On You


WWW
« Reply #4 on: Oct 01, 2006, 05:33 AM »

Wow! Thats great Smiley

Thanks for the nice Plugin bS!

best regards.

zi
Logged

“Internet Explorer’s CSS rendering: WYSIWTF”. — someone genius
--------------------------------------------------
Uncle68
Moderators
*
Posts: 296



« Reply #5 on: Oct 01, 2006, 06:09 AM »

Could I use this for formating placeholders in Ditto? I want to remove <br> 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 Smiley

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 Smiley
Logged
Mark
Coding Team
*
Posts: 3,247


Ditto Developer


WWW
« Reply #6 on: Oct 01, 2006, 10:54 AM »

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.
Logged

Uncle68
Moderators
*
Posts: 296



« Reply #7 on: Oct 01, 2006, 11:31 AM »

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 Smiley
Logged
bS
Coding Team
*
Posts: 398



WWW
« Reply #8 on: Oct 01, 2006, 03:48 PM »

@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.
« Last Edit: Oct 01, 2006, 04:45 PM by bS » Logged

Armand Pondman
MODx Coding Team
:: Jot :: PHx
bS
Coding Team
*
Posts: 398



WWW
« Reply #9 on: Oct 03, 2006, 08:15 PM »

Quick bug fix for version 1.0.2

 in phx.parser.class.inc.php, line 55:

replace:
Code:
$input = $modx->documentObject[$input];

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

Armand Pondman
MODx Coding Team
:: Jot :: PHx
bS
Coding Team
*
Posts: 398



WWW
« Reply #10 on: Oct 05, 2006, 02:35 PM »

PHx 1.3.0 is here.

I have added several new modifiers to make templating a lot simpler.
Also i'm introducing a way of conditional templating

Check it out!

I'll try to update the documentation asap in the mean time you can ask your questions here.
Logged

Armand Pondman
MODx Coding Team
:: Jot :: PHx
Uncle68
Moderators
*
Posts: 296



« Reply #11 on: Oct 06, 2006, 03:45 AM »

PHx 1.3.0 is here.
Wow, this new version is fantastic. How do we get more people to know about this fantastic snippet? This should definitely be a core snippet, in my opinion it changes the way how to work with MODx and makes lots of things much easier and faster to implement.

Great work! Thank you! Cheesy
Logged
bS
Coding Team
*
Posts: 398



WWW
« Reply #12 on: Oct 06, 2006, 07:45 AM »

PHx 1.3.0 is here.
Wow, this new version is fantastic. How do we get more people to know about this fantastic snippet? This should definitely be a core snippet, in my opinion it changes the way how to work with MODx and makes lots of things much easier and faster to implement.

MODx itselve will take care of this in the future. untill then you can use plugins such as PHx this to take you there already
Logged

Armand Pondman
MODx Coding Team
:: Jot :: PHx
bS
Coding Team
*
Posts: 398



WWW
« Reply #13 on: Oct 09, 2006, 01:38 AM »

PHx 1.3.1 is here.

New demo location: http://projects.zerobarrier.nl/modx/ .

I will try to add more in-depth documentation and examples on the demo site.



Logged

Armand Pondman
MODx Coding Team
:: Jot :: PHx
banzai
Testers
*
Posts: 857


MODx Italia


WWW
« Reply #14 on: Oct 11, 2006, 07:23 AM »

I've just installed the plugin (vers.1.3.1) , but now all TVs in my template displays only "Array"  Cheesy

MODx Beta2 rev1417.

Disabled the Phx plugin everything works.
Logged

MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  bubuna.com - Web & Multimedia Design
Pages: [1] 2 3 ... 15   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!