Questions tagged [modx-resources]

Basically, Resources represent pages in MODX Revolution CMS. There are 4 types of Resources: Static Resources, Documents, Weblinks and Symlinks. This tag can be used in questions regarding troubles with Resources in MODX Revolution.

51 questions
0
votes
1 answer

$modx->getObject returns NULL

I've got a problem with modx evo (1.0.15). I wanna get resource by id in my snippet. Snippet call looks like this: [[byid? &id=`3`]] and proccessing looks like this: $name = 'modResource'; $criteria = array('id' => $id); $document =…
petya
  • 3
  • 2
0
votes
1 answer

Group 'input option values' in template variable with 'listbox' type

I would like to apply the grouped text in listbox, looks like this to this is listbox in the resources page. I tried to add the ‘optgroup’ tag into 'manager\templates\default\element\tv\renders\input\listbox-multiple.tpl' but still not working,…
user3274165
  • 138
  • 2
  • 11
0
votes
1 answer

Modx chunk as tpl returns php array in pre tags

I have a problem regarding showing the contents of template file. My actual code to get this template is: [[!getPage? &element=`getResources` &tpl=`individual-productswebspec` &sortby=`menuindex` &sortdir=`ASC` …
user3963491
0
votes
2 answers

Trying to create multiple Modx resources from a form

I have a form that is within a table that looks similar to the below, I have a Modx snippet that runs when this is submitted that should create multiple new resources, based on the input arrays send through. …
nclark
  • 71
  • 1
  • 6
0
votes
3 answers

Modx with custome API (adding new wsdl file)

I'm new to modx and before I go further in it I would like to know if we can add a new WSDL file so that we can use remote soap or rest APIs?
chaky
  • 117
  • 2
  • 13
0
votes
1 answer

ModX getResource stopped working

I can't get a result with getResource anymore. For example, I want to query my blog posts: My articles are created with the Articles plugin. In my template, I have: [[!getResources:ifempty=`No Resource`? &parents=`33` &showHidden=`1` ]] It simply…
fkoessler
  • 6,932
  • 11
  • 60
  • 92
0
votes
2 answers

ModX Revolution Caching Dynamicly Generated Placeholders

How can I cache (using ModX's cacheManager), the dynamic placeholders i am generating here: // recursive function to generate our un-ordered list of menu items if(!function_exists('GenerateMenu')){ function GenerateMenu($level, $parent = 0, $wc,…
Kevin
  • 2,684
  • 6
  • 35
  • 64
0
votes
3 answers

xPDO compiles integer as string

$query = $this->modx->newQuery('modResource'); $query->leftJoin('modTemplateVarResource', "price", array("modResource.id = price.contentid", "price.tmplvarid = 2")); $query->where(array("price:>=" => 6000)); $query->prepare(); echo…
YanAlex
  • 99
  • 1
  • 10
0
votes
4 answers

ModX getResources displays child resources as well as parent level resources

I have getResources call: [[!getResources? &parents=`[[*id]]` &limit=`15` &tpl=`contentsectiontpl` &sortdir=`ASC` &sortby=`menuindex` &includeContent=`1`]] In a parent resource. I wish to only display the child resources of this parent, but the…
0
votes
2 answers

Master Snippet to control other Dynamic Snippets

I am working on a project that allows for a massive import of data into a ModX website. With this, I am needing to be able to display the data from the fields imported, but need to be able to allow the client to place each individual field where…
Kevin
  • 2,684
  • 6
  • 35
  • 64
0
votes
2 answers

Output placeholders of modx TV list-box

I am new to modx and have limited knowledge of PHP. I'm writing a snippet and struggling with the syntax. I want to output placeholders of template variable list-box. What I have tried to do is to get the TV list-box IDs and loop through each one…
0
votes
1 answer

How do I structure modx pages so they aren't all at the root URL, whilst being organised in a folder in the manager?

I'm developing my site in modx, and have some custom error pages that I want to group in a folder called "error", and I want them to only be accessible through domain.com/error/page.html. I've already placed the custom error pages in a container…
user1694077
0
votes
2 answers

ModX Ditto: Display selective documents

I want to use Ditto to display a list of documents. I cannot seem to set this up to work correctly. So far I have: [!Ditto? &parents=`3` &documents=`10,32,339,86,303,302` &tpl=`blog_summary`!] But this gives me all the items under…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
2 answers

How to re-order weblinks in ModX

Currently on our site we have 4 weblink resources that are displaying in proper order (by the date on the title) on the page, but after adding one more weblink resource, it is added to the page but appears one below the first link, when it should be…
starmandeluxe
  • 2,443
  • 3
  • 27
  • 44
0
votes
1 answer

MODX getPage caches non cacheable snippets in 1st resource, how to fix the bug

I have a strange problem. I use getPage to view some similar resources. They have one template and same resource options. The problem is that getPage trying to cache my non-cacheable snippets in the 1st element. If u see next code, u can notice the…