Questions tagged [modx-chunks]

In MODX Revolution CMS Chunks are "blocks" that contain textual content. These blocks are used across a website. They cannot have any logic (PHP). However, they can call Snippets (which are executable pieces of PHP) to generate output. Questions about chunks and their usage might have this tag.

28 questions
1
vote
4 answers

modx create layout with chunk and call with template

I'm using modx revolution. I'd like to create a chunk called layout that calls other chucks example Head header nav body footer then in my template do something like //open layout tag[[$layout]] [[$layout]]//close layout tag. then inside of the the…
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
1
vote
1 answer

MODx - How to create MIGX inside another MIGX?

Good day! To my regret I can not create migx inside another migx. Below is the code that I use. mainTV (slider): [ {"caption":"Info", "fields": [ {"field":"slider_title","caption":"Header row","inputTV":"slider_title_row"}, …
1
vote
2 answers

If getResources parent is not empty display chunk

I'm a noob in the modx world. I have a page with subpages and I using getResources to display the content of those in tabs on the parent page. What I would like to do is only display that chunk if the parent has subpages? So something like this, but…
0
votes
0 answers

MODX SimpleSearch uses always the default container

I am using SimpleSearch with the default containerTpl setting (=SearchResults). It seems that SimpleSearch uses the chunk from core/components/simplesearch/elements/chunks and not my SearchResults chunk which has been saved in the database. So no…
0
votes
0 answers

Search function with multiple input field

is there a chance to search with evoSearch with 3 items? I would like the search results page to show the result only if the page meets all 3 conditions? TVs added to the document will be checkboxes with the possibility of multiple selection Below…
yanq
  • 1
  • 1
0
votes
1 answer

Why can't I save Chunks that contain links to CDNs?

I have a Chunk for my header. In it I have several links to CDNs like Bootstrap, eg: All of a sudden I can no longer save updates to this Chunk. Same issue with copying the contents to a new Chunk. Would anyone know what I could do?
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

Dynamic placeHolders

I would like ask, if anyone knows how can I make a dynamic placeholders using an array. Basically I have this structure, and need to create a placeholders where the "name" has the "content" { "name": "bigTitle", "type": "text", "content": "Got…
0
votes
2 answers

Removing an Modx extra manually

I have installed a few extras via Installer but removed them later. However, Installer has not been able to remove them successfully. For example, site log is now full of error messages of partially installed/removed extras. How could I remove…
0
votes
1 answer

Chunks not saving self-closing tags. Any way to fix?

I've set up a brand new site on 2.6.5. As per my usual practice, I set up a head chunk. However I noticed it was not saving. On experimentation I see that it is not saving self-closing tags. For example My test…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/modx" class="post-tag grid--cell" title="show questions tagged 'modx'" rel="tag">modx</a> <a href="../../questions/tagged/modx-evolution" class="post-tag grid--cell" title="show questions tagged 'modx-evolution'" rel="tag">modx-evolution</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 29 '18 at 01:35">asked Sep 29 '18 at 01:35</time> <a href="../../users/1433268/meltingdog" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1433268.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="MeltingDog" /> </a> <div class="s-user-card--info"> <a href="../../users/1433268/meltingdog" class="s-user-card--link">MeltingDog</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">14,310</li> <li class="s-award-bling s-award-bling__gold" title="43 gold badges">43</li> <li class="s-award-bling s-award-bling__silver" title="165 silver badges">165</li> <li class="s-award-bling s-award-bling__bronze" title="295 bronze badges">295</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-46205989"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/46205989/how-to-create-contentblock-with-multiple-text-inputs" class="question-hyperlink">How to create ContentBlock with multiple text inputs?</a></h3> <div class="excerpt">I'm using ContentBlocks from Modmore, and am trying to figure out how to create a new content block that has an input that allows the user to enter a title and another for a source URL. My goal with this is to expose these fields so that they can be…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/modx" class="post-tag grid--cell" title="show questions tagged 'modx'" rel="tag">modx</a> <a href="../../questions/tagged/modx-revolution" class="post-tag grid--cell" title="show questions tagged 'modx-revolution'" rel="tag">modx-revolution</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 13 '17 at 20:04">asked Sep 13 '17 at 20:04</time> <a href="../../users/2030720/hrdcoder" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2030720.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="hRdCoder" /> </a> <div class="s-user-card--info"> <a href="../../users/2030720/hrdcoder" class="s-user-card--link">hRdCoder</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">579</li> <li class="s-award-bling s-award-bling__silver" title="7 silver badges">7</li> <li class="s-award-bling s-award-bling__bronze" title="30 bronze badges">30</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-45902013"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/45902013/html-in-modx-manager-gui-is-not-reflecting-that-on-static-file" class="question-hyperlink">HTML in MODX Manager GUI is not reflecting that on static file</a></h3> <div class="excerpt">I'm messing around with static files for the first time. I want to make all my templates and chunks static .html and .php files. However, there is one issue: the changes I make to my files do not seem to appear within the MODX GUI, and vice…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/modx" class="post-tag grid--cell" title="show questions tagged 'modx'" rel="tag">modx</a> <a href="../../questions/tagged/modx-revolution" class="post-tag grid--cell" title="show questions tagged 'modx-revolution'" rel="tag">modx-revolution</a> <a href="../../questions/tagged/modx-templates" class="post-tag grid--cell" title="show questions tagged 'modx-templates'" rel="tag">modx-templates</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 27 '17 at 05:40">asked Aug 27 '17 at 05:40</time> <a href="../../users/1433268/meltingdog" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1433268.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="MeltingDog" /> </a> <div class="s-user-card--info"> <a href="../../users/1433268/meltingdog" class="s-user-card--link">MeltingDog</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">14,310</li> <li class="s-award-bling s-award-bling__gold" title="43 gold badges">43</li> <li class="s-award-bling s-award-bling__silver" title="165 silver badges">165</li> <li class="s-award-bling s-award-bling__bronze" title="295 bronze badges">295</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-40621715"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/40621715/idx-condition-in-a-getresource-tpl" class="question-hyperlink">IDX condition in a getresource tpl</a></h3> <div class="excerpt">I use getresource like this: [[!getResources? &tpl=`coffrets_id` &parents=`1115`]] inside coffrets_id tpl I'd like to be able to do something like this: [[+idx:is=`1`:then=`show only first getressrouce result`:else=``]] [[+idx:is=`2`:then=`show…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/modx" class="post-tag grid--cell" title="show questions tagged 'modx'" rel="tag">modx</a> <a href="../../questions/tagged/modx-revolution" class="post-tag grid--cell" title="show questions tagged 'modx-revolution'" rel="tag">modx-revolution</a> <a href="../../questions/tagged/modx-resources" class="post-tag grid--cell" title="show questions tagged 'modx-resources'" rel="tag">modx-resources</a> <a href="../../questions/tagged/modx-templates" class="post-tag grid--cell" title="show questions tagged 'modx-templates'" rel="tag">modx-templates</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 15 '16 at 23:45">asked Nov 15 '16 at 23:45</time> <a href="../../users/5780968/sutrah" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5780968.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="sutrah" /> </a> <div class="s-user-card--info"> <a href="../../users/5780968/sutrah" class="s-user-card--link">sutrah</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="2 bronze badges">2</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-35060427"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/35060427/languagecontext-in-front-of-uri-to-fix-the-link" class="question-hyperlink">languageContext in front of [[+uri]] to fix the link</a></h3> <div class="excerpt">I use pdoTools, pdoNeighbors and babel for a multi-language Website on MODX Revo. In pdoNeighbors I define Chunks. [[pdoNeighbors? &sortby=`menuindex` &sortdir=`DESC` &resources=`-23` &tplPrev=`tplLinkZurueckEn` …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/modx" class="post-tag grid--cell" title="show questions tagged 'modx'" rel="tag">modx</a> <a href="../../questions/tagged/modx-revolution" class="post-tag grid--cell" title="show questions tagged 'modx-revolution'" rel="tag">modx-revolution</a> <a href="../../questions/tagged/babeljs" class="post-tag grid--cell" title="show questions tagged 'babeljs'" rel="tag">babeljs</a> <a href="../../questions/tagged/modx-resources" class="post-tag grid--cell" title="show questions tagged 'modx-resources'" rel="tag">modx-resources</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 28 '16 at 11:36">asked Jan 28 '16 at 11:36</time> <a href="../../users/4098353/andywizz" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4098353.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="AndyWizz" /> </a> <div class="s-user-card--info"> <a href="../../users/4098353/andywizz" class="s-user-card--link">AndyWizz</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">113</li> <li class="s-award-bling s-award-bling__bronze" title="8 bronze badges">8</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-32436368"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/32436368/iframes-won-t-save-in-modx-pages-or-chunks" class="question-hyperlink">iframes won't save in MODX pages or chunks</a></h3> <div class="excerpt">I'm trying to embed items from YouTube and SoundCloud into my MODX (2.4) site. For example: <iframe width="100%" height="450" scrolling="no" frameborder="no"…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/iframe" class="post-tag grid--cell" title="show questions tagged 'iframe'" rel="tag">iframe</a> <a href="../../questions/tagged/modx-revolution" class="post-tag grid--cell" title="show questions tagged 'modx-revolution'" rel="tag">modx-revolution</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 07 '15 at 10:22">asked Sep 07 '15 at 10:22</time> <a href="../../users/5308454/dnichol" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5308454.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="DNichol" /> </a> <div class="s-user-card--info"> <a href="../../users/5308454/dnichol" class="s-user-card--link">DNichol</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-32356430"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/32356430/modx-gives-me-empty-page-of-my-document" class="question-hyperlink">ModX gives me empty page of my document</a></h3> <div class="excerpt">I have Document- "news", where are a lot of articles(children documents), if I click on some article, ModX gives me empty page with the current alias name in url. Error Log shows me [2015-09-02 17:06:38] (ERROR @ /index.php) Could not retrieve data…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/modx" class="post-tag grid--cell" title="show questions tagged 'modx'" rel="tag">modx</a> <a href="../../questions/tagged/modx-revolution" class="post-tag grid--cell" title="show questions tagged 'modx-revolution'" rel="tag">modx-revolution</a> <a href="../../questions/tagged/modx-templates" class="post-tag grid--cell" title="show questions tagged 'modx-templates'" rel="tag">modx-templates</a> <a href="../../questions/tagged/modx-resources" class="post-tag grid--cell" title="show questions tagged 'modx-resources'" rel="tag">modx-resources</a> <a href="../../questions/tagged/modx-chunks" class="post-tag grid--cell" title="show questions tagged 'modx-chunks'" rel="tag">modx-chunks</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 02 '15 at 14:50">asked Sep 02 '15 at 14:50</time> <a href="../../users/4563031/maximus-dredoff" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4563031.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Maximus Dredoff" /> </a> <div class="s-user-card--info"> <a href="../../users/4563031/maximus-dredoff" class="s-user-card--link">Maximus Dredoff</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">306</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="17 bronze badges">17</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <div class="s-pagination--item is-selected">1</div> <a class="s-pagination--item" href="../../questions/tagged/modx-chunks_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/modx-chunks_page=2" rel="next" title="Go to page 2"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>