Quick question.
I would really like to have only one document ID use a certain set of MM settings.
It would make it easier for my customers if they can only see the exact fields they need, and nothing else.
As it is now I need to make a template for each and every docID I need to style with MM, and that creates alot of duplicated templates.
If I need to change a template, then I have alot of work to do.
Or is there any other way to accomplish this?
That makes sense! I’ll add it as a request to incorporate into the main plugin.
on the wish list, it would be nice to have an includeFile or includeChunk function so i can create a custom jquery function that’s just included.
<?php //--------------------------------------------------------------------------------- // mm_widget_includejsfromchunk // Include arbitary JS code from a chunk, and do it for e //--------------------------------------------------------------------------------- function mm_widget_includejsfromchunk($chunkName, $roles='', $templates='') { global $modx, $content; $e = &$modx->Event; $output = ''; if (useThisRule($roles, $templates)) { // Get the chunk content $js = $modx->getChunk($chunkName); $output .= "// -------------- Included JS ------------- \n"; $output .= $js; } // end if $e->output($output . "\n"); // Send the output to the browser } ?>
This discussion is closed to further replies. Keep calm and carry on.