Quote from: Wild at Sep 06, 2009, 08:53 AM
I call [[BreadCrumbs? &langid=`(yams_id)`]] and the output result is is not breadcrumbs with links but text [[BreadCrumbs? &langid=`ru`]]
Forgot that you are using the (patched) 1.1.4 alpha version, not my development version. With all versions up to 1.1.4 alpha you cannot use YAMS placeholders inside the parameters of cacheable snippet calls. (In the next version you will be able to.) So, you’ll have to use [[BreadCrumbs? &langid=`ru`]] in the Russian content field, [[BreadCrumbs? &langid=`en`]] in the English etc. If that still doesn’t work, I once encountered a similar problem with the snippet call not being evaluated and it turned out that a RTE was reformatting the snippet call and breaking it (by inserting new lines or something like that). In that case, switch off the RTE and reformat the snippet call, or put the snippet calls in chunks.
Quote from: Wild at Sep 06, 2009, 08:53 AM
I presume that there must be some PHx somewhere? In Content_NewsList_Tpl, or in your document template? If so, can you show us what it is please?
I wanted to use PHx but because of pagination problem I didn’t. I just installed PHx plugin.
This is my Content_NewsList_Tpl
<li><span class="date">[+date+]</span><br />
<strong><a href="[(base_url)][~[+id+]~]">[+pagetitle+]</a></strong><br />
[+introtext+] <a href="[(base_url)][~[+id+]~]"><img src="/images/ico_dotes_orange.gif" alt="" width="22" height="7" border="0" /></a></li>
Your Ditto template looks fine. Your plugin execution order looks fine. I know that Ditto uses its own installed version of PHx by default - so perhaps there is some conflict between the Ditto version and your installed version. It could be that the PHxParser class is illegally being defined twice or something like that.
I recommend taking a look at the Ditto parameters to see if there are any PHx specific configuration parameters.
I recently encountered a problem with PHP Parse errors due to multiple definition of the PHxParser class. In that case I managed to solve the problem by editing the phx plugin and changing the include line to:
if ( ! class_exists( 'PHxParser' ) )
{
include_once $modx->config['rb_base_dir'] . "plugins/phx/phx.parser.class.inc.php";
}
I’m not sure if that will help you, but just in case I thought I would post it up.