your MIGX - configuration?
I didn't actually get as far as configuring it. I've been very cautious, testing the site after every third party install, and simply installing migx caused the issue - or at least highlighted something wrong elsewhere.
Maybe the attached will help.
First of all I think MIGx is da bomb! But I've got several questions which I can't figure out in MIGX/getImageList-snippet;
- I've got 20 TV's in one MIGX-TV so Grid Columns look crap; tiny columns ;-( Probably want something like tabbed view in Form Tabs or maybe multiple tables. How can I customize the Grid-columns?
- How do I add inputTV's like radio and checkboxes?
- inputTV:image doesn't show dialog-window where you can browse filesystem like mage-TV's. How to get this done? I doen't see my collegues typing paths like /assets/templates/yadaayadaa/img/something.png
- URL's/resources seems to be a problem. I found a topic about it but I don't understand ;-P. I can drag and/or type resources but external links are like " "...empty
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
I've got 20 TV's in one MIGX-TV so Grid Columns look crap; tiny columns ;-( Probably want something like tabbed view in Form Tabs or maybe multiple tables. How can I customize the Grid-columns?
tabbed-views for the grid or multiple grids for the same TV isn't possible, but with the next version its possible to use the renderChunk-feature for each column.
How do I add inputTV's like radio and checkboxes?
In the migx-configurator-CMP
inputTVtype: checkbox or radio and fill out the inputOptions, like you would for a normal checkbox-TV, also @-Bindings are working the same way as they do with normal TVs
inputTV:image doesn't show dialog-window where you can browse filesystem like mage-TV's. How to get this done? I doen't see my collegues typing paths like /assets/templates/yadaayadaa/img/something.png
use inputTVtype: image ,or if you use inputTV, you need to have a TV with name image.
URL's/resources seems to be a problem. I found a topic about it but I don't understand ;-P. I can drag and/or type resources but external links are like " "...empty
???
Bruno thanx
Quote from: Bruno17 at Nov 30, 2012, 09:02 AMI've got 20 TV's in one MIGX-TV so Grid Columns look crap; tiny columns ;-( Probably want something like tabbed view in Form Tabs or maybe multiple tables. How can I customize the Grid-columns?
tabbed-views for the grid or multiple grids for the same TV isn't possible, but with the next version its possible to use the renderChunk-feature for each column.
Cristal-clear.
How do I add inputTV's like radio and checkboxes?
In the migx-configurator-CMP
inputTVtype: checkbox or radio and fill out the inputOptions, like you would for a normal checkbox-TV, also @-Bindings are working the same way as they do with normal TVs
Hmmm... me not understand but will do a look with this suggestion.
inputTV:image doesn't show dialog-window where you can browse filesystem like mage-TV's. How to get this done? I doen't see my collegues typing paths like /assets/templates/yadaayadaa/img/something.png
use inputTVtype: image ,or if you use inputTV, you need to have a TV with name image.
You're the man! inpuTVtype did the trick, is it in the documentation?! Didn't find it then.
URL's/resources seems to be a problem. I found a topic about it but I don't understand ;-P. I can drag and/or type resources but external links are like " "...empty
???
I'm building a non-geeky image-slider for my company. Every aspect shall be configurable in the backend for editors so also links to other resources and/or external URL's. eg.
simply don't work if it's not an internal resource-id.
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
this is only working with resource-ids in linkTo
Quote from: chrisderover at Dec 17, 2012, 08:19 AMI'd probably go with creating an extra TV for external links. Then, in your getImageList chunk, do something like:
<a href="[[+externalLink:eq=``:then=`[[~[[+linkTo]]]]`:else=`[[+externalLink]]`]]">Link</a>
That way the TV "externalLink" will be used if it contains a value, otherwise it will fall back to the value of "linkTo".
How should I implement this cause complete slider is build completely with 1 MIGx-TV holding like a dozen TV's in 1 form with multiple tabs. How
would I "collect" these 2 TV's next besides each other with Usability in mind for a none tech-savvy user?
Aahhh..... a revelation... Chris do you mean 2 MIGx-TV's for links?! So the user should make the decision if it's internal or external link. Maybe I want to do the hard way; I want MODx to decide how to handle the URL not the user.
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
you can try this outputfilter - snippet:
<?php
//[[+link:checkUrl]]
if (is_numeric($input)){
$output = $modx->makeUrl($input) ;
}
else{
$output = substr($input,0,7) == 'http://' ? $input : 'http://'.$input;
}
return $output;
with:
Quote from: Bruno17 at Dec 18, 2012, 04:01 AMyou can try this outputfilter - snippet:
<?php
//[[+link:checkUrl]]
if (is_numeric($input)){
$output = $modx--->makeUrl($input);
}
else{
$output = substr($input,0,7) == 'http://' ? $input : 'http://' . $input;
}
return $output;
with:
Bruno17 thanx for much! It almost works ;-) Resource [[~7]] will generate modules/ap.html but that's because of a different matter. I use the container as a page-URL and childs as named-anchors. Whaaahhhh...it gets more complicated --> only 1 parent&child-path url has to be renderen into
parent.html#child
Okay going to try this myself and post in snippet-topic.
This is my code based on your snippet
<?php
//[[+link:checkUrl=`someParentId`]]
if (is_numeric($input)){
$resource = $modx->getObject('modResource', $input);
$parent = $resource->get('parent');
$linkAttr = $resource->get('link_attributes');
//is parameter set and parentID equal to parameter 'someParentId'
if ( true === isset($options) && $parent == $options) {
$output = $modx->makeUrl($parent) . '#' . $linkAttr;
} else {
$output = $modx->makeUrl($input);
}
} else {
$output = substr($input,0,7) == 'http://' ? $input : 'http://'.$input;
}
[ed. note: jambek2003 last edited this post 13 years, 9 months ago.]
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution