I'm facing this issue where the Media field doesn't show up in the output even though it's populated. Does anybody know what the problem might be?
Just populate the image field in your request -> http://localhost:1337/api/something?populate=somthing.image
Related
I am trying to get TinyMCE 4's image_list to work with a URL returning JSON data as specified in the example here.
I have setup a GET endpoint http://demo.com/media on my server which gives back a JSON response consisting of a list of objects with their title and value attributes set, for example:
[{"title":"demo.jpg","value":"http://demo.com/demo.jpg"}]
I have also specified the option image_list: "http://demo.com/media" when initializing the plugin.
However, when I click the image icon in the toolbar, nothing pops up. All I can see in the network tab is an OPTIONS request with status 200, but then nothing. The GET request I was expecting never happens.
What is the correct way of using image_list in TinyMCE 4? Also, does anyone have a working demo example? I couldn't find anything.
It is somewhat hard to say what the issue is without seeing the exact data your URL is returning. I have created a TinyMCE Fiddle to show (in general) how this is supposed to work:
http://fiddle.tinymce.com/pwgaab
There is a JavaScript variable at the top (pretendFetchedData) that simulates what you would grab from the server (an array of JavaScript objects) and that is referenced via image_list.
If you enter your URL (http://demo.com/media) into a browser window what is returned? Are you sure its an array of JavaScript objects?
I have the identical problem. No matter what I do with the detail of the format (e.g. putting quotes round title and value), nothing happens.
I guess the only way (for me anyway) is to insert the list into the script with php before sending the web page.
Having searched vigorously for an answer without result and given the strangeness of the issue, I feel posting a new question is the only hope for getting this resolved.
I have a table with products (ProductName and ProductImage) The image is an attachment field.
I have a search Form (unbound) with a listbox that displays a list of these products (column 1=ID, column 2=Productname, column3=ProductImage)
I have an image control that displays the image of the product with the following code in the ON LOAD event of the form and the AFTER UPDATE event of the listbox.
Me.imgProduct.Picture = Me.lstProduct.Column(3)
And it works, the image gets displayed when the form is loaded and when the selection is changed... At least until I close and reopen the database.
When I freshly open the database and open the form, I get the following error: Runtime-error 2220 Microsoft Access can't open the file product1.png
When I add a random new attachment to a new attachment FIELD or OLE object to ANY table, it works again without flaw.
Please, can somebody explain what's happening here? Is it to do with directory permissions or something? How to resolve this?
Thanks!
I decided to abandon attachment field and am working with links to the images instead.
Question isn't solved, but the problem is.
It is set by default that when I create input fields and set them to be required, when users don't fill in anything, they got a massage:
Please fill out this field
I am creating a website with Joomla, and this tooltip pops out in every browser displaying the above text. How to change the text.
I tried to look up in Joomla language ini files, but no success. Is there some easy way to change this, or some advice where it could be?
This is not a Joomla string, it's the message displayed by the HTML5 required attribute. To change the message you have to check the loads of suggestions in the following questions:
HTML5 form required attribute. Set custom validation message?
How to change default “please fill out this field” in two field
if you are writing your own component (or module/plugin), it sounds like this is the description - field in the form-xml for your component. If the form is auto-generated from a component-creator, the file should be found in
/(administrator/)components/com_yourcomponent/models/forms
but some more info on where/what you are doing would help.
regards Jonas
I have an xml file with a simple structure like the following.
The following is what I have configured for my data set retrieval for the name attribute called 'CLNNAME'. And the value 'Hello' is displayed when previewing the report.
Then I have the following which is the one I want use but for some reason it does not display the value when previewing the report. Any shed of light into why the weird behaviour occurs when attribute names are hardcoded. Your help is highly appreciated. Thank you in advance.
I’m scratching my head over this one as I can’t quite figure out what’s going on.
The Specifications tab is supposed to show all the attributes for these two products, but there’s nothing shown here:
http://www.centurioncctv.com/index.php/outlet/recordersoutlet/hd16p.html
http://www.centurioncctv.com/index.php/outlet/recordersoutlet/hd08p.html
These two products are in the Digital Recorders Attribute set, just like the rest of these DVRs on other pages...
All of these DVRs show Specifications (Additional Data) correctly.... but why only on the two pages above nothing would show...?
Please share some ideas with me…
I’ve tried recreating the product (not duplicating), but the result is the same.
Does anyone know where to start? I know that it has something to do with view.phtml… or something. Or is it that perhaps the folder in which the attributes are stored have wrong permission?
Does anyone know where to look for permission status for certain products’ attributes??
I also added “Downloads” and they are also not shown…
Anyone? Please help?
Thank you!!
The additional attributes are actually rendered if you look at the generated page source. There seems to be a <div> nesting error in the description content, so the javascript selector to show the attributes doesn't work correctly.
I suggest cleaning up the HTML for the description, and the other tab should start working again.