Jump to content

Recommended Posts

Posted

Hi all,

I've created a regular, single image field called 'Flag' and added it to the 'language' template ready to add a flag image for each language in order to display them as part of the language switch n the front end.

Issue is - when I try to upload a regular .jpg image to the field the image seems to upload OK but then, when I save the page, the image disappears. There are no images in the /site/assets/files folder for the language page and no obvious errors in the JS console or Network console.

I also noted that the image field has the 'Find Files To Translate' button added (see below)?

Any ideas as to what the problem is are gratefully received!

image.png.ab3a5b6c7806febd5bdb2b3220415e31.png

  • 5 months later...
Posted

Hi @zilli sadly not.

In the end I had to take a different approach...

I have a 'library' section of countries (page per country) that contains the country name, two digit country code etc. I built this some years ago and it's in every site I build so I can generate a quick list anywhere on a site and any admin can publish / un-publish countries they do or don't want in their lists. I ended up moving the flag image field to the country page template and added the images there. I then added a page selector field to the language template that chooses the country form which to pull the flag.

Not ideal but it worked.

Hope that helps.

Posted
1 hour ago, prestoav said:

Hi @zilli sadly not.

In the end I had to take a different approach...

I have a 'library' section of countries (page per country) that contains the country name, two digit country code etc. I built this some years ago and it's in every site I build so I can generate a quick list anywhere on a site and any admin can publish / un-publish countries they do or don't want in their lists. I ended up moving the flag image field to the country page template and added the images there. I then added a page selector field to the language template that chooses the country form which to pull the flag.

Not ideal but it worked.

Hope that helps.

Ah ok. Yeah, I will need to think on something too. Thanks.

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
  • Recently Browsing   0 members

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