Forums

shortcode for Update conditions in Save Data with data Provider

emmexx 28 Nov, 2017
If I'm not missing something in the docs, faqs and forum, it is not straightforward to enter the update conditions when using something like a loop.
Now you have to write something like
myfield:{var:loop_name.row.fieldinloop}

or longer.
loop_name here is the name of a loop that calls the save action or function.
And the Save data Data Provider property is set to {var:loop_name.row}.

Wouldn't it be easier to be able to access the values using an ad hoc short command that references the provided data and not the loop?

bye
maxx
Max_admin 29 Nov, 2017
Hi maxx,

Do you have a specific suggestion ? I could not come up with an easier shortcode for loops🙂

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
emmexx 29 Nov, 2017

Do you have a specific suggestion ? I could not come up with an easier shortcode for loops



{this:fieldName} ?

If an array is in the Data Provider you can reference what is in the array.

I f the Data provider is {var:loop_event15.row} and the row is
(
  [brand] => BMW
  [model] => M6
)

{this:brand} or {this:model} would be easier to understand and remember.

bye
maxx
This topic is locked and no more replies can be posted.