Project

General

Profile

Actions

Bug #16334

closed

Using workspaces and Template Selector (rlmp_tmplselector) does not work

Added by old_dbunkerd almost 18 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2006-07-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Romain Fougier almost 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.

Actions #2

Updated by old_dbunkerd almost 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.

Actions #3

Updated by Simon Lang about 17 years ago

I had the same problem and resolved differently. See the appended diff.

Actions #4

Updated by Tolleiv Nietsch about 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.

Actions #5

Updated by Michael Stucki over 10 years ago

  • Category set to Workspaces
Actions #6

Updated by Michael Stucki over 10 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
Actions

Also available in: Atom PDF