- Posts: 8
COMMUNITY FORUM
Extra Field - textarea
- poselziobro
- Topic Author
- Offline
- New Member
From the MailChimp page I downloaded the ready-made html code to create a form to write to nwesletter.
When I type the code in extra field (textarea) then after write the system changes the code and the form in the article (front-end) does not work.
When I write the code directly in item then it writes correctly and works.
But I would rather have it work in every new item automatically.
correct code:
<div id="mc_embed_signup">
<form action="//tandem-psycholog.us14.list-manage.com/subscribe/post?u=03268072820ad4556fac5ecab&id=247796a4a8" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<div class="col-md-4 col-sm-4 col-xs-12">
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Email" required>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_03268072820ad4556fac5ecab_247796a4a8" tabindex="-1" value=""></div></div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="mc-field-group">
<input type="text" value="" name="FNAME" class="" id="mce-FNAME" placeholder="Wpisz swoje imię">
</div></div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="clear"><input type="submit" value="ZAPISZ MNIE" name="subscribe" id="mc-embedded-subscribe" class="button"></div></div>
</div>
</form>
</div>
code after save:
<div id="mc_embed_signup">
<form method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">
<div id="mc_embed_signup_scroll">
<div class="col-md-4 col-sm-4 col-xs-12">
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Email" />
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_03268072820ad4556fac5ecab_247796a4a8" tabindex="-1" value="" /></div></div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="mc-field-group">
<input type="text" value="" name="FNAME" class="" id="mce-FNAME" placeholder="Wpisz swoje imię" />
</div></div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="clear"><input type="submit" value="ZAPISZ MNIE" name="subscribe" id="mc-embedded-subscribe" class="button" /></div></div>
</div>
</form>
</div>
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
It is a better practise to have this code in your overrides.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- poselziobro
- Topic Author
- Offline
- New Member
- Posts: 8
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
- Posts: 3722
Putting the code in the proper place in item.php should work for you, and it will display on every item that belongs to a category that has the subtemplate with that item.php selected
Please Log in or Create an account to join the conversation.
- poselziobro
- Topic Author
- Offline
- New Member
- Posts: 8
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- poselziobro
- Topic Author
- Offline
- New Member
- Posts: 8
william white wrote: I usually put new code at the top of item.php just under the title display to test it and get it working, later format the display by moving it down to where i want it and adding css if necessary
thanks a lot
i just did that and works perfectly
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
You can give that a try.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.