Comments (4)
Is there a reason why you use an image TV "slider_src" and not just "inputTVtype":"image"
?
Maybe try using the setting "sourceFrom"
.
It kind of seems to work if I use "sourceFrom": "migx"
in "about_slider_items" and "sourceFrom": "tv"
in "about_slider" and set the correct media-source in the TV "about_slider_items".
about_slider_items
[{
"caption": "Слайдер",
"fields": [{
"field": "image",
"caption": "Изображение",
"inputTV": "slider_src",
"sourceFrom": "migx"
}]
}]
about_slider
{
"field": "items",
"caption": "Изображения",
"inputTV": "about_slider_items",
"sourceFrom": "tv"
}
Also, have you tried using MIGX configurations (menu "Extras" ("Пакеты") -> "MIGX" ->tab "MIGX") instead of putting all the settings directly into TVs?
from migx.
did you try to debug, what happens in getFieldSource?
from migx.
I tried debug, but I didn't quite understand the logic. getFieldSource
returns $mediasource = $this->getDefaultSource()
it seems.
Maybe the problem in prepareSourceForGrid($inputTv)
in the line $tv = $this->modx->newObject('modTemplateVar')
I tried watching ID TV and sources and the last TV didn't have ID.
from migx.
Is there a reason why you use an image TV "slider_src" and not just "inputTVtype":"image"?
I'm using inputTV
to set the media source. There is probably another option, but this one is more familiar to me, and it works reliably.
Maybe try using the setting "sourceFrom".
Yes, this works, thanks.
I solved this using renderChunk
, where I set the id media source:
[{
"dataIndex": "image",
"header": "Изображение",
"sortable": "false",
"renderer": "this.renderChunk",
"renderchunktpl": "<img src='/promtConnectors/system/phpthumb.php?h=80&f=png&src=[[+image]]&source=4'>",
"width": "900"
}]
Also, have you tried using MIGX configurations (menu "Extras" ("Пакеты") -> "MIGX" ->tab "MIGX") instead of putting all the settings directly into TVs?
For this task it is unnecessary, as it seems to me, MIGX configuration takes a lot of time.
I understand that the problem can be solved in different ways, BUT the fact that the current option works a little incorrectly is 100%.
from migx.
Related Issues (20)
- parseInputOptions() calls deprecated mysql_fetch_row() HOT 1
- Hidden Checkbox in Tabs HOT 2
- migxResourceMediaPath creates empty folders HOT 5
- Problem getting service fileHandler HOT 5
- error phpthumbon HOT 1
- MIGX-3.0.2-beta1 not create a table 'tasks' from mysql.schema.xml HOT 2
- MIGX 3.0.2 show warning "media_source_id" when use "this.renderChunk" HOT 2
- Textareas not rendering properly after update
- @EVAL binding not working after update HOT 2
- Console error, variable undefined in PHP 8 HOT 1
- no text on toggletrash button in resource tv migxdb HOT 1
- Problem with TinyMCE, drop-down menu's are behind window HOT 2
- Handler this.handleColumnSwitch doesn't work for MIGX TVs in MODX 3
- Column buttons don't work on migx-3.0.2-beta1, MODX 3.0.4 HOT 2
- Setting "max MIGX records" can be bypassed by using duplication
- MODX, MIGX and Polylang Cyrillic? HOT 3
- Various Deprecated Warnings using 3.0.2-beta1 on PHP 8 in MODX 3.0.X HOT 2
- Unclear logic for displaying the lexicon for empty items in grid
- Add "NOT IN" filter in filterItems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from migx.