Feature #36711
Columns --> Class Selection in Outer Divs
| Status: | Resolved | Start date: | 2012-04-30 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Juergen Furrer | % Done: | 100% |
|
| Category: | - | Spent time: | 1.00 hour | |
| Target version: | - | Estimated time: | 1.00 hour | |
| Votes: | 0 |
Description
Hello Juergen,
would it be possible to have the current selected class combination in the outer wrap?
At the moment i have to change your class file with renderTemplate() function with following code
function reunderTemplate() {
....
// CPS: Insert wrap class
$classes_string = implode('', $this->classes);
$markerArray["COLUMN_CLASS"] = "col_".$classes_string." mb clearfix";
....
}
I use a marker in the multiple content template ###COLUMN_CLASS###
I need this to have different background images for an multiple content element depending on column selection
e.g. col_5050 or col_257575. Because i can make box background-images with same height without javascript.
best Regards
Roman
History
Updated by Juergen Furrer about 1 year ago
- Status changed from New to Accepted
- Assignee set to Juergen Furrer
- Estimated time set to 1.00
Other solution:
// Define string with all classes
$markerArray["COLUMN_CLASSES"] = implode('', $this->classes);
$GLOBALS['TSFE']->register['COLUMN_CLASSES'] = $markerArray["COLUMN_CLASSES"];
After this, your able to use it in TS for additionalMarkers:
data = register:COLUMN_CLASSES
Or as a Marker:
###COLUMN_CLASSES###
Updated by Roman Ott about 1 year ago
Sounds good. Yours is better solution for full flexibility and do not have hardcoded strings in code.
Sorry my solution was only "quick and dirty"
Updated by Juergen Furrer about 1 year ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100