Bug #16334
closed
Using workspaces and Template Selector (rlmp_tmplselector) does not work
Added by old_dbunkerd over 18 years ago.
Updated almost 11 years ago.
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
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.
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.
I had the same problem and resolved differently. See the appended diff.
- 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.
- Category set to Workspaces
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
Also available in: Atom
PDF