TYPO3 powermail Datepicker - TYPO3 - typo3

TYPO3 Powermail date picker is showing as regular input field in mozilla firefox. The field is showing as date field in chrome. How can it fixed?

Firefox don't support native date fields. That's why a JavaScript datepicker should be rendered automatically (difference to Chrome) in powermail.
Of course the JavaScript datepicker can only be rendered, if jQuery was included and if the ordering of the JavaScript is correct. Please check your browser console on JavaScript errors.
Example for a working form can be seen in powermail testparcours: http://powermail.in2code.ws/index.php?id=28
Some information: https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldDate/Index.html#date-formats

Firefox does not support date fields. See http://caniuse.com/#feat=input-datetime

I got the solution.I installed the older version.The latest version provides the jquery datepicker in mozilla.We should set the locallang for the date format.
plugin.tx_powermail {
_LOCAL_LANG {
default {
datepicker_format_date = d.m.Y
datepicker_format_time = d.m.Y H:i:s
datepicker_format_datetime = H:i:s
}
fr {
datepicker_format_date = d.m.Y
datepicker_format_time = d.m.Y H:i:s
datepicker_format_datetime = H:i:s
}
}
}

Related

TYPO3 - How to add a placeholder to an input field?

In TYPO3 (7.2.0) using the standard template engine, is there a way to add a placeholder attribute to the standard mail form text input?
At the moment I am using JavaScript to convert the labels into placeholders, but I am open to suggestions on a better way to do this...
The suggested solution of #biesior does only work for EXT:form 7.4 and higher (see changelog). The supplied picture shows the form wizard of TYPO3 7.5 or 7.6. In 7.2 you won't find any placeholder attribute in the wizard.
I recommend updating to TYPO3 7.6 since this version includes a major rewrite of EXT:form. You will be able to use fluid templates to customize your forms. Furthermore HTML5 attributes are possible. Before the rewrite the set of allowed attributes was quite limited. Now you are able to add all attributes you can think of (for example "data-"). See changelog.
If you have any questions regarding EXT:form join the channel on Slack. If you don't know Slack yet, check out the invite function.
During form fields editing you have many properties, also Placeholder
in text version it will be:
10 = TEXTLINE
10 {
type = text
class = foo-class
id = foo-id
name = foo
placeholder = Hmmm?
required = required
label {
value = My Field
}
}

Use Powermail in Typo3 6.2.4

I'm using typo3 6.2.4 and powermail 2.0.16
I need to create a form who send a mail to me.
I created the form with the page and the fields. One is the name and one is the mail to test.
After, I created the content element with the plugin powermail and now, I need to display the form in the frontend. I have active the static "Main Template" and "Add basic CSS". I try this code but it's not working.
page = PAGE
page.10 = CONTENT
page.10.table = tt_content
page.10.select {
where = colPos = 0
orderBy = sorting
}
page.10.renderObj = COA
page.10.renderObj {
10 = TEXT
10.field = header
10.wrap = <div class="header">|</div>
20 = TEXT
20.field = bodytext
20.wrap = <div class="bodytext">|</div>
}
Can you help me?
The answer is here : Nothing appears in Typo3 with powermail (Frontend)
It seems that you are missing the proper typoscript to actually show the form on the page. The specified typoscript snippet is not enough to show the content elements on the page.
Inside your typoscript template include the css_styled_content static template and change the snippet to this:
# Default PAGE object:
page = PAGE
page.10 < styles.content.get
That should ensure proper showing on the frontend. This is basic as it is, if you want it to be better looking, or different templating you should take a look at templating with TYPO3 first.
Just thinking with you here, did you add this as a template in the typoscript template configuration? Like

TYPO3 news (tx_news) ordering of records not working

I'm running TYPO3 V6 and the latest version of tx_news (not tt_news) and when I attempt to change the order of sorting for the LIST display, the settings in the plugin are not overriding the Typoscript settings. There doesn't seem to be a way to change to sort order of articles in the list view. I am aware that flagging a news record as "top news" will float it to the top of the list, but none of my records have that flag set.
Has anyone else had this problem?
I got the same problem: My listview always showed the oldest news on the top. I've been searching for a solution for hours. As i wanted to start to change the extension files manually, I found the "setup.txt" in the configuration folder. From there I copied the following code into my Typoscript. The problem is solved now.
plugin.tx_news{
settings{
overrideFlexformSettingsIfEmpty = cropMaxCharacters,dateField,timeRestriction,orderBy,orderDirection,backPid,listPid,startingpoint,recursive
orderBy = datetime
orderDirection = desc
orderByRespectTopNews = 0
orderByAllowed = sorting,author,uid,title,teaser,author,tstamp,crdate,datetime,categories.title
list{
paginate {
itemsPerPage=4
insertBelow=TRUE
lessPages=TRUE
#forcedNumberOfLinks=3
pagesBefore=1
pagesAfter=1
}
}
}
}
You can ignore the pagination lines. Important is the orderby stuff.
Typo3 Version: 4.7 (not my fault :D )
News System Version: 2.3
Found the solution to this one - basically I had been loading the TS setup code from an external file, which was overriding the default TS setup from the Typoscript template setup field, or rather, it wasn't. I duplicated the TS code in the Typoscript template and the external file and finally it is being recognised and the fields can be sorted.

TYPO3 tx_newscalendar / tt_news - Display links in listView

A RTE link of a newsitem was not shown in tt_news List. I could get it displayed with this TS for tt_news
plugin.tt_news.displayList {
content_stdWrap.parseFunc < lib.parseFunc_RTE
}
#or
plugin.tt_news {
general_stdWrap.parseFunc = < lib.parseFunc_RTE
}
Both methods appear in the Ext Manual. And that's the point, nothing like this in the Ext Manual of tx_newscalendar. )-:
I have some News which are displayed with tt_news fe plugin.
But on another page i need to display the news with tx_newscalendar fe plugin.
I can not find a solution to get the same thing work with newscalendar. I hoped that parseFunc for newscalendar inherits from tt_news, but not.
I tried something like this which is displayed in ts objectbrowser
plugin.tx_newscalendar_pi1
listView.content_stdWrap.parseFunc < lib.parseFunc_RTE
}
but links are display like this in sourcecode:
<link htpp:mydomainde="" />Mysite</link>
Why htpp:, this looks realy rare?
plugin.tx_newscalendar_pi1.render.parserFunction which could be found in the Ext Manual of the plugin is just for htmlentities, not for parseFunc_RTE.
Does somebody know, how to show links in newscalendar list?
Man, sometimes it's typologic ;-)
I get the same result like for tt_news above with:
plugin.tx_newscalendar_pi1 {
listView.subheader_stdWrap.parseFunc < lib.parseFunc_RTE
}
I saw in the calendar list template, that tx_newscalendar gets it's content with marker subheader ... and so it works with overriding the stdWrap for it.
So the problem is solved.

jquery datepicker date format with output of Zend_Locale

I'm trying to set the format for a jquery datepicker element with the date format returned by Zend_Locale::getTranslationList('date', $locale);
My problem is zend returns the string 'dd/MM/yyyy' for the date format but jquery expects only 2 characters for the year ie 'dd/mm/yy', so it enters the year twice 20112011
Is there some option that can be passed to either zend or jquery to make them work in the same manner? I've read through the docs and can't seem to find anything
Many thanks for your help in advance!
I have used jquery date picker in python-django framework when I give date format as dd/mm/yyyy format it returns 20112011 then i have corrected it to dd/mm/yy and it returned 2011 only. you can specify in your datepicker css class to specify the date format as dd/mm/yy.
Iam not sure if this is what you're looking for but:
// use german local, change it to our needs :-)
$locale = new Zend_Locale('de_DE');
$result = Zend_Locale::getTranslationList('date', $locale);
// returns dd.MM.yy (german!)
echo $result['short'];