MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Jul 05, 2009, 11:23 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
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
News
:Read
Frequently Asked Questions (FAQ)
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Manager, Parser & the Core
»
PHx
(Moderator:
bS
)
»
Support/Comments for PHx
Pages:
1
...
9
10
[
11
]
12
13
...
15
Go Down
« Previous topic
Next topic »
Print
Author
Topic: Support/Comments for PHx (Read 53758 times)
0 Members and 1 Guest are viewing this topic.
MEGU
Committed to MODx
Posts: 873
Re: Support/Comments for PHx
«
Reply #150 on:
Jul 06, 2007, 03:24 AM »
> Dear netProphET
Thank you for answering my comment.
Quote
I tried TobyL's mod
http://modxcms.com/forums/index.php/topic,14306.msg96738.html#msg96738
,
and it did not do the trick.
I thank that you gived me valuable information.
I readed the thread which you showed.
I think also that my trouble is the same as that.
I tried TobyL's hack too.
But it did not work for me..
Sincerely yours,
Logged
ncrossland
Testers
Posts: 189
Re: Support/Comments for PHx
«
Reply #151 on:
Jul 13, 2007, 06:29 AM »
Quote from: bS on Jun 29, 2007, 11:22 AM
FYI: using the hack will result in PHX not being recursive.
The reason phx takes on the placeholders is because it needs to resolve the value when they are nested.
I haven't incorporated this hack for this reason. BUT I've uploaded a new version (2.1.3) which includes the "get modifier from file" functionality.
Logged
netProphET
Coding Team
Posts: 372
Time is Art
Re: Support/Comments for PHx
«
Reply #152 on:
Jul 16, 2007, 04:18 PM »
Quote from: netProphET on Jul 05, 2007, 10:38 AM
PHx is prohibiting me from specifying a Chunk name with a TV.
ex. {{[*right-hand-images*]}}
It seems to me that 2 problems have surfaced for users of PHx
- using placeholders as snippet parameters
- using a template variable as the name of a Chunk
I would love to see a list of any other similar issues. It feels like there might be others. Are these issues being addressed or do they underscore an incompatibility - in order for PHx to achieve what it does, it makes certain feats of the core MODx parser impossible? If the former is true, I think there should be some sort of official disclaimer within the PHx distribution. Maybe with the rewrite of the core for 0.9.7, this will all go away, so expending energy on it for 0.9.6 is not worthwhile?
Any thoughts on this are appreciated.
Logged
myan24
Full Member
Posts: 117
I love MODx!
Re: Support/Comments for PHx
«
Reply #153 on:
Jul 20, 2007, 08:32 AM »
Hi,
When using ditto I'm trying to display a ditto template if the user is logged in and another if a user isn't logged in. The purpose being that only registered users can view the full document. Here's what I have which seems to work, but I wondered if anyone who has more experience could tell me if this is the best way to do it and if i've done it right:
Code:
[+phx:userinfo=`id`:gt=`0`:then=`
<h3>[+pagetitle+]</h3>
<p>[+introtext+]</p>
<p><a href="[~[+id+]~]">View details</a></p>
`:else=`
<h3>[+pagetitle+]</h3>
<p>[+introtext+]</p>
<p><a href="[~36~]">Login to view details</a></p>
`:strip+]
Document id 36 is a login page.
Thanks for any input!!
Logged
pixelchutes
Coding Team
Posts: 839
Ditto Pagination and PHx
«
Reply #154 on:
Jul 27, 2007, 08:46 PM »
Is it possible to leverage Ditto's pagination placeholders when PHx is enabled?
Yes!
I am using v2.1.3, and PHx gets to my placeholders before Ditto even has a chance
Sadly,
http://ditto.modxcms.com/tutorials/phx-and-nested-tags.html
doesn't account for "non-PHx nested placeholders"...
ditto_pages
Chunk:
Code:
<div id="ditto_wrapper">
<div id="ditto_pages">[+articles_previous+] [+articles_pages+] [+articles_next+]</div>
<strong>[+articles_total+]</strong> Total Articles<br/>
</div>
Update:
The only work-around I was able to get to work was to actually place the chunk & placeholders inside of a snippet:
Code:
<?php
$html
=
'<div id="ditto_wrapper">
<div id="ditto_pages">[+articles_previous+] [+articles_pages+] [+articles_next+]</div>
<strong>[+articles_total+]</strong> Total Articles<br/>
</div>'
;
return
$html
;
?>
So, rather than having to store HTML in the snippet, I am going to rewrite it to pull from the chunk I was using before anyway:
Code:
<?php
return
$modx
->
getChunk
(
'ditto_pages'
);
?>
And that worked!
Now I can keep my code separate, and edit the chunk as I would normally, and PHx behaves nicely with my Ditto placeholders
«
Last Edit: Jul 27, 2007, 09:07 PM by pixelchutes
»
Logged
Mike Reid -
www.pixelchutes.com
MODx Team Member / Contributor
[Module]
SiteSearch
/ [Snippet]
DocPassword
/ [Plugin]
EditArea
/ We support
FoxyCart
________________________________
Where every
pixel
matters.
netProphET
Coding Team
Posts: 372
Time is Art
Re: Support/Comments for PHx
«
Reply #155 on:
Jul 27, 2007, 10:24 PM »
Interesting, Pixelchutes. I used the same kind of solution to solve my problem, which had nothing to do with Ditto.
Problem: with PHx, I became unable to specify a Chunk directly with a TV, like this:
Code:
{{[*right-hand-images*]}}
Solution: so I wrote a snippet whose job it is to simply return a chunk, essentially like your snippet code. Then, to duplicate the functionality of the call above, I just need to change the call to this:
Code:
[[returnChunk? &chunk=`[*right-hand-images*]`]]
This might be the basic pattern to solving this general problem introduced by PHx.
Logged
pixelchutes
Coding Team
Posts: 839
Re: Support/Comments for PHx
«
Reply #156 on:
Jul 29, 2007, 12:59 PM »
Quote from: netProphET on Jul 27, 2007, 10:24 PM
This might be the basic pattern to solving this general problem introduced by PHx.
What if PHx used different identifiers (or was able to be custom defined) other than
[+ and +]
? It would seem anything that NEEDED PHx modifiers/functionality could leverage PHx parser's identifiers, while regular placeholders used the MODx default ones?
I know this would solve at least 3 issues I have personally ran into, which involve Ditto, eForm, and your chunk example above...
Logged
Mike Reid -
www.pixelchutes.com
MODx Team Member / Contributor
[Module]
SiteSearch
/ [Snippet]
DocPassword
/ [Plugin]
EditArea
/ We support
FoxyCart
________________________________
Where every
pixel
matters.
rthrash
Foundation
Posts: 10,471
Re: Support/Comments for PHx
«
Reply #157 on:
Jul 29, 2007, 05:50 PM »
Great point Mike. Sounds like a good consideration for a future release.
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (Revolution Wiki)
|
Fisheye SVN Browser
netProphET
Coding Team
Posts: 372
Time is Art
Re: Support/Comments for PHx
«
Reply #158 on:
Nov 07, 2007, 10:35 AM »
This is a vote for adding 2 core extenders to PHx.
- urlencode
- stripslashes
I have made my own extender mini-snippets to provide this functionality. They work fine, but they're just one simple php function, and I'm left thinking that if they were part of the PHx core code, there would be less processing going on.
I am using these functions a lot during form processing (along with the already-defined htmlent processor)... I am able to cut a lot of processing code out of my form handling snippets by moving these processors into the template.
May this also be considered as PHx functionality is integrated into the 0.9.7 core.
Logged
boblin
Jr. Member
Posts: 42
nested backticks in PHx
«
Reply #159 on:
Dec 20, 2007, 06:01 AM »
How to avoid cases where i have to use snippet with parameters inside Phx call? The only way i found is to create chunk with such call, but it is against good programing practices imho (-;
Logged
pixelchutes
Coding Team
Posts: 839
Re: nested backticks in PHx
«
Reply #160 on:
Dec 20, 2007, 04:26 PM »
Quote from: boblin on Dec 20, 2007, 06:01 AM
How to avoid cases where i have to use snippet with parameters inside Phx call? The only way i found is to create chunk with such call, but it is against good programing practices imho (-;
Code:
[+phx:input=`[[YourSnippet?¶m1=`value1`]]`:is=`...`:then=`...`+]
Logged
Mike Reid -
www.pixelchutes.com
MODx Team Member / Contributor
[Module]
SiteSearch
/ [Snippet]
DocPassword
/ [Plugin]
EditArea
/ We support
FoxyCart
________________________________
Where every
pixel
matters.
Marschant
Full Member
Posts: 133
PHx kills any wayfinder calls that use placeholders
«
Reply #161 on:
Feb 01, 2008, 08:37 AM »
Installed PHx last night to try and get around an irritating Ditto issue only to have all my wayfinder calls that use placeholders die. Here's an example of what I've done:
Code:
[!Wayfinder? &startId=`22`
&level=`2`
&ph=`currentDevs`
&config=`colliers`
!]
[!Wayfinder? &startId=`23`
&level=`1`
&ph=`pastDevs`
&config=`colliers`
!]
<ul id="leftNav">
<li class="toplevel blue"><a class="toplevel" href="[(site_url)][~1~]">Home</a></li>
<li class="toplevel current"><a class="toplevel" href="[(site_url)][~22~]">Current Developments</a>[+currentDevs+]</li>
<li class="toplevel past"><a class="toplevel" href="[(site_url)][~23~]">Past Developments</a>[+pastDevs+]</li>
<li class="toplevel purple"><a class="toplevel" href="[(site_url)][~10~]">About Colliers</a></li>
</ul>
PHx plugin enabled: zero output...
PHx disabled: menu items are shown...
Any ideas?
Logged
pixelchutes
Coding Team
Posts: 839
Re: PHx kills any wayfinder calls that use placeholders
«
Reply #162 on:
Feb 01, 2008, 12:43 PM »
Quote from: Marschant on Feb 01, 2008, 08:37 AM
PHx plugin enabled: zero output...
Any ideas?
It's all a matter of understanding how PHx works. Unfortunately, PHx often conflicts with placeholders created by other snippets as it pre-parses the actual placeholder BEFORE it even gets set in the first place.
Logged
Mike Reid -
www.pixelchutes.com
MODx Team Member / Contributor
[Module]
SiteSearch
/ [Snippet]
DocPassword
/ [Plugin]
EditArea
/ We support
FoxyCart
________________________________
Where every
pixel
matters.
Marschant
Full Member
Posts: 133
Re: Support/Comments for PHx
«
Reply #163 on:
Feb 02, 2008, 12:36 AM »
Thanks I understand that issue, I'm really hoping that 0.9.7 will address certain shortcomings with what I consider to be the core MODx snippets: Ditto, Wayfinder & PHx... I mentioned in a previous post (
http://modxcms.com/forums/index.php/topic,20811.0.html
) my misgivings with Wayfinder (no tv filtering support), Ditto (no native tiered output for parents/children) and now PHx (powerful conditionals & modifiers, prevents use of placeholders).
I'm just getting incredibly frustrated with the limits of each one, MODx is brilliant but has many issues preventing it from being the Numero Uno CMF of choice. Since many projects rely on complex associations, and tv's are the only way to handle this, I feel there are way too many hoops to jump through when trying to get the three snippets mentioned above to work together.
Another issue for me and potentially for clients is local => live synchronisation, hence I'm taking the approach of using as many file system resources as possible i.e. snippets, chunks & partials stored in sub-dir of main template, it just seems easier to FTP new files instead of messing around with a DB synch, anyway I've wandered off-topic...
Logged
luuuciano
Sr. Member
Posts: 345
Re: Support/Comments for PHx
«
Reply #164 on:
Feb 25, 2008, 08:01 AM »
Hi!
can this be done with phx?
I have a products section, and some products have more details (more photos, made with a maxigallery in a child of each document),something like this:
products
product1
product2
product3
product3details
product4
product5
product5details
...and so on
so, if the product have a child (details) I need a link to it in the non detailed product document...
is there any way to do it?
any idea?
TIA, and sorry for the bad english
luciano
Logged
---
ˇVamos, todos a usar el canal modx de habla hispana!
irc: irc.freenode.net:6666
canal: #modx-es
Pages:
1
...
9
10
[
11
]
12
13
...
15
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> Front-end Document Management
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.3
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Webworker Lounge
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
International Support & Translations
-----------------------------
=> Internationalization
=> Bulgarian
===> Поддръжка
=====> Често задавани въпроси
=====> Инсталация
=====> Модули, Плъгини, Снипети и код
=====> Дизайн и Шаблони
===> Документация, Ръководства и Превод
=====> Документация
=====> Ръководства
=====> Превод
===> Общество
=====> Съобщения
=====> Представете се
=====> Представете сайта си
=====> Дискусии извън MODx
=> Chinese
=> Czech
===> Oznámení
=====> Důležitá oznámení/novinky
=====> Bezpečnost
===> Komunita
=====> Oznámení
=====> Představte se, prosím
=====> Ukázky práce
=====> Různé aneb cokoli co se jinam nehodí
===> Podpora
=====> FAQ (často kladené otázky)
=====> Instalace
=====> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
=====> Design & Šablony
===> Dokumentace, tutoriály (návody) a překlady
=====> Dokumentace
=====> Tutoriály (návody)
=====> Překlady (lokalizace)
=> Dutch
===> Ondersteuning
=====> Veel gestelde vragen
=====> Modules, Plugins, Snippets & Code
=====> Design & Templates
===> Documentatie, Tutorials en Vertalingen
=====> Documentatie
=====> Tutorials
=====> Vertalingen
===> Community
=====> Aankondigingen
=====> Stel jezelf voor
=====> Site Showcase
=====> De stamkroeg
=> Filipino
===> Suporta
=====> Kadalasang tanong
=====> Instalasyon
=====> Moduler, Maidadagdag, Karagdagang mga Code
=====> Desenyo at Templates
===> Dokumentasyon, Mga Turo, Mga Salin
=====> Dokumentasyon
=====> Mga Turo
=====> Mga Salin
===> Kumunidad
=====> Anunsyo
=====> Ipakilala ang sarili
=====> Ang Galing ng pinoy
=====> Tsismisan atbp
=> Finnish
===> Tuki
=====> UKK
=====> Asennus
=====> Moduulit, liitännäiset, koodinpätkät
=====> Ulkoasu/Sivustopohjat
===> Dokumentaatio, oppaat ja käännökset
=====> Dokumentaatio
=====> Käännökset
=====> Oppaat
===> Yhteisö
=====> Tiedotteet
=====> Esittele itsesi
=====> MODx sivustosi
=====> Kahvihuone
=> French
===> Support
=====> FAQ
=====> Installation
=====> Module, plugin, snippets
=====> Design/Templates
===> Documentation, Tutoriels et Traductions
=====> Documentation
=====> Traduction
=====> Tutoriels
===> Communauté
=====> Annonces
=====> Présentez vous
=====> Vos sites
=====> Le Bistrot Français
=> German
===> Support (de)
=====> FAQ (de)
=====> Installation (de)
=====> Module, Plugins, Snippets & Code (de)
=====> Design & Templates (de)
===> Dokumentation, Tutorials und Übersetzung
=====> Dokumentation
=====> Tutorials (de)
=====> Übersetzung
===> Community (de)
=====> Ankündigungen
=====> Stellt Euch vor
=====> Beispielseiten
=====> Off Topic / Verschiedenes
=> Hebrew
===> הכרזה
=====> חדשות חשובות
=====> אבטחה
===> תמיכה
=====> התקנה
=====> תיעוד, מדריכים ותרגומים
=====> עיצוב ותבניות
=====> שאלות נפוצות
===> תיעוד, מדריכים ותרגומים
=====> תיעוד
=====> מדריכים
=====> תרגומים
===> קהילה
=====> הודעות
=====> הצג את עצמך
=====> אתרים לדוגמא
=====> כללי
=> Irish
=> Italian
===> Supporto
=====> FAQ
=====> Installazione
=====> Moduli, Plugin, Snippet e altro codice
=====> Web Design e Template
===> Documentazione, Tutorial e Traduzione
=====> Documentazione
=====> Tutorial
=====> Traduzione
===> Comunitŕ
=====> Annunci
=====> Presentazioni
=====> Siti in vetrina
=====> Chiacchiere in libertŕ
=> Japanese
===> サポート
=====> 良くある質問
=====> インストール
=====> モジュール・プラグイン・スニペット・本体
=====> デザインやテンプレート
===> マニュアル・テュートリアル・翻訳
=====> マニュアル
=====> 事例集、テュートリアル
=====> 日本語化
===> コミュニティ
=====> お知らせ
=====> MODxサイト展示場
=====> 自己紹介
=====> 雑談
=====> 国産リソース
=> Persian - فارسي
===> پشتيباني
=====> راهنما
=====> نصب
=====> ماژول , پلاگین ها , کد ها و جزییات
=====> طراحی و قالب ها
===> مستند سازی , آموزش ها و ترجمه ها
=====> مستند سازی
=====> آموزش ها
=====> ترجمه ها
===> انجمن ها
=====> اخبار
=====> معرفی کردن خود
=====> نمایش دادن سایت ها
=====> بحث های عمومی و سایر موضوعات
=> Polish
===> Wsparcie
=====> FAQ
=====> Instalacja
=====> Moduły, pluginy, snipety i kod
=====> Wygląd i szablony
===> Dokumentacja, tutoriale i tłumaczenie
=====> Dokumentacja
=====> Tutoriale
=====> Tłumaczenie
===> Społeczność
=====> Ogłoszenia
=====> Przedstaw się
=====> Twój serwis WWW
=====> Hyde Park
=> Portuguese
===> Suporte
=====> FAQ - Dúvidas Frequentes
=====> Instalaçăo
=====> Módulos, Plugins, Snippets e Código
=====> Design e Templates
===> Documentaçăo, Guias e Traduçőes
=====> Documentaçăo
=====> Guias
=====> Traduçőes
===> Comunidade
=====> Anúncios
=====> Apresente-se!
=====> Bar da esquina (fora de tópico)
=====> Portfólio de Sites
=> Russian
===> Поддержка
=====> ЧАВО (FAQ)
=====> Установка
=====> Модули, плагины, сниппеты и код
=====> Дизайны и шаблоны
===> Документация, Уроки, Перевод
=====> Документация
=====> Уроки
=====> Перевод
===> Сообщество
=====> Объявления
=====> Представьтесь публике
=====> Галерея сайтов
=====> Диван
=> Scandanavian
===> Support
=====> Frĺgor och svar
=====> Installation
=====> Moduler, plugins, snippets och kod
=====> Design & sidmallar
===> Dokumentation, guider och översättningar
=====> Dokumentation
=====> Guider
=====> Översättningar
===> Webbgemenskap
=====> Meddelanden
=====> Presentera dig själv
=====> Visa upp dina webbsidor
=====> Ordet fritt
=> Slovak
=> Spanish
===> Soporte
=====> FAQ
=====> Instalación
=====> Modulos, Plugins, Snippets & Código
=====> Diseńo y plantillas
===> Documentación, Tutoriales y Traducciones
=====> Documentatción
=====> Tutoriales
=====> Traducciones
===> Comunidad
=====> Anuncios
=====> Presentaciones personales
=====> Muestra de sitios
=====> El Café
=> Swedish
=> TÜRKÇE (Turkish)
===> Destek
=====> SSS
=====> Kurulum
=====> Modüller, Pluginler, Snippetlar & Kodlar
=====> Dizayn & Temalar
===> Belgeleme, Eğitmenler ve Çeviri
=====> Belgeleme
=====> Eğitmenler
=====> Çeviri
===> Topluluk
=====> Duyurular
=====> Kendinizi Tanıtın
=====> Site Vitrini
=====> Konu Dışı