Bug #16334
closedUsing workspaces and Template Selector (rlmp_tmplselector) does not work
0%
Description
When i create a page in a draft-workspace it is not possible to chose a HTML-Template with the above mentioned Template Selector. The page works with the defined standard-template, this can be changed only if the page is published.
(issue imported from #M3817)
Files
Updated by Romain Fougier over 18 years ago
Hi,
i worked on this problem and i resolved it like this:
On ext/rlmp_tmplselector/class.tx_rlmptmplselector_addfilestosel.php, line 48, replace old with new code :
/* OLD CODE */
$thePageId = $params["row"]["uid"]; // get the page ID here!
/* NEW CODE */
if(isset($params["row"]["t3ver_oid"])) {
if((intval($params["row"]["uid"]) != intval($params["row"]["t3ver_oid"])) && (intval($params["row"]["t3ver_oid"]) != 0))
$thePageId = $params["row"]["t3ver_oid"]; // offline versioned page
else
$thePageId = $params["row"]["uid"]; // Non versioned page or online versioned page
} else {
$thePageId = $params["row"]["uid"];
}
I try to validate this with Robert Lemke, the "template selector" author.
Updated by old_dbunkerd over 18 years ago
Hi Romain,
as fas as I can see your code works good in my local environment. I created a page in a workspace, was able to choose templates and sub-templates, no problems publishing them. Thanks for your work.
Please leave a note as soon as Robert has responded.
Updated by Simon Lang over 17 years ago
I had the same problem and resolved differently. See the appended diff.
Updated by Tolleiv Nietsch over 13 years ago
- Category deleted (
Miscellaneous) - Status changed from Accepted to Closed
- Assignee deleted (
Robert Lemke) - Target version deleted (
0)
Not relevant for the workspaces project and the rlmp_tmplselector is not maintained anymore.
Updated by Michael Stucki almost 11 years ago
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces