Topic: Support/Comments for PHx  (Read 69977 times)

Pages: [1] 2 3 ... 11   Go Down

#1: 28-Sep-2006, 07:40 PM

Moderator

bS
Posts: 398

WWW
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: 28-Nov-2006, 06:38 PM by bS »
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#2: 28-Sep-2006, 10:22 PM

Coding Team

Dr. Scotty Delicious
Posts: 1,192

D.F.P.A.

WWW
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-

#3: 29-Sep-2006, 12:54 AM

Moderator

bS
Posts: 398

WWW
don't ya hate those copy/paste bugs  Wink 
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#4: 30-Sep-2006, 11:45 PM

Marketing & Design Team

davidm
MODx evangelist
Posts: 7,073

The best way to predict the future is to invent it

WWW
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
.: 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.67 - PHP 5.2.8 | 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

#5: 1-Oct-2006, 05:33 AM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

WWW
Wow! Thats great Smiley

Thanks for the nice Plugin bS!

best regards.

zi

#6: 1-Oct-2006, 06:09 AM

Moderators

Uncle68
Posts: 299

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

#7: 1-Oct-2006, 10:54 AM

Emeritus
Mark
Posts: 3,250

Ditto Developer

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

#8: 1-Oct-2006, 11:31 AM

Moderators

Uncle68
Posts: 299

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

#9: 1-Oct-2006, 03:48 PM

Moderator

bS
Posts: 398

WWW
@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: 1-Oct-2006, 04:45 PM by bS »
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#10: 3-Oct-2006, 08:15 PM

Moderator

bS
Posts: 398

WWW
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)];
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#11: 5-Oct-2006, 02:35 PM

Moderator

bS
Posts: 398

WWW
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.
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#12: 6-Oct-2006, 03:45 AM

Moderators

Uncle68
Posts: 299

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

#13: 6-Oct-2006, 07:45 AM

Moderator

bS
Posts: 398

WWW
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
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#14: 9-Oct-2006, 01:38 AM

Moderator

bS
Posts: 398

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



Armand Pondman
MODx Coding Team
:: Jot :: PHx

#15: 11-Oct-2006, 07:23 AM

Testers

banzai
Posts: 880

MODx Italia

WWW
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.
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  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#16: 11-Oct-2006, 08:14 AM

Moderator

bS
Posts: 398

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

I will look into this Smiley
Can you give me an example of what kind of TV is responding with Array ?
« Last Edit: 11-Oct-2006, 08:31 AM by bS »
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#17: 11-Oct-2006, 08:38 AM

Testers

banzai
Posts: 880

MODx Italia

WWW
All kind of TVs.
I'm using a lot of Tv for custom content (richtext box) and some TV to output UserId and other User infos.

example:
-  The welcome Personalize chunk displays ''Welcome Array!"  Grin

- all content box tv displays only "Array"
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  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#18: 11-Oct-2006, 08:47 AM

Support Subscriber

Lizard
Posts: 289

Im having the sam eproblem .. my richtext frontend newspublisher said content:array

and i couldnt get the pics to appear Cheesy

#19: 11-Oct-2006, 08:49 AM

Moderator

bS
Posts: 398

WWW
All kind of TVs.
I'm using a lot of Tv for custom content (richtext box) and some TV to output UserId and other User infos.

example:
-  The welcome Personalize chunk displays ''Welcome Array!"  Grin

- all content box tv displays only "Array"

Ok thanks.. i will fix this asap Smiley
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#20: 11-Oct-2006, 11:09 AM

Moderator

bS
Posts: 398

WWW
Download 1.3.2 Patch from attachment and overwrite in PHx dir, i will update repository later.  Grin

* Plugin-PHx-Patch-1.3.1-1.3.2.zip (2.48 KB - downloaded 427 times.)
Armand Pondman
MODx Coding Team
:: Jot :: PHx
Pages: [1] 2 3 ... 11   Go Up
0 Members and 1 Guest are viewing this topic.