dpasserone
Forum Replies Created
-
@tobiasbg I now rolled back to 2.1.8 and it works again. Please consider withdrawing the 2.2 . Many people have this issue and I have no intentions of deactivating all the other plugins one by one… sorry.
Same issue here.
https://polybox.ethz.ch/index.php/s/jEor5DaXOvXYIPZ
As you see from the image, the Table Content is empty. Note the screen options also don’t open.
Forum: Plugins
In reply to: [Contact Form 7] Custom TagHi! Just want to say that I solved the problem by myself with the help of this example by morgyface
https://gist.github.com/morgyface/56474f0a37abb7d622880daf6eff6e40
and a bit of php string concatenation.
So no answer here, too bad, but I can close the topic.Forum: Plugins
In reply to: [Contact Form 7] Custom TagHallo!
I tried to proceed a bit further.I took the example from the webpage of “contactform7” (https://contactform7.com/2015/01/10/adding-a-custom-form-tag/ )
add_action( 'wpcf7_init', 'custom_add_form_tag_clock' ); function custom_add_form_tag_clock() { wpcf7_add_form_tag( 'clock', 'custom_clock_form_tag_handler' ); // "clock" is the type of the form-tag } function custom_clock_form_tag_handler( $tag ) { return date_i18n( get_option( 'time_format' ) ); }
then I replaced the “return date” command with the following
return do_shortcode( '[table-cell id=7 cell=B9 /]' ); // corresponding cell in line B
Which returns the content of a particular cell of a table.
Specifying now [clock] in the form, shows the content of the cell.What I need now, is to assign this content to a form-tag (like a datalist), so to be able to include it directly in the Email. Something like
[datalist clock B9] that assigns the content of the cell “B9” in a table to the attribute [clock], that I can then use in the Mail and in the extensions like “Convert CF7 to Pdf”.
Thank you for any help on that!
Forum: Plugins
In reply to: [Contact Form 7 Shortcode Enabler] Including a shortcode INTO a form tagWow! That’s COOL!
Since you are so kind, a couple of bonus questions… ??
1) I have an extension called “Send PDF with CF7” that allows me to send a CSV file with all tags. Will it also include the special tags (I will try, ok…)?
2) I was wondering whether the HTML link to the CF7 form could contain a variable as a parameter, and then use it:
https://limmatsharks.com/schwimmschule/anmeldeformular-online/?mycourse=course-3
and then
[#mycourse#]
would it work or should I put it in the
“case” directive of the functions.php?Forum: Plugins
In reply to: [Contact Form 7 Shortcode Enabler] Including a shortcode INTO a form tagI fully understand.
But the example with a fixed “C3” element: would it be possible for you to write it here?That would be of greatest help!
Vielen Dank!
DanieleForum: Plugins
In reply to: [Contact Form 7 Shortcode Enabler] Including a shortcode INTO a form tag…and another suggestion from another Tobias, author of TablePress
“TobiasBg wrote:
Hi,
you could use it in PHP code with a trick, by wrapping it in the Shortcode evaluation function:
$shortcode_value = do_shortcode( '[table-cell … /]' );Regards,
Tobias”Forum: Plugins
In reply to: [Contact Form 7 Shortcode Enabler] Including a shortcode INTO a form tagIt could change. But only the line of the cell
The rest is quite fixedTHe table could have a structure like the one here:
https://limmatsharks.com/schwimmschule/kursdaten-kinder/
In the last column of line “B”, “C”, “D” there would be a link for the “Anmeldung” to the course “B”, “C”, “D”.
The link is to one CF7 form. Then the variable passed from the link to the form should barely be the line. Suppose that line=”G” , I imagine that the link to the form could have a parameter telling the form that the line=”G”Then your php script should get as an input this line number, and extract cell=G2—> <Gruppe>, then cell=G3—> <Begin> cell=G4—><Wochentag> and so on.
Hope I am clear…
Thanks for the helpDaniele
Forum: Plugins
In reply to: [Contact Form 7 Shortcode Enabler] Including a shortcode INTO a form tagThank you for the prompt reply.
So: TablePress can deliver short codes for an element of a table:[table-cell id=10 cell=C3 /]
Now, in this table there is a list of courses, one per line.
Each column has information about the course: level, location, day of the week, etc. and in the last column there is a link to a Registration form.The registration form should then include as “mandatory” fields all the data of the line of the course from the table (using [table-cell id=10 cell=XY /] with X ideally taken from the registration link, and Y the column of the level, of the location…) and allow the customer only to fill in the personal data.
For example, ideally I would like to assign to [level] the value of [table-cell id=10 cell=B1 /], and include [level] in the Email to the site and to the customer…
I noticed that one can define a CF7 shortcode using php scripting, and this could help, but is a bit complicated…
Is it clear?
Thank you for any help in that
DanieleMaybe a small extraquestion is:
is the tablepress shortcode interpreted also in php scripts? I had the idea of including the shortcode directly here:https://gist.github.com/morgyface/56474f0a37abb7d622880daf6eff6e40
instead of getting elements from the post I plan to get the value from your shortcode. Would it work?
Thank you!
Well, you already pointed to the element extension — let’s see
Thank you very much!Well I am quite free about the choice. PResently I am using Contact Form 7 that allows to use HTML and so-called “Form Tags”
https://contactform7.com/tag-syntax/
I never have investigated whether these tags can be replaced with “shortcodes” from TableCell…
What do you think?
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Custom CSS not working properlyWell now I am very happy with the result. Thank you!
Best , Daniele
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Custom CSS not working properlyYes ?? We are in Switzerland, everything will be measured with great precision…
This with 12.5% works, but not when responsive=scroll is activated. There, I come back to the old behavior…Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Custom CSS not working properlyer…. they have not. FREITAG is much thinner than DONNERSTAG