Elxis CMS Forum
Extensions => Components => Topic started by: jimmyz on April 13, 2011, 23:21:34
-
Χαίρετε,
ολίγη από την σοφία σας παρακαλώ...
Εγκατέστησα και δημοσίευσα το E-forms bot. Έφτιαξα και μια ωραία φόρμα της αρεσκείας μου, την οποία καλώ με επιτυχία από ένα Αντικείμενο Περιεχομένου. Επιθυμώ διακαώς να προσθέσω στην αρχή της φόρμας αυτής, το business-card από το Contact component.
Δοκίμασα:
- Σχολιασμό της γραμμής 270 του contact.php $params->def( 'email_description_text', _EMAIL_DESCRIPTION );
- Σχολιασμό ή διαγραφή των γραμμών 314-351 του contact.html.php <form action="index.php" method="post" name="emailform" target="_top" id="emailform">...</form>
- Προσθήκη του <p>{eforms}mycontact-gr{/eforms}</p>άμεσως μετά το κλείσιμο του σχολίου.
Αυτό, όταν καλέσω το Αντικείμενο Επαφής "Επικοινωνία", μου δίνει μια σελίδα με σκέτο το business-card και αμέσως κατόπιν, αντί της ωραίας μου φόρμας, το αντιαισθητικό {eforms}mycontact-gr{/eforms}, σαν κείμενο.
Πώς λοιπόν, ερωτώ, μπορώ να τροποποιήσω επιτυχώς το component Contact, ούτως ώστε να συμπεριλάβει στην έξοδό του το περιεχόμενο του E-forms bot; Ε; :-\
-
I thought this was the english section :)
-
Eforms bot replace the known pattern ({eforms}form_name{/eforms}) from a content item or autonomous pages.
You can add the business card info at your forms using specific code at data.xml file.
-
Well, I was browsing lately to the Greek section... aliens possessed my pc and they control all of my clicks. For some days now, I hear them trying to crack the metal case...
Thanks, aiden11.
I was looking for a lazy way of having an E-form (from the installed and published E-forms bot) displayed in the Contacts component, after removing from it some code I don't need.
I mentioned above, the three steps I took to achieve this.
- Commented line 270 of contact.php $params->def( 'email_description_text', _EMAIL_DESCRIPTION );
- Comment or delete lines 314-351 of contact.html.php <form action="index.php" method="post" name="emailform" target="_top" id="emailform">...</form>
- Add <p>{eforms}mycontact-gr{/eforms}</p> right after closing the comment.
But all this gave me the business-card (which I wanted) and a text line {eforms}mycontact-gr{/eforms}, which was supposed to be my (tested ok) form.
My friend Webgift, I appreciate your contribution. I'll give it a try.
-
I am sure that you can do that.;)
Don't forget to use :
<![CDATA[ write html code here . ;) ]]>