All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Translated url title not working in channel_entries tag

Status Resolved
Add-on / Version Publisher Domain Control 2.0
Severity
EE Version 5.4

Studioweb

Mar 02, 2021

Related issue: https://boldminded.com/support/ticket/1235

Current language id: {publisher:current_language_id}<br>
Current url title: {embed:url_title}<br>

{exp:channel:entries channel="products" url_title="{embed:url_title}" dynamic="no"}
    Url title path: {url_title_path=""}

    Title: {title}

    Url title: {url_title}

    Publisher last_segment: {publisher:last_segment} 

    Page title: {page_title}

{/exp:channel:entries}

Using this code on the main domain works fine.

Using it on the second domain (configured in the publisher domain settings) doesn’t:
Current language id and Current url title are displayed but the channel entry isn’t. Structure page do work somehow.

 

 

#1

BoldMinded (Brian)

Can you provide more context?

What version of Publisher?

Can you share a URL where I can see this happening, and a login to the CP?

Which values isn’t translated? The url_title, last_segment, url_title_path?

You said “Current language id and Current url title are displayed but the channel entry isnt’” - So the entry doesn’t return in the entries tag at all, or the values are not translated? I’m confused.

Sorry, but I’m having trouble following what exactly the issue is, and if I can see it happening it might be more clear.

#2

Studioweb

Comment has been marked private.

#3

BoldMinded (Brian)

I think you’re going to have to provide ftp and cp access for me to look into this. Edit the ticket and use the fields provided for the credentials. Also recreate the issue in a new debug template. No css, no JS, no embeds, html or EE tags except those required to recreate the issue (sounds like it’s a single entries tag). Once you do that I can take a look.

#4

Studioweb

Comment has been marked private.

#5

BoldMinded (Brian)

Oh, this one was easy 😊 You need to use url_title=”{publisher:last_segment}” in your entries tag b/c it always needs the default language value when querying by url_title.

#6

Studioweb

Ah now that makes sense 😛

Login to reply