Solved: the csv source file had wrong encoding. Saving it in utf8 solved the problem.
Type: Posts; User: DavideR
Solved: the csv source file had wrong encoding. Saving it in utf8 solved the problem.
I'm developing an extension for importing news from a csv file.
When I make the insert into the db, the string that contains the teaser is interrupted in corrispondence of the first apostrophe...
I have the same needs: how did you solve?
Uhm... doubt: can I read id and class of the tl_content 'form' inside processFormData?
I had another idea: I create a custom extension that adds a "To:" field in the 'form' tl_content, and then use it in processFormData to set to field.
Hi,
in one website I need many forms, all equal, but I need to add a different information for each one in the email sent.
I know that I can use the processFormData hook, but I don't know how to...
Hi,
in one of my websites (Contao 3.5.3) the update database shows me that he wants to:
ALTER TABLE `tl_article` DROP INDEX `pid`;
ALTER TABLE `tl_calendar_events` DROP INDEX `pid`;
ALTER...
Another great suggest from you Andreas ;) Thank you
Hi Andreas,
I've solved using news_categories extension and setting a default category for each user, but your solution will be useful in another case, thank you!
Hi,
I have 30 news archives and 1 page 'blog.html' with inside a news list module that take alla news from all of these archives.
Since I don't want to create 30 news list module and 30 pages, how...
Another interesting solution that i found in the forum is that: editing system/config/dcaconfig.php:
<?php
// Put your custom configuration here
$this->import('BackendUser', 'User');
Hi,
is it possible to limit a search engine module to a news archive? I'd like to have a search module in my blog page, and another search module 'global' for all the site in another page
Ok, solved: i unchecked edit and remove in user group settings but was set yet in user setting.
Hi,
I have some users not administrator who need to insert news and events in the simpliest way. Every user has its news archive and its calendar.
I create a group limited as much as I can, but it...
Hi and happy new year!
Working on a registration flow for the members I saw that sometimes it's used a mod_message template.. when it's used and how can it be customized?
Davide
Ok, I found some documentation about DC_Table: https://contao.org/en/news/accessing-the-active-record-in-the-dca.html
The problem now is that $dc->id is not valorized...
Searching in Contao sourcecode I've found that there is a second argument that can be passed to my mySaveCallback(), that contains a DC_Table object,
but I can't find any information in it about my...
I've found a way that consists of using the save_callback. I've added in my extension/dca/tl_member.php the following line:
...
Hi and first of all happy Christmas for everyone!!! :)
I need to do something when a member is activated (or deactivated) in the backend through the toggle visibility green eye icon. I tried the...
Hi all,
I have a problem with the module 'news menu archive': ?year= parameter is always appended, so if i previously clicked on a year, urls of the menu are something like '?year=2012?year=2013'.
...
Hi,
I want to do something (like send a notification or an email) when a member account expires because the deactivation date. I'm looking for a hook but seems that not exists.. any ideas?
Thanks
In the template (member_default.html5) there is only $this->fields that contains html (no array with form controls to cycle)
Hi! Is it possible in member registration for choose only one member group (and not many) use select (or radio) instead of checkboxes?
Thank you
Davide
Hi all,
is there an insert tag that, given tag param value, compose the url to a page?
Andreas, interesting solution, thank you! I'll try
Hi all,
where can I find the naming convention that is to be used when coding an extension in Contao?
Thank you
Hi,
I have a question for those of you who develops on Contao and uses github to release his extension: how do you set up your develop environment? Extension repository outside the contao local...
Hi!
I have 30 calendars in one contao installation, and 30 pages each of them that have to hold an event list module.
Is there an alternative solution to create 30 modules event list? For...
Because when it imports events from google calendar, it creates content elements 'text' for location and other infos, but they are generic, i can't style them on my theme
Hi guys,
I need to display google calendar events in my Contao website (i want to style them like the website, so i don't want to use google calendar widget).
I found calendar_ical extension and...
Hi all!
I have an usergroup that can insert news with only a subset of fields. I want to hide to users the field 'alias' but I want that the alias is generated automatically.
Is it possible? How?...
I'm thinking about keep files in something like dropbox and linking inside my news... the problem is that dropbox files are public, so link are protected inside contao but not outside
Hi,
is it possible to handle protected content element visibility in template?
Suppose to have a download content element available only for a specific membergroup: i'd like to show content...
Hi,
I'm evaluating Contao for making a website that serves files to different protected memberships.
Contao membership fits perfectly.
My doubt is about file sizes: files for download are many...
Hi all,
I installed avatar extension because I need to show an image for the news author (be user), but it doesn't work. The selection of the image inside the user editor doesn't save the image.
...
I'm cycling an array of posts from wordpress and foreach one I create a record inside tl_news. For simplicity I don't use content elements but NewsSimple extension, that restores the old news...
So the flow should be:
1) copy /uploads/ under /files/uploads
2) do System > File Manager > Synchronize
3) run my import extension which it does something similar:
$posts = getPosts();
First of all thank you for your response.
Since I don't upload any file, because I have copied /uploads/ from Wordpress to Contao /files/, I do that:
\Dbafs::addResource($post_image_path);
...
Hi,
I'm working on a script for importing wordpress posts to contao. I have the URL of the post image on wordpress (like www.domain.com/wp-content/uploads/2014/05/my-image.jpg), and I copied all...
Hi all!
Is it possible to prepopulate tags for some user or group? I need to set a different tag for every group I created, without have to remind users to do it manually.
Cheers
Davide
First of all thank you very much for your support!
I update to RC2 but NewsSimple didn't compare yet. So I have uninstalled NewsSimple and then reinstalled but this time with your procedure (before...
Strange… I've installed in my 3.3 RC1 with the classic install extension but it tells that is not valid for 3.3RC1.. and I can't see anywhere the options :(
is it possible that is compatible with...
Thank you Xchs,
it seems a good idea, but i'm using 3.3 RC1 and it doesn't work yet with this version :(
Hi all!
I'm building a Contao 3.x website where some users will write their news.
I think that content elements are very powerful but my users are not so skilled and i'm afraid that the pattern for...