TYPO3 Version 6.0 import from CSV or DB query - sql

I have a CSV file which contains these columns - Timestamp, Author, Title and Content.
Now I would like to import this CSV into TYPO3, so that I can display a list of posts containing these attributes.
If the above is not possible, is there a way to write in manual SQL queries, so that I can manually insert content into TYPO3 ?
I have tried many extensions for importing CSV- wil_import, rs_impory, external import .. but none of them work !!
In the following image, I have installed wil_import, but It does not show up anything.
Do I need to make any changes anywhere else, like configuration or something?

You could use phpmyadmin's CSV import functionality. It works reliably.

I've had same problem once and my day was saved thanks to Francois Suter's (Core team member) extensions: svconnector and svconnector_csv. So, I can really recommend them

Related

TYPO3: How to restrict the file upload in Powermail with the file formats

I am using powermail where I have added a file upload which I want to restrict with PNG,JPG and PDF file formats. Since I unfortunately do not work as long as TYPO3 and the extension Powermail I do not know exactly where I have to make the changes.
I have already seen in another forum post that you can make the adjustments in the setup.
plugin.tx_powermail.settings.setup.receiver.overwrite{
upload.file_extensions = jpg,png,pdf
}
Best regards
You can configure the allowed fileextension as TypoScript constant plugin.tx_powermail.misc.uploadFileExtensions.
So, the TypoScript (in constant section) should look like:
plugin.tx_powermail.misc {
uploadFileExtensions = jpg,png,pdf
}
file_extensions seems to be a configuration value years ago (The mentioned post was from 2011), but does not exist in the current powermail code.
It might be useful to know that in Powermail 9.0.2 this configuration doesn't work. This is how to acheive the same result in Powermail 9
plugin.tx_powermail.settings.setup.misc.file.extension = jpg,png,pdf

Is using Javascript in odoo.fields.HTML possible?

I want to integrate Adobe Captivate Content (Export: index.html, along with src-folder) into ODOO Community Edition v13 e-Learning Module (website_slides).
The slide.slide model already offers slide_type 'webpage' alongside the field 'html_content'.
The field 'html_content' is of type odoo.fields.HTML. To get the requirement stated above to work, I need to embed Javascript in the given html_content. It seems like the JS-scripts are not working. I also tried with a simple Hello World script.
Can someone help?
Best regards,
Lars
I found the solution already.
Looking at odoo/fields.py -> class Html, you can see that by default the given value is being sanitized using odoo/tools/mail.py -> html_sanitize(), which removes the HTML-Elements in 'tags_to_kill'. 'tags_to_kill' also contains "script".
After overriding html_content in slide.slide with the following, the Javascript-code is being executed:
html_content = fields.Html(
sanitize=False,
sanitize_tags=False,
sanitize_attributes=False)

How to export excel/csv in snap?

I have a list of numbers, how can I export to excel/csv/sheets?
In scratch I can right-click & "export", hoping snap has something similar.
There isn't (yet) a way to do this from the user interface. We are working on it though.
For the moment, you'll need to use a CSV export library, like this one by Joan Guillén.
To use it, create a variable (in this example, csv text) and run:
Then right click on the csv text variable watcher on the Stage and select Export:
Hope it helps!
EDIT
You can, since a while ago, right click on the list reporter and select export. Snap! will know that you're trying to export a list and will automatically use CSV as an export format:
If you hold the shift key while right-clicking on the list reporter, you'll be able to explicitly specify a format:

How to store data from Google Ngram API?

I need to store the data presented in the graphs on the Google Ngram website. For example, I want to store the occurences of "it's" as a percentage from 1800-2008, as presented in the following link: https://books.google.com/ngrams/graph?content=it%27s&year_start=1800&year_end=2008&corpus=0&smoothing=3&share=&direct_url=t1%3B%2Cit%27s%3B%2Cc0.
The data I want is the data you're able to scroll over on the graph. How can I extract this for about 140 different terms (e.g. "it's", "they're", "she's", etc.)?
econpy wrote a nice little module in Python that you can use through a command-line interface.
For your "it's" example, you would need to type this command in a terminal / windows console:
python getngrams.py it's -startYear=1800 -endYear=2008 -corpus=eng_2009 -smoothing=3
This will automatically save the query result in a CSV file named after your query parameters.
econpy's package, in #HugoMailhot's answer, no longer works (2021) and seems not maintained.
Here's a updated version, with some improvements for easier integration into Python code:
https://gitlab.com/cpbl/google-ngrams
You can call this from the command line (as in econpy's) to create a CSV file, e.g.
getngrams.py it's -startYear=1800 -endYear=2008 -corpus=eng_2009 -smoothing=3
or call it from python to get (and plot) data directly in python, e.g.:
from getngrams import ngrams
df = ngrams('bells and whistles -startYear=1900 -endYear=2018 -smoothing=2')
df.plot()
The xkcd functionality is still there too.
(Issues / bug fix pull requests /etc welcome there)

what is the format to import a excel file for creating new generic product in aspdotnetstorefront?

I am trying to import a excel file for creating new product which have the fields like (product Name,Product Type,Manufacturer,Variant Name, Price) but I found it is not in a correct format.Can anyone provide me sample excel file format to create new generic product in aspdotnetstorefront.
Within the downloaded software look for this file
AspDotNetStoreFront>Web>ImportFileSamples>ExcelImport.xls
This is the template that you should use. Don't delete any of the top three rows. What version of ASPDNSF are you using? The format changed from 9.0 onwards to include SEALtext columns.
Here are some links with how to do the import, what the fields are and various sample spreadsheets.
http://manual.aspdotnetstorefront.com/p-707-import-from-excel-file.aspx
http://manual.aspdotnetstorefront.com/p-958-excel-product-import.aspx
http://manual.aspdotnetstorefront.com/p-906-excel-product-import-fields.aspx