Jump to content

Why can't I activate a page in another language?


sodesign
 Share

Recommended Posts

Hello,

I'm having a weird issue where I can't activate pages in other languages if they're using a specific template. Pages using other templates work fine.

I have tried ticking the box in the page's settings tab, and tried using $page->setAndSave("status$lang"); with the api. The box just shows as unticked again when I refresh.

The only thing I can notice about this template is at the bottom of the setting page where it says 'Page object class: RepeaterPage' (see attachment). Does anyone know what this means and whether it could be the cause of the problem?

Thank you!

CleanShot 2024-03-19 at 15.33.50.png

Link to comment
Share on other sites

Hello,

Is your template named "repeater"?

(I don't really understand the "page object class: RepeaterPage" here, I don't see this information on my side but am not on last PW version, I imagine this is the custom class associated with this template, but RepeaterPage is a PW class)

Link to comment
Share on other sites

No the template name doesn't contain the word Repeater.

I don't know of any reason why this particular template would have a custom page class (I hadn't even heard of them until this issue!).

For now I have removed "pageClass":"RepeaterPage" from the data column for this template in the DB and the other languages can now be activated.

I'll test all the features associated with this page and see if this change had any bad consequences.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...