Ferdi Derksen Posted September 21, 2017 Author Share Posted September 21, 2017 Hi @loukote, My first thoughts were about that "user" template. This shouldn't be possible, because the module filters all System flagged templates. After installing the same PW and module as you did, I saw that there isn't a filter on the date-field nor title-field which indicates the option to select the "City" and "first name" fields. Those are valid by filtering only on the fieldtypes "FieldtypeDatetime" and "FieldtypeText" for the date field and fieldtypes "FieldtypePageTitle" and "FieldtypeText" for the title field. Since the filtering isn't that great, I added some minor changes to the module. Now it is possible to select the correct fields depending on the chosen template(s). The fieldtypes (as described above) are still used as a selector as well. Please let me know if this works out now. Link to comment Share on other sites More sharing options...
loukote Posted September 21, 2017 Share Posted September 21, 2017 Hi @Ferdi Derksen, Thanks for this! Updated smoothly and trying, the templates can be selected, so i do and submit. Is it necessary to have a value in the "datefield to check for publication"? What if I always want to publish immediately? Anyway, created a datetime field that defaults to today and is hidden in the template. And it works. The page-title field dropdown remains empty although the template has text fields, e.g. "title". Well, it is of the "PageTitleLanguage" type. Could it be the issue? Ondra Link to comment Share on other sites More sharing options...
Ferdi Derksen Posted September 22, 2017 Author Share Posted September 22, 2017 Hi @loukote, Nice to hear that solves some problems. To add the fieldtype "PageTitleLanguage" you can simply add this to the module in file "PublishToTwitter.module" at line 399. Since I'd like to keep the module as simple as is, I don't think this will be added soon. Link to comment Share on other sites More sharing options...
neosin Posted March 15, 2018 Share Posted March 15, 2018 I just installed this on PW 3.0.95 and noticed that once installed it expects the module settings values to be filled in regardless of whether or not you want to use it right away. Would it be possible to remove the assumption that the values are defined, meaning if setting values are empty - do nothing & exit? the errors that popup are PHP Warning: in_array() expects parameter 2 to be array, string given in ...\modules\PublishToTwitter\PublishToTwitter.module:366 and PHP Warning: implode(): Invalid arguments passed in ...\modules\PublishToTwitter\PublishToTwitter.module:442 Feature request Page tweet preview option before posting page and sending tweet. This would help cms users to double check the tweet will be as expected before posting. We've had cases of wrong images, broken links, typos etc not being noticed before publishing and post to twitter by cms users. This preview function would help double check accuracy before letting the world see it. Link to comment Share on other sites More sharing options...
Ferdi Derksen Posted March 16, 2018 Author Share Posted March 16, 2018 Tnx @neosin for your feedback - I'm currently rewriting the module with a lot of those issues fixed. Also adding a delay time checking for last modified time which is at least half an hour in the past. The preview is also a nice feature which I will take in consideration! 1 Link to comment Share on other sites More sharing options...
neosin Posted March 16, 2018 Share Posted March 16, 2018 @Ferdi Derksen that is awesome, look forward to the updates! Link to comment Share on other sites More sharing options...
montero4 Posted March 16, 2020 Share Posted March 16, 2020 Hello, I'm interested in this module, and I'm trying to get it working. I've installed it and selected the template and the date field. Can someone give me a clue what to do next. Do I modify the template or modify some php file? I've read all the questions on this thread and I can't figure out what to do next. Thank you. Regards, Update: spoke too soon, I didn't realize it would add fields to the template...It worked. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now