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.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: hide content if no translation

Status Resolved
Add-on / Version Publisher 1.7
Severity
EE Version 2.11

Cameron Ross

Jan 11, 2017

Hi

Is it possible that i can hide or not display content if there is no translation?

Areas would be:
Channel entries
Categories
Nav ee links

Example 1:
i have 10 entries listed on a page
10 have an english version
5 have french

If i switch to the french website then only 5 entries display

Example 2;
I have a nav ee menu with a link called about
I have the english translation for this but no french translation
If i switch to the french website then the link does not appear


etc

Thanks

#1

BoldMinded (Brian)

Check out the docs. There is a {has_translation} and other variables you can use in the entries tags. Categories and NavEE wouldn’t have similar tags. Also sounds like you need to try the Display Fallback setting. Turning it off will show 5 entries of the 10 if only 5 are translated.

#2

BoldMinded (Brian)

http://docs.boldminded.com/publisher/template-tags

#3

Cameron Ross

thanks

so for categories and navee i don’t have any options?

#4

Cameron Ross

if the translation was missing in navee then there is no way to not display it?

#5

BoldMinded (Brian)

In the native categories tag, no. You might be able to use {exp:publisher:translate_category} tag. Check out the docs. I haven’t ever had anyone ask for this specific use case.

Login to reply